mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
78 lines
1.9 KiB
Plaintext
78 lines
1.9 KiB
Plaintext
#here is all your app common defination and configration
|
|
#change these path on your computer
|
|
message(Link QQt to $${TARGET} $${QKIT_} \
|
|
at $${QT_VERSION} $${SYSNAME} $${BUILD} \
|
|
on $${QMAKE_HOST.os})
|
|
|
|
equals(QMAKE_HOST.os, Darwin) {
|
|
BUILDROOT = /Users/abel/Develop/c0-buildstation
|
|
} else: equals(QMAKE_HOST.os, Linux) {
|
|
BUILDROOT = /home/abel/Develop/c0-buildstation
|
|
} else: equals(QMAKE_HOST.os, Windows) {
|
|
BUILDROOT = C:/Users/Administrator/Develop/c0-build
|
|
}
|
|
|
|
QQT_OUT_PWD = QQt/$${QT_VERSION}/$${SYSNAME}/$${BUILD}/src
|
|
QQT_OUT_BIN = $${QQT_OUT_PWD}/$${DESTDIR}
|
|
QQT_LIB_PWD = $$BUILDROOT/$$QQT_OUT_BIN
|
|
message (QQt Build: $$QQT_LIB_PWD)
|
|
|
|
contains(DEFINES, __DARWIN__) {
|
|
lessThan(QT_MAJOR_VERSION, 5):{
|
|
LIBS += -L$${QQT_LIB_PWD}
|
|
LIBS += -l QQt
|
|
} else {
|
|
LIBS += -F$${QQT_LIB_PWD}
|
|
LIBS += -framework QQt
|
|
}
|
|
} else {
|
|
LIBS += -L$${QQT_LIB_PWD}
|
|
LIBS += -l QQt
|
|
}
|
|
|
|
############
|
|
##install
|
|
############
|
|
#CONFIG += can_install
|
|
can_install:equals(QKIT_, EMBEDDED) {
|
|
target.path = /Application
|
|
INSTALLS += target
|
|
} else: unix {
|
|
equals(QKIT_, macOS) {
|
|
target.path = /Applications
|
|
INSTALLS += target
|
|
}
|
|
}
|
|
|
|
############
|
|
##config defination
|
|
############
|
|
equals(QKIT_, macOS) {
|
|
CONFIG += app_bundle
|
|
}
|
|
equals(QKIT_, Android) {
|
|
CONFIG += mobility
|
|
MOBILITY =
|
|
#DISTFILES += \
|
|
# android/AndroidManifest.xml
|
|
|
|
#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
|
}
|
|
|
|
equals(QKIT_, macOS) {
|
|
QMAKE_POST_LINK = install_name_tool -change QQt.framework/Versions/1/QQt \
|
|
@rpath/QQt.framework/Versions/1/QQt \
|
|
bin/$$TARGET.app/Contents/MacOS/$$TARGET
|
|
}
|
|
|
|
################################################
|
|
##install QQt sdk
|
|
##library file is here
|
|
################################################
|
|
#CONFIG += can_install_sdk
|
|
can_install_sdk:equals(QKIT_, macOS) {
|
|
###if install product to same path,use this.
|
|
target.path = /System/Library/Frameworks
|
|
INSTALLS += target
|
|
}
|