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

qqtframe2 add compiler define

This commit is contained in:
tianduanrui 2017-10-18 20:19:47 +08:00
parent 4471017a9f
commit b0d36979e2
2 changed files with 33 additions and 20 deletions

View File

@ -2,7 +2,7 @@ TEMPLATE = subdirs
CONFIG += ordered CONFIG += ordered
SUBDIRS += \ SUBDIRS += \
src/qqt.pro \ src/qqt.pro \
examples/qqtframe \ # examples/qqtframe \
examples/qqtframe2 \ examples/qqtframe2 \
# examples/animationframe \ # examples/animationframe \
# examples/cmdwidget \ # examples/cmdwidget \
@ -11,8 +11,8 @@ SUBDIRS += \
# examples/qqtftpclient \ # examples/qqtftpclient \
# examples/qqthttpclient \ # examples/qqthttpclient \
# examples/qqtwebkit \ # examples/qqtwebkit \
examples/qqtbluetoothfiletransferserver \ # examples/qqtbluetoothfiletransferserver \
examples/qqtnetworkexample # examples/qqtnetworkexample
#include(src/qqt.pri) #include(src/qqt.pri)

View File

@ -55,19 +55,18 @@ equals(QT_KIT, MIPS32) {
DEFINES += __ANDROIDX86__ DEFINES += __ANDROIDX86__
#todo:no customplot word printer #todo:no customplot word printer
} }
CONFIG(debug, debug|release) {
TARGET = qqtframe2 BUILD=Debug
TEMPLATE = app } else {
BUILD=Release
}
equals(QT_KIT, macOS) { equals(QT_KIT, macOS) {
CONFIG += app_bundle CONFIG += app_bundle
} }
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
} else { } else {
DEFINES -= QT_NO_DEBUG_OUTPUT DEFINES -= QT_NO_DEBUG_OUTPUT
} }
equals(QT_KIT, Android) { equals(QT_KIT, Android) {
CONFIG += mobility CONFIG += mobility
MOBILITY = MOBILITY =
@ -83,6 +82,7 @@ INCLUDEPATH += $$PWD \
$$PWD/../../src/gui \ $$PWD/../../src/gui \
$$PWD/../../src/multimedia \ $$PWD/../../src/multimedia \
$$PWD/../../src/network \ $$PWD/../../src/network \
$$PWD/../../src/network/qextserialport \
$$PWD/../../src/printsupport \ $$PWD/../../src/printsupport \
$$PWD/../../src/sql \ $$PWD/../../src/sql \
$$PWD/../../src/widgets \ $$PWD/../../src/widgets \
@ -92,28 +92,40 @@ INCLUDEPATH += $$PWD \
$$PWD/../../src/frame $$PWD/../../src/frame
#include(../../src/qqt.pri) #include(../../src/qqt.pri)
CONFIG(debug, debug|release) { equals(QT_KIT, MIPS32) {
BUILD=Debug SYSNAME = Mips32
} else { } else:equals(QT_KIT, LINUX) {
BUILD=Release SYSNAME = Linux
} else:equals(QT_KIT, LINUX64) {
SYSNAME = Linux64
} else:equals(QT_KIT, WIN) {
SYSNAME = Windows
} else:equals(QT_KIT, WIN64) {
SYSNAME = Win64
} else:equals(QT_KIT, macOS) {
SYSNAME = MacOS
} else:equals(QT_KIT, Android) {
SYSNAME = Android
} else:equals(QT_KIT, ANDROIDX86) {
SYSNAME = Android_x86
} }
message(Link QQt to $${TARGET} $${QT_KIT} $${BUILD} on $${QMAKE_HOST.os}) message(Link QQt to $${TARGET} $${QT_KIT} from $${SYSNAME} $${BUILD} on $${QMAKE_HOST.os})
equals(QMAKE_HOST.os, Darwin) { equals(QMAKE_HOST.os, Darwin) {
equals(QT_KIT, macOS) { equals(QT_KIT, macOS) {
LIBS += -F/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/MacOS/$${BUILD}/src/bin LIBS += -F/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/$${SYSNAME}/$${BUILD}/src/bin
LIBS += -framework QQt LIBS += -framework QQt
} else: equals(QT_KIT, Android) { } else: equals(QT_KIT, Android) {
LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/Android/$${BUILD}/src/bin LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/$${SYSNAME}/$${BUILD}/src/bin
LIBS += -lQQt LIBS += -lQQt
} else: equals(QT_KIT, ANDROIDX86) { } else: equals(QT_KIT, ANDROIDX86) {
LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/Android_x86/$${BUILD}/src/bin LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/$${SYSNAME}/$${BUILD}/src/bin
LIBS += -lQQt LIBS += -lQQt
} }
} else: equals(QMAKE_HOST.os, Linux) { } else: equals(QMAKE_HOST.os, Linux) {
LIBS += -L/mnt/hgfs/abel/Develop/c0-buildstation/a0-qqtfoundation/Linux/$${BUILD}/src/bin LIBS += -L/mnt/hgfs/abel/Develop/c0-buildstation/a0-qqtfoundation/$${SYSNAME}/$${BUILD}/src/bin
LIBS += -lQQt LIBS += -lQQt
} else: equals(QMAKE_HOST.os, Windows) { } else: equals(QMAKE_HOST.os, Windows) {
LIBS += -LC:/Users/Administrator/Develop/c0-build/a0-qqtfoundation/Mingw32/$${BUILD}/src/bin LIBS += -LC:/Users/Administrator/Develop/c0-build/a0-qqtfoundation/$${SYSNAME}/$${BUILD}/src/bin
LIBS += -lQQt LIBS += -lQQt
} }
@ -140,7 +152,8 @@ can_install:equals(QT_KIT, MIPS32) {
} }
} }
INCLUDEPATH += $$PWD TARGET = qqtframe2
TEMPLATE = app
SOURCES += \ SOURCES += \
main.cpp \ main.cpp \