mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update qqt library link path
This commit is contained in:
parent
754f6252a9
commit
6445684f2e
@ -1,17 +1,17 @@
|
||||
#here is all your app common defination and configration
|
||||
#change these path on your computer
|
||||
QQT_OUT_PWD=$${OUT_PWD}/../../src/bin
|
||||
message (QQt is building here : $${QQT_OUT_PWD})
|
||||
message(Link QQt to $${TARGET} $${QKIT_} at $${QT_VERSION} $${SYSNAME} $${BUILD} on $${QMAKE_HOST.os})
|
||||
QQT_OUT_PWD=$$OUT_PWD/../../src/bin
|
||||
message (QQt is build here: $$QQT_OUT_PWD)
|
||||
LIBS += -L$$QQT_OUT_PWD
|
||||
LIBS += -L$${QQT_OUT_PWD}
|
||||
equals(QMAKE_HOST.os, Darwin) {
|
||||
contains(DEFINES, __DARWIN__|__IOS__) {
|
||||
LIBS += -F$$QQT_OUT_PWD
|
||||
LIBS += -F$${QQT_OUT_PWD}
|
||||
LIBS += -framework QQt
|
||||
} else{
|
||||
LIBS += -lQQt
|
||||
}
|
||||
} else: equals(QMAKE_HOST.os, Linux|Windows) {
|
||||
} else: contains(QMAKE_HOST.os, Linux|Windows) {
|
||||
LIBS += -lQQt
|
||||
}
|
||||
|
||||
|
@ -16,8 +16,7 @@ contains (CONFIG, BUILD_SRC) {
|
||||
}
|
||||
|
||||
QT += core gui network sql xml
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||
greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = qqtframe
|
||||
TEMPLATE = app
|
||||
|
@ -143,7 +143,7 @@ equals(QKIT_, MIPS32) {
|
||||
SYSNAME = iOS
|
||||
} else:equals(QKIT_, iOSSimulator) {
|
||||
SYSNAME = iOS-simulator
|
||||
} else:equals(QKIT_, Android) {
|
||||
} else:equals(QKIT_, ANDROID) {
|
||||
SYSNAME = Android
|
||||
} else:equals(QKIT_, ANDROIDX86) {
|
||||
SYSNAME = Android_x86
|
||||
@ -219,13 +219,15 @@ contains (DEFINES, __CPP11__) {
|
||||
#if you use qcustomplot, open this annotation
|
||||
#need print support
|
||||
DEFINES += __CUSTOMPLOT__
|
||||
contains(QKIT_, iOS|iOSSimulator|ANDROID|ANDROIDX86) {
|
||||
DEFINES -= __CUSTOMPLOT__
|
||||
}
|
||||
#if you use printsupport , open this annotation
|
||||
DEFINES += __PRINTSUPPORT__
|
||||
#ios android can't support this function now
|
||||
equals(QKIT_, iOS):DEFINES -= __CUSTOMPLOT__
|
||||
equals(QKIT_, iOS):DEFINES -= __PRINTSUPPORT__
|
||||
equals(QKIT_, Android):DEFINES -= __CUSTOMPLOT__
|
||||
equals(QKIT_, Android):DEFINES -= __PRINTSUPPORT__
|
||||
contains(QKIT_, iOS|iOSSimulator|ANDROID|ANDROIDX86) {
|
||||
DEFINES -= __PRINTSUPPORT__
|
||||
}
|
||||
contains (DEFINES, __PRINTSUPPORT__) {
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += printsupport
|
||||
}
|
||||
@ -238,7 +240,32 @@ contains (DEFINES, __WEBSOCKETSUPPORT__) {
|
||||
#TODO: QT += webkit
|
||||
}
|
||||
|
||||
|
||||
##################################################################
|
||||
##library
|
||||
##################################################################
|
||||
equals (QKIT_, iOSSimulator):{
|
||||
QMAKE_CXXFLAGS +=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
||||
}
|
||||
#############
|
||||
##libraries
|
||||
#############
|
||||
win32 {
|
||||
LIBS += -luser32
|
||||
}else: unix {
|
||||
equals(QKIT_, macOS) {
|
||||
#min macosx target
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
|
||||
#deperated
|
||||
#QMAKE_MAC_SDK=macosx10.12
|
||||
#MACOSXSDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$${QMAKE_MACOSX_DEPLOYMENT_TARGET}.sdk
|
||||
#QMAKE_LIBDIR = $${MACOSXSDK}
|
||||
#LIBS += -F$${MACOSXSDK}/System/Library/Frameworks
|
||||
#LIBS += -L$${MACOSXSDK}/usr/lib
|
||||
LIBS += -framework DiskArbitration -framework Cocoa -framework IOKit
|
||||
} else:contains(QKIT_, iOS|iOSSimulator) {
|
||||
LIBS += -l DiskArbitration -l Cocoa -l IOKit
|
||||
}
|
||||
}
|
||||
##################################################################
|
||||
##include directories
|
||||
##################################################################
|
||||
|
@ -3,27 +3,6 @@
|
||||
# Project created by QtCreator 2016-03-24T14:08:11
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
#############
|
||||
##libraries
|
||||
#############
|
||||
win32 {
|
||||
LIBS += -luser32
|
||||
}else: unix {
|
||||
equals(QKIT_, macOS) {
|
||||
#min macosx target
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
|
||||
#deperated
|
||||
#QMAKE_MAC_SDK=macosx10.12
|
||||
#MACOSXSDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$${QMAKE_MACOSX_DEPLOYMENT_TARGET}.sdk
|
||||
#QMAKE_LIBDIR = $${MACOSXSDK}
|
||||
#LIBS += -F$${MACOSXSDK}/System/Library/Frameworks
|
||||
#LIBS += -L$${MACOSXSDK}/usr/lib
|
||||
LIBS += -framework DiskArbitration -framework Cocoa -framework IOKit
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
SOURCES=
|
||||
HEADERS=
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user