mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update link qqt library logic
This commit is contained in:
parent
826ef60f35
commit
91dde59694
@ -3,26 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-27T00:14:05
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -13,26 +13,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -22,25 +22,7 @@ greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
|
||||
TARGET = QQtSdkManager
|
||||
TEMPLATE = app
|
||||
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
|
||||
|
||||
|
@ -3,25 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-29T10:04:08
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,33 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#this link struct can't support macOS
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#include(../../src/qqt_version.pri)
|
||||
#include(../../src/qqt_header.pri)
|
||||
#include(../qqtframe2/qqt_library.pri)
|
||||
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
#include QQt's version
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,26 +3,7 @@
|
||||
# Project created by QtCreator 2016-09-30T09:34:03
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -1,23 +1,4 @@
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,36 +3,8 @@
|
||||
# Project created by QtCreator 2017-10-20T19:53:30
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#default CONFIG += link_from_sdk
|
||||
CONFIG += link_from_build
|
||||
contains(CONFIG, link_from_build) {
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_BUILD_ROOT = /Users/abel/Develop/c0-buildstation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_BUILD_ROOT = /home/abel/Develop/c0-buildstation
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_BUILD_ROOT = C:/Users/Administrator/Develop/c0-build
|
||||
}
|
||||
}
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,26 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-21T21:26:55
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,17 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-17T17:48:58
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(../qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui
|
||||
|
||||
|
@ -3,17 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(../qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui
|
||||
|
||||
|
@ -3,26 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -1,77 +0,0 @@
|
||||
#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 \
|
||||
bin/$${TARGET}.app/Contents/Frameworks &&
|
||||
QMAKE_POST_LINK += install_name_tool -change QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
|
||||
@rpath/QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
|
||||
bin/$${TARGET}.app/Contents/MacOS/$$TARGET &&
|
||||
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
|
||||
}
|
@ -13,26 +13,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,25 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-27T12:29:41
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,17 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(../qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui
|
||||
|
||||
|
@ -3,18 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
include(../../src/qqt_version.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(../qqtframe2/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui webkitwidgets
|
||||
|
||||
|
@ -3,17 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
|
||||
QT += core gui
|
||||
|
@ -3,26 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-17T21:33:06
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -3,17 +3,7 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#include QQt's header (add QQt header to includepath)
|
||||
include(../../src/qqt_header.pri)
|
||||
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
#include(../../src/qqt.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include(../qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui webkit webkitwidgets
|
||||
|
||||
|
@ -3,27 +3,7 @@
|
||||
# Project created by QtCreator 2017-10-27T20:06:56
|
||||
#
|
||||
#-------------------------------------------------
|
||||
#QQt source root on your computer
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
||||
} else: equals(QMAKE_HOST.os, Linux) {
|
||||
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
||||
} else: equals(QMAKE_HOST.os, Windows) {
|
||||
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
||||
}
|
||||
|
||||
#include QQt's version, needed by qqt_library.pri
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
#include QQt's header
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#CONFIG += BUILD_SRC
|
||||
contains (CONFIG, BUILD_SRC) {
|
||||
#if you want to build src but not link QQt in this project
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
||||
} else {
|
||||
#if you want to link QQt library
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
||||
}
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
|
@ -100,6 +100,9 @@ RESOURCES += \
|
||||
##install to Qt library
|
||||
##in this section, I use QMAKE_POST_LINK, it won't work until project source changed
|
||||
################################################
|
||||
!contains(QKIT_PRIVATE, WIN32|WIN64) {
|
||||
CONFIG += qqt_create_sdk
|
||||
}
|
||||
include ($$PWD/qqt_install.pri)
|
||||
|
||||
|
||||
|
@ -234,8 +234,7 @@ defineReplace(create_qt_lib_pri){
|
||||
##QQt install workflow
|
||||
################################################
|
||||
#use to output sdk
|
||||
CONFIG += create_sdk
|
||||
contains(CONFIG, create_sdk){
|
||||
contains(CONFIG, qqt_create_sdk){
|
||||
MODULE_NAME=QQt
|
||||
module_name = $$lower($${MODULE_NAME})
|
||||
|
||||
|
@ -7,6 +7,9 @@
|
||||
##2017年10月29日08:54:28
|
||||
################################################
|
||||
|
||||
#TARGET must be equals to pro name ? no, TARGET must place before qqt_library.pri
|
||||
#qmake pro pri is sequential
|
||||
|
||||
message(Link QQt to $${TARGET} $${QKIT_PRIVATE} \
|
||||
at $${QT_VERSION} $${SYSNAME} $${BUILD} \
|
||||
on $${QMAKE_HOST.os})
|
||||
|
Loading…
x
Reference in New Issue
Block a user