1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00
TaoQuick/examples/TaoQuickShow/TaoQuickShow.pri

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-08-27 09:49:24 +08:00
#一部分头文件加入编译预处理,提高编译速度
msvc | gcc | xcode {
CONFIG += precompile_header
PRECOMPILED_HEADER = $$PWD/Src/stdafx.h
}
2019-08-03 22:36:03 +08:00
HEADERS += \
2020-10-14 13:33:27 +08:00
$$PWD/Src/TaoFrameLessView.h \
2020-07-05 02:12:59 +08:00
$$PWD/Src/TaoObject.h \
$$PWD/Src/TaoFramework.h \
2020-06-12 19:21:18 +08:00
$$PWD/Src/Trans.h \
2020-07-08 00:36:35 +08:00
$$PWD/Src/AppInfo.h \
$$PWD/Src/ComponentsManager.h
2019-12-18 14:03:49 +08:00
2019-08-03 22:36:03 +08:00
SOURCES += \
2020-10-14 13:33:27 +08:00
$$PWD/Src/TaoFrameLessView.cpp \
2020-07-05 02:12:59 +08:00
$$PWD/Src/TaoFramework.cpp \
2020-06-12 19:21:18 +08:00
$$PWD/Src/Trans.cpp \
2020-07-05 02:12:59 +08:00
$$PWD/Src/AppInfo.cpp \
2020-07-08 00:36:35 +08:00
$$PWD/Src/ComponentsManager.cpp \
2019-08-03 22:36:03 +08:00
$$PWD/Src/main.cpp
2020-07-01 00:16:13 +08:00
CONFIG(debug, debug|release) {
#debug模式直接用本地qml文件,不要qrc资源文件。这样调试快一些。
DEFINES += qmlPath=\\\"file:///$$PWD/Qml/\\\"
DEFINES += contentsPath=\\\"file:///$$PWD/Contents/\\\"
DEFINES += imgPath=\\\"file:///$$PWD/Image/\\\"
} else {
#release模式用qrc、走资源文件。这样发布不会携带源码。
RESOURCES += \
$$PWD/Qml.qrc \
$$PWD/Image.qrc \
$$PWD/Contents.qrc
DEFINES += qmlPath=\\\"qrc:/Qml/\\\"
DEFINES += contentsPath=\\\"qrc:/Contents/\\\"
DEFINES += imgPath=\\\"qrc:/Image/\\\"
}
2020-06-19 11:18:43 +08:00
2020-07-18 01:14:15 +08:00
!android:!ios {
2020-10-14 23:54:43 +08:00
CONFIG += file_copies
2020-10-20 15:58:03 +08:00
trans.files = $$PWD/Trans/language_zh.json
trans.path = $$DESTDIR/Trans
2020-06-19 11:18:43 +08:00
COPIES += trans
}
2020-10-20 15:58:03 +08:00
OTHER_FILES += $$PWD/Trans/language_zh.json