1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqtframe2/qqt_library.pri

78 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-10-29 15:06:11 +08:00
#this pri is only used in some early examples
#here is all your app common defination and configration
#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(Link QQt to $${TARGET} $${QKIT_PRIVATE} \
at $${QT_VERSION} $${SYSNAME} $${BUILD} \
on $${QMAKE_HOST.os})
#change this path on your computer
#copy this pri to QQt based user app project public position
#set user relative path to QQt builder bin (only this need to be set by user)
QQT_LIB_PWD = $$OUT_PWD/../../src/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 += -lQQt
}
############
##install
############
#CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
target.path = /Application
INSTALLS += target
} else: unix {
equals(QKIT_PRIVATE, macOS) {
target.path = /Applications
INSTALLS += target
}
}
#not good to use, some function error
equals(QKIT_PRIVATE, macOS) {
QMAKE_POST_LINK += rm -rf bin/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
QMAKE_POST_LINK += cp -af ../../src/bin/QQt.framework \
2017-10-29 21:38:30 +08:00
bin/$${TARGET}.app/Contents/Frameworks &&
2017-10-29 15:06:11 +08:00
QMAKE_POST_LINK += install_name_tool -change QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
@rpath/QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
2017-10-29 21:38:30 +08:00
bin/$${TARGET}.app/Contents/MacOS/$$TARGET &&
2017-10-29 15:06:11 +08:00
QMAKE_POST_LINK += macdeployqt bin/$${TARGET}.app -verbose=1
}
############
##config defination
############
equals(QKIT_PRIVATE, macOS) {
CONFIG += app_bundle
}
equals(QKIT_PRIVATE, ANDROID) {
CONFIG += mobility
MOBILITY =
#DISTFILES += \
# android/AndroidManifest.xml
#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
}