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

150 lines
3.8 KiB
Prolog
Raw Normal View History

2017-10-12 16:28:07 +08:00
#-------------------------------------------------
#
# Project created by QtCreator 2017-10-08T23:30:20
#
#-------------------------------------------------
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# 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
QT += core gui network sql xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport serialport
greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
2017-10-18 08:05:58 +08:00
#############
##definition
#############
##Arch type
2017-10-12 16:28:07 +08:00
QT_KIT = $$(QKIT)
message($${QT_KIT} Defined in $${TARGET})
2017-10-18 08:05:58 +08:00
#MIPS __MIPS_LINUX__
#ARM __ARM_LINUX__
#LINUX __LINUX__
#LINUX64 __LINUX64__
#WIN __WIN__
#WIN64 __WIN64__
#macOS __DARWIN__
#Android __ANDROID__
#处理文件内平台小差异
2017-10-12 16:28:07 +08:00
equals(QT_KIT, MIPS32) {
QT += multimedia
DEFINES += __MIPS_LINUX__
} else:equals(QT_KIT, LINUX) {
DEFINES += __LINUX__
} else:equals(QT_KIT, LINUX64) {
2017-10-18 08:05:58 +08:00
DEFINES += __LINUX__
2017-10-12 16:28:07 +08:00
DEFINES += __LINUX64__
} else:equals(QT_KIT, WIN) {
DEFINES += __WIN__
} else:equals(QT_KIT, WIN64) {
2017-10-18 08:05:58 +08:00
DEFINES += __WIN__
2017-10-12 16:28:07 +08:00
DEFINES += __WIN64__
} else:equals(QT_KIT, macOS) {
DEFINES += __DARWIN__
} else:equals(QT_KIT, Android) {
DEFINES += __ANDROID__
2017-10-18 08:05:58 +08:00
} else:equals(QT_KIT, ANDROIDX86) {
DEFINES += __ANDROID__
DEFINES += __ANDROIDX86__
#todo:no customplot word printer
2017-10-12 16:28:07 +08:00
}
2017-10-16 18:03:10 +08:00
TARGET = qqtframe2
TEMPLATE = app
equals(QT_KIT, macOS) {
CONFIG += app_bundle
}
2017-10-12 16:28:07 +08:00
CONFIG(debug, debug|release) {
} else {
DEFINES -= QT_NO_DEBUG_OUTPUT
}
equals(QT_KIT, Android) {
CONFIG += mobility
MOBILITY =
#DISTFILES += \
# android/AndroidManifest.xml
#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
}
INCLUDEPATH += $$PWD \
$$PWD/../../src \
$$PWD/../../src/core \
$$PWD/../../src/gui \
$$PWD/../../src/multimedia \
$$PWD/../../src/network \
$$PWD/../../src/printsupport \
$$PWD/../../src/sql \
$$PWD/../../src/widgets \
$$PWD/../../src/customplot \
$$PWD/../../src/pluginwatcher \
$$PWD/../../src/dmmu \
$$PWD/../../src/frame
#include(../../src/qqt.pri)
2017-10-18 08:05:58 +08:00
CONFIG(debug, debug|release) {
BUILD=Debug
} else {
BUILD=Release
}
message(Link QQt to $${TARGET} $${QT_KIT} $${BUILD} on $${QMAKE_HOST.os})
2017-10-16 18:03:10 +08:00
equals(QMAKE_HOST.os, Darwin) {
equals(QT_KIT, macOS) {
2017-10-18 08:05:58 +08:00
LIBS += -F/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/MacOS/$${BUILD}/src/bin
2017-10-16 18:03:10 +08:00
LIBS += -framework QQt
} else: equals(QT_KIT, Android) {
2017-10-18 08:05:58 +08:00
LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/Android/$${BUILD}/src/bin
2017-10-16 18:03:10 +08:00
LIBS += -lQQt
} else: equals(QT_KIT, ANDROIDX86) {
2017-10-18 08:05:58 +08:00
LIBS += -L/Users/abel/Develop/c0-buildstation/a0-qqtfoundation/Android_x86/$${BUILD}/src/bin
2017-10-16 18:03:10 +08:00
LIBS += -lQQt
}
} else: equals(QMAKE_HOST.os, Linux) {
2017-10-18 08:05:58 +08:00
LIBS += -L/mnt/hgfs/abel/Develop/c0-buildstation/a0-qqtfoundation/Linux/$${BUILD}/src/bin
2017-10-12 16:28:07 +08:00
LIBS += -lQQt
}
############
##build cache
############
OBJECTS_DIR = obj
MOC_DIR = obj/moc.cpp
UI_DIR = obj/ui.h
RCC_DIR = qrc
DESTDIR = bin
############
##install
############
#CONFIG += can_install
can_install:equals(QT_KIT, MIPS32) {
target.path = /Application
INSTALLS += target
} else: unix {
2017-10-16 18:03:10 +08:00
equals(QT_KIT, macOS) {
2017-10-12 16:28:07 +08:00
target.path = /Applications
INSTALLS += target
}
}
INCLUDEPATH += $$PWD
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui