2017-10-23 19:03:57 +08:00
|
|
|
#here is all your app common defination and configration
|
|
|
|
#change these path on your computer
|
2017-10-25 16:57:50 +08:00
|
|
|
message(Link QQt to $${TARGET} $${QKIT_} \
|
|
|
|
at $${QT_VERSION} $${SYSNAME} $${BUILD} \
|
|
|
|
on $${QMAKE_HOST.os})
|
|
|
|
|
2017-10-22 12:21:19 +08:00
|
|
|
equals(QMAKE_HOST.os, Darwin) {
|
2017-10-25 16:57:50 +08:00
|
|
|
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__) {
|
|
|
|
LIBS += -F$${QQT_LIB_PWD}
|
|
|
|
LIBS += -framework QQt
|
|
|
|
} else {
|
|
|
|
LIBS += -L$${QQT_LIB_PWD}
|
|
|
|
LIBS += -l QQt
|
2017-10-22 12:21:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
############
|
|
|
|
##install
|
|
|
|
############
|
|
|
|
#CONFIG += can_install
|
2017-10-23 11:18:52 +08:00
|
|
|
can_install:equals(QKIT_, EMBEDDED) {
|
2017-10-22 12:21:19 +08:00
|
|
|
target.path = /Application
|
|
|
|
INSTALLS += target
|
|
|
|
} else: unix {
|
|
|
|
equals(QKIT_, macOS) {
|
|
|
|
target.path = /Applications
|
|
|
|
INSTALLS += target
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-23 19:03:57 +08:00
|
|
|
############
|
|
|
|
##config defination
|
|
|
|
############
|
2017-10-22 12:21:19 +08:00
|
|
|
equals(QKIT_, macOS) {
|
|
|
|
CONFIG += app_bundle
|
|
|
|
}
|
|
|
|
equals(QKIT_, Android) {
|
|
|
|
CONFIG += mobility
|
|
|
|
MOBILITY =
|
|
|
|
#DISTFILES += \
|
|
|
|
# android/AndroidManifest.xml
|
|
|
|
|
|
|
|
#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
|
|
|
}
|
2017-10-23 19:03:57 +08:00
|
|
|
|
|
|
|
#equals(QKIT_, macOS) {
|
|
|
|
# QMAKE_CFLAGS_X86_64 += -mmacosx-version-min=10.7
|
|
|
|
# QMAKE_CXXFLAGS_X86_64 = $$QMAKE_CFLAGS_X86_64
|
|
|
|
# msgpacklib.path = Contents/Frameworks
|
|
|
|
# msgpacklib.files = ../myapp/3rd/msgpack-0.5.4/src/.libs/libmsgpack.3.dylib
|
|
|
|
# evlib.path = Contents/Frameworks
|
|
|
|
# evlib.files = ../myapp/3rd/libev-4.11/.libs/libev.4.dylib
|
|
|
|
# QMAKE_BUNDLE_DATA += msgpacklib evlib
|
|
|
|
# QMAKE_POST_LINK = install_name_tool -change /usr/local/lib/libmsgpack.3.dylib \
|
|
|
|
# @executable_path/../Frameworks/libmsgpack.3.dylib \
|
|
|
|
# myapp.app/Contents/MacOs/myapp & \
|
|
|
|
# install_name_tool -change /usr/local/lib/libev.4.dylib \
|
|
|
|
# @executable_path/../Frameworks/libev.4.dylib \
|
|
|
|
# myapp.app/Contents/MacOs/myapp
|
|
|
|
#}
|