1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00
TaoQuick/examples/TaoQuickShow/TaoQuickShow.pro
2021-04-23 09:52:15 +08:00

53 lines
1.4 KiB
Prolog

TEMPLATE = app
TARGET = TaoQuickShow
QT += core gui qml quick
CONFIG += c++17 qtquickcompiler utf8_source
win32:mingw {
LIBS += -lDwmapi
}
load(taoVersion)
setTaoVersion()
load(taoBundle)
BundlePath = $$getBundlePath("TaoQuickShow")
#load(taoBuildPath)
#setBuildPath($${TaoQuick_BUILD_TREE}/$${TARGET})
CONFIG(debug,debug|release) {
DESTDIR = $${TaoQuick_RUN_TREE}/debug
DEFINES += TAODEBUG
} else {
DESTDIR = $${TaoQuick_RUN_TREE}/release
}
#!exists($${TaoQuick_3RDPARTY_TREE}/TaoCommon/src/TaoCommon/TaoCommon.pri) {
# error("3rdparty library TaoCommon missing, please update by command: git submodule update --init")
#}
include($${TaoQuick_3RDPARTY_TREE}/TaoCommon/src/TaoCommon/TaoCommon.pri)
include($${TaoQuick_SOURCE_TREE}/src/TaoQuick/imports/imports.pri)
include(TaoQuickShow.pri)
DEFINES += QMAKE_GEN_TAOMACRO
!build_pass {
headerContents = \
"$${LITERAL_HASH}pragma once" \
"$${LITERAL_HASH}define TaoQuickImport $${TaoQuickImport}" \
"$${LITERAL_HASH}define TaoQuickImage $${TaoQuickImage}" \
"$${LITERAL_HASH}define qmlPath $${qmlPath}" \
"$${LITERAL_HASH}define contentsPath $${contentsPath}" \
"$${LITERAL_HASH}define imgPath $${imgPath}" \
"$${LITERAL_HASH}define transDir $${transDir}"
write_file(taoMacro.h, headerContents)
}
win32:!mingw {
RC_FILE = App.rc
}
macos {
ICON = milk.icns
}