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 15:49:59 +08:00
|
|
|
QQT_OUT_PWD=$${OUT_PWD}/../../src/bin
|
|
|
|
message (QQt is building here : $${QQT_OUT_PWD})
|
2017-10-24 09:49:44 +08:00
|
|
|
message(Link QQt to $${TARGET} $${QKIT_} at $${QT_VERSION} $${SYSNAME} $${BUILD} on $${QMAKE_HOST.os})
|
2017-10-25 15:49:59 +08:00
|
|
|
LIBS += -L$${QQT_OUT_PWD}
|
2017-10-22 12:21:19 +08:00
|
|
|
equals(QMAKE_HOST.os, Darwin) {
|
2017-10-25 13:02:54 +08:00
|
|
|
contains(DEFINES, __DARWIN__|__IOS__) {
|
2017-10-25 15:49:59 +08:00
|
|
|
LIBS += -F$${QQT_OUT_PWD}
|
2017-10-23 19:03:57 +08:00
|
|
|
LIBS += -framework QQt
|
|
|
|
} else{
|
2017-10-22 12:21:19 +08:00
|
|
|
LIBS += -lQQt
|
|
|
|
}
|
2017-10-25 15:49:59 +08:00
|
|
|
} else: contains(QMAKE_HOST.os, Linux|Windows) {
|
2017-10-22 12:21:19 +08:00
|
|
|
LIBS += -lQQt
|
|
|
|
}
|
|
|
|
|
|
|
|
############
|
|
|
|
##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
|
|
|
|
#}
|