mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
#-----------------------------------------------------------------------------
|
|
#app_platform.pri
|
|
#这个pri决定编译目标平台
|
|
#-----------------------------------------------------------------------------
|
|
#从环境变量读取QSYS保存为qmake变量QSYS_PRIVATE
|
|
QSYS_PRIVATE = $$(QSYS)
|
|
contains(QSYS_PRIVATE, Embedded) {
|
|
#embedded common macro
|
|
DEFINES += __EMBEDDED_LINUX__
|
|
} else:contains(QSYS_PRIVATE, Arm32) {
|
|
DEFINES += __EMBEDDED_LINUX__
|
|
#arm32 private
|
|
DEFINES += __ARM_LINUX__
|
|
} else:contains(QSYS_PRIVATE, Mips32) {
|
|
DEFINES += __EMBEDDED_LINUX__
|
|
#mips32 private
|
|
DEFINES += __MIPS_LINUX__
|
|
} else:contains(QSYS_PRIVATE, Linux) {
|
|
DEFINES += __LINUX__
|
|
} else:contains(QSYS_PRIVATE, Linux64) {
|
|
DEFINES += __LINUX64__
|
|
} else:contains(QSYS_PRIVATE, Win32|Windows) {
|
|
DEFINES += __WIN32__
|
|
} else:contains(QSYS_PRIVATE, Win64) {
|
|
DEFINES += __WIN64__
|
|
} else:contains(QSYS_PRIVATE, macOS) {
|
|
DEFINES += __DARWIN__
|
|
} else:contains(QSYS_PRIVATE, iOS) {
|
|
DEFINES += __IOS__
|
|
} else:contains(QSYS_PRIVATE, iOSSimulator) {
|
|
DEFINES += __IOS__
|
|
#TODO:no qcustomplot word printer process
|
|
} else:contains(QSYS_PRIVATE, Android) {
|
|
DEFINES += __ANDROID__
|
|
} else:contains(QSYS_PRIVATE, AndroidX86) {
|
|
DEFINES += __ANDROID__
|
|
DEFINES += __ANDROIDX86__ #可能废弃
|
|
}
|
|
|
|
CONFIG(debug, debug|profile|release):BUILD=Debug
|
|
CONFIG(profile, debug|profile|release):BUILD=Profile
|
|
CONFIG(release, debug|profile|release):BUILD=Release
|
|
|
|
QSYS_STD_DIR = $${QT_VERSION}/$${QSYS_PRIVATE}/$${BUILD}
|
|
|
|
message(app_platform.pri)
|
|
message(Build $${TARGET} to $${QSYS_PRIVATE} \(QSYS=$${QSYS_PRIVATE} is configed in project build page.\) )
|
|
message(Build $${TARGET} at $${QSYS_STD_DIR} \(Qt Kit page FileSystem Name=$${QSYS_PRIVATE}\) )
|
|
message(Build $${TARGET} on $${QMAKE_HOST.os} \(Operating System=$${QMAKE_HOST.os}\) )
|
|
isEmpty(QSYS_PRIVATE) : message(Build $${TARGET} Qt Kit page FileSystem Name is decided by env variable QSYS. Please set it. )
|
|
|
|
isEmpty(QSYS_PRIVATE) {
|
|
message(env variable QSYS is required!)
|
|
message(pleace check app_platform.pri)
|
|
error("error occured, please check build output panel.")
|
|
}
|