mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update link QQt logic
This commit is contained in:
parent
9a061c0dac
commit
acf166c913
125
QQt.pro
125
QQt.pro
@ -3,67 +3,66 @@ CONFIG += ordered
|
||||
|
||||
SUBDIRS = src/qqt.pro
|
||||
|
||||
##-----------------------------------------------------------------
|
||||
##basic example
|
||||
##-----------------------------------------------------------------
|
||||
#SUBDIRS += examples/qqtframe
|
||||
#SUBDIRS += examples/qqtframe2
|
||||
#SUBDIRS += examples/animationframe
|
||||
#
|
||||
##-----------------------------------------------------------------
|
||||
##QQt installed to Qt library or
|
||||
##QQt installed to sdk or
|
||||
##QQt is build
|
||||
##-----------------------------------------------------------------
|
||||
#SUBDIRS += examples/exquisite
|
||||
#SUBDIRS += examples/tabwidgetexamples
|
||||
#SUBDIRS += examples/qrcodeexample
|
||||
#SUBDIRS += examples/qqtnetworkexample
|
||||
#SUBDIRS += examples/qqtchartexample
|
||||
#
|
||||
#
|
||||
##-----------------------------------------------------------------
|
||||
##need webaccessmanager - WebSupport
|
||||
##need QSsl
|
||||
##need GumoQuery
|
||||
##-----------------------------------------------------------------
|
||||
#greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += examples/QtSdkManager
|
||||
#
|
||||
greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += demo/VegeTablesPrice
|
||||
##-----------------------------------------------------------------
|
||||
##some test project
|
||||
##-----------------------------------------------------------------
|
||||
#SUBDIRS += test/gumbo_query_test
|
||||
#SUBDIRS += test/svgtest
|
||||
#SUBDIRS += test/framelesshelperwidget
|
||||
#SUBDIRS += test/treeviewtest
|
||||
#SUBDIRS += test/qqtdicttest
|
||||
#!contains(QKIT_PRIVATE, iOS|iOSSimulator){
|
||||
# SUBDIRS += test/cmdwidget
|
||||
#}
|
||||
#SUBDIRS += test/coretest
|
||||
#
|
||||
##-----------------------------------------------------------------
|
||||
##need webkit webkitwidgets - WebSupport
|
||||
##webengine
|
||||
##-----------------------------------------------------------------
|
||||
#lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebkittest
|
||||
#lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebclient
|
||||
##-----------------------------------------------------------------
|
||||
##need QtSoap - WebSupport
|
||||
##-----------------------------------------------------------------
|
||||
#SUBDIRS += test/easter
|
||||
#SUBDIRS += test/soapQQtOnline
|
||||
##-----------------------------------------------------------------
|
||||
##need vlcQt libvlc library
|
||||
##-----------------------------------------------------------------
|
||||
##SUBDIRS += test/qqtliveplayer
|
||||
#
|
||||
##-----------------------------------------------------------------
|
||||
##need ffmpeg library
|
||||
##-----------------------------------------------------------------
|
||||
##SUBDIRS += test/qqtffmpegplayer
|
||||
#
|
||||
##need bluetooth library
|
||||
#SUBDIRS += test/qqtbtfileserver
|
||||
#-----------------------------------------------------------------
|
||||
#basic example
|
||||
#-----------------------------------------------------------------
|
||||
SUBDIRS += examples/qqtframe
|
||||
SUBDIRS += examples/qqtframe2
|
||||
SUBDIRS += examples/animationframe
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#QQt installed to Qt library or
|
||||
#QQt installed to sdk or
|
||||
#QQt is build
|
||||
#-----------------------------------------------------------------
|
||||
SUBDIRS += examples/exquisite
|
||||
SUBDIRS += examples/tabwidgetexamples
|
||||
SUBDIRS += examples/qrcodeexample
|
||||
SUBDIRS += examples/qqtnetworkexample
|
||||
SUBDIRS += examples/qqtchartexample
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#need webaccessmanager - WebSupport
|
||||
#need QSsl
|
||||
#need GumoQuery
|
||||
#-----------------------------------------------------------------
|
||||
greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += examples/QtSdkManager
|
||||
greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += demo/VegeTablesPrice
|
||||
#-----------------------------------------------------------------
|
||||
#some test project
|
||||
#-----------------------------------------------------------------
|
||||
SUBDIRS += test/gumbo_query_test
|
||||
SUBDIRS += test/svgtest
|
||||
SUBDIRS += test/framelesshelperwidget
|
||||
SUBDIRS += test/treeviewtest
|
||||
SUBDIRS += test/qqtdicttest
|
||||
!contains(QKIT_PRIVATE, iOS|iOSSimulator){
|
||||
SUBDIRS += test/cmdwidget
|
||||
}
|
||||
SUBDIRS += test/coretest
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#need webkit webkitwidgets - WebSupport
|
||||
#webengine
|
||||
#-----------------------------------------------------------------
|
||||
lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebkittest
|
||||
lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebclient
|
||||
#-----------------------------------------------------------------
|
||||
#need QtSoap - WebSupport
|
||||
#-----------------------------------------------------------------
|
||||
SUBDIRS += test/easter
|
||||
SUBDIRS += test/soapQQtOnline
|
||||
#-----------------------------------------------------------------
|
||||
#need vlcQt libvlc library
|
||||
#-----------------------------------------------------------------
|
||||
#SUBDIRS += test/qqtliveplayer
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
#need ffmpeg library
|
||||
#-----------------------------------------------------------------
|
||||
#SUBDIRS += test/qqtffmpegplayer
|
||||
|
||||
#need bluetooth library
|
||||
SUBDIRS += test/qqtbtfileserver
|
||||
|
||||
|
@ -33,7 +33,7 @@ FORMS += \
|
||||
mainwindow.ui
|
||||
|
||||
|
||||
#debug.
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
@ -46,5 +46,42 @@ include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/app_settings.pri)
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -22,10 +22,6 @@ greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
|
||||
TARGET = QQtSdkManager
|
||||
TEMPLATE = app
|
||||
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
SOURCES += \
|
||||
@ -46,3 +42,56 @@ HEADERS += \
|
||||
FORMS += \
|
||||
mainwindow.ui \
|
||||
httpdownloaddialog.ui
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -3,34 +3,6 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##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
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
}
|
||||
|
||||
#################################################################
|
||||
##project environ
|
||||
#################################################################
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
QT += core gui
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
@ -47,3 +19,56 @@ HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h \
|
||||
animationmanager.h
|
||||
|
||||
FORMS += $$PWD/qqtwindow.ui
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -21,13 +21,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# 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
|
||||
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
QMAKE_PRE_LINK += echo hello
|
||||
QMAKE_PRE_LINK += rm -rf bin/exquisite.app
|
||||
}
|
||||
|
||||
system(touch main.cpp)
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
mainwindow.cpp
|
||||
@ -38,14 +31,37 @@ HEADERS += \
|
||||
FORMS += \
|
||||
mainwindow.ui
|
||||
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
################################################################
|
||||
##build cache
|
||||
################################################################
|
||||
OBJECTS_DIR = obj
|
||||
MOC_DIR = obj/moc.cpp
|
||||
UI_DIR = obj/ui.h
|
||||
RCC_DIR = qrc
|
||||
#user can change this dir
|
||||
DESTDIR = bin
|
||||
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
QMAKE_PRE_LINK += echo hello
|
||||
QMAKE_PRE_LINK += rm -rf $${DESTDIR}/$${TARGET}.app
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -58,6 +74,22 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
$${PWD}/android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -65,18 +97,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
||||
|
@ -36,14 +36,21 @@ FORMS += \
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -56,6 +63,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -63,17 +87,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += core gui network sql xml
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
@ -18,11 +17,22 @@ HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
|
||||
|
||||
FORMS += $$PWD/qqtwindow.ui
|
||||
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
############
|
||||
##install
|
||||
############
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
target.path = /Application
|
||||
@ -34,14 +44,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
#################################################################
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#################################################################
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = android
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
################################################################
|
||||
|
@ -49,12 +49,6 @@ equals(QMAKE_HOST.os, Darwin) {
|
||||
#all cross platform setting is from here.
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_qkit.pri)
|
||||
|
||||
#if you dont modify Qt Creator default build directory, you may need mod this path variable.
|
||||
#link operation all will need this variable
|
||||
QQT_STD_DIR = QQt/$${QT_VERSION}/$${SYSNAME}/$${BUILD}
|
||||
#link from build need this
|
||||
QQT_DST_DIR = src/bin
|
||||
|
||||
#qqt version
|
||||
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
||||
|
||||
@ -64,6 +58,12 @@ include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
||||
#-------------------------------------------------------------
|
||||
#link qqt settings: use source or link library?
|
||||
#-------------------------------------------------------------
|
||||
#if you dont modify Qt Creator default build directory, you may need mod this path variable.
|
||||
#link operation all will need this variable
|
||||
QQT_STD_DIR = QQt/$${QT_VERSION}/$${SYSNAME}/$${BUILD}
|
||||
#link from build need this, if you mod DESTDIR, you will need modify this
|
||||
QQT_DST_DIR = src/bin
|
||||
|
||||
#if you want to build qqt source open this annotation
|
||||
#CONFIG += LINK_QQT_SOURCE
|
||||
contains (CONFIG, LINK_QQT_SOURCE) {
|
||||
|
@ -13,35 +13,6 @@ 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(../qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##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
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
}
|
||||
|
||||
#################################################################
|
||||
##project environ
|
||||
#################################################################
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
TARGET = qqtframe2
|
||||
TEMPLATE = app
|
||||
|
||||
@ -54,3 +25,7 @@ HEADERS += \
|
||||
|
||||
FORMS += \
|
||||
mainwindow.ui
|
||||
|
||||
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
include(../qqtframe2/app_settings.pri)
|
||||
|
@ -50,16 +50,21 @@ contains (DEFINES, __BLUETOOTH__){
|
||||
FORMS += \
|
||||
mainwindow.ui
|
||||
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -72,11 +77,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -84,3 +101,4 @@ equals(QKIT_PRIVATE, ANDROID) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -35,18 +35,21 @@ HEADERS += \
|
||||
FORMS += \
|
||||
mainwindow.ui
|
||||
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -59,6 +62,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -66,17 +86,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
@ -36,14 +36,21 @@ FORMS += \
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../qqtframe2/link_qqt_library.pri)
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -56,6 +63,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -63,17 +87,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
@ -111,15 +111,6 @@ win32 {
|
||||
RESOURCES += \
|
||||
qqt.qrc
|
||||
|
||||
################################################################
|
||||
##build cache
|
||||
################################################################
|
||||
OBJECTS_DIR = obj
|
||||
MOC_DIR = obj/moc.cpp
|
||||
UI_DIR = obj/ui.h
|
||||
RCC_DIR = qrc
|
||||
DESTDIR = bin
|
||||
|
||||
|
||||
#################################################################
|
||||
##project environ
|
||||
|
@ -78,6 +78,15 @@ contains(QKIT_PRIVATE, WIN32) {
|
||||
}
|
||||
}
|
||||
|
||||
################################################################
|
||||
##build cache
|
||||
################################################################
|
||||
isEmpty(OBJECTS_DIR):OBJECTS_DIR = obj
|
||||
isEmpty(MOC_DIR):MOC_DIR = obj/moc.cpp
|
||||
isEmpty(UI_DIR):UI_DIR = obj/ui.h
|
||||
isEmpty(RCC_DIR):RCC_DIR = qrc
|
||||
isEmpty(DESTDIR):DESTDIR = bin
|
||||
|
||||
################################################################
|
||||
##QQt Functions Macro
|
||||
################################################################
|
||||
|
@ -47,19 +47,20 @@ defineReplace(link_qqt_library) {
|
||||
defineReplace(copy_qqt_on_mac) {
|
||||
#need QQT_BUILD_PWD
|
||||
create_command = $$create_mac_sdk()
|
||||
|
||||
command += rm -rf bin/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
command += mkdir -p bin/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
command += cd bin/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
QQT_DESTDIR=$${DESTDIR}
|
||||
isEmpty(QQT_DESTDIR):QQT_DESTDIR=.
|
||||
command += rm -rf $${QQT_DESTDIR}/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
command += mkdir -p $${QQT_DESTDIR}/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
command += cd $${QQT_DESTDIR}/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
|
||||
command += $${create_command} &&
|
||||
command += cd $${OUT_PWD} &&
|
||||
#Qt Creator create framework but use absolute path to make link
|
||||
#QMAKE_POST_LINK += cp -rf $${QQT_LIB_PWD}/QQt.framework \
|
||||
# bin/$${TARGET}.app/Contents/Frameworks &&
|
||||
# $${DESTDIR}/$${TARGET}.app/Contents/Frameworks &&
|
||||
command += 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} &&
|
||||
command += macdeployqt bin/$${TARGET}.app -verbose=1
|
||||
$${QQT_DESTDIR}/$${TARGET}.app/Contents/MacOS/$${TARGET} &&
|
||||
command += macdeployqt $${QQT_DESTDIR}/$${TARGET}.app -verbose=1
|
||||
#message($$command)
|
||||
return ($$command)
|
||||
}
|
||||
|
@ -20,11 +20,22 @@ HEADERS += cmdwidget.h \
|
||||
|
||||
FORMS += cmdwidget.ui
|
||||
|
||||
include($$PWD/../../examples/qqtframe2/link_qqt_library.pri)
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
############
|
||||
##install
|
||||
############
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
target.path = /Application
|
||||
@ -36,15 +47,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
#################################################################
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#################################################################
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -32,4 +32,56 @@ SOURCES += \
|
||||
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
include (../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
0
test/coretest/main.cpp
Normal file
0
test/coretest/main.cpp
Normal file
@ -1,8 +1,27 @@
|
||||
TEMPLATE = app
|
||||
INCLUDEPATH += .
|
||||
CONFIG += console
|
||||
|
||||
# Input
|
||||
HEADERS += easter.h
|
||||
SOURCES += main.cpp easter.cpp
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##install
|
||||
############
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
target.path = /Application
|
||||
@ -14,22 +33,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
#################################################################
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#################################################################
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
TEMPLATE = app
|
||||
INCLUDEPATH += .
|
||||
CONFIG += console
|
||||
|
||||
# Input
|
||||
HEADERS += easter.h
|
||||
SOURCES += main.cpp easter.cpp
|
||||
|
@ -3,34 +3,6 @@
|
||||
# Project created by QtCreator 2017-10-21T21:26:55
|
||||
#
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##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
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
}
|
||||
|
||||
#################################################################
|
||||
##project environ
|
||||
#################################################################
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
QT += core gui
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
@ -59,3 +31,56 @@ HEADERS += \
|
||||
|
||||
FORMS += \
|
||||
widget.ui
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -19,14 +19,21 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -39,6 +46,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -46,17 +70,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
@ -39,13 +39,21 @@ FORMS += \
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -58,11 +66,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, ANDROID) {
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -70,3 +90,4 @@ equals(QKIT_PRIVATE, ANDROID) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
0
test/qqtdicttest/main.cpp
Normal file
0
test/qqtdicttest/main.cpp
Normal file
@ -29,4 +29,55 @@ SOURCES += \
|
||||
|
||||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
||||
|
||||
include (../../examples/qqtframe2/link_qqt_library.pri)
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui webkitwidgets
|
||||
|
||||
@ -20,3 +19,56 @@ SOURCES += $$PWD/main.cpp $$PWD/qqtapp.cpp $$PWD/qqtwindow.cpp
|
||||
HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
|
||||
|
||||
FORMS += $$PWD/qqtwindow.ui
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
# Project created by QtCreator 2016-06-17T10:03:52
|
||||
#
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
QT += core gui webkit webkitwidgets
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
@ -20,3 +18,56 @@ SOURCES += $$PWD/main.cpp $$PWD/qqtapp.cpp $$PWD/qqtwindow.cpp
|
||||
HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
|
||||
|
||||
FORMS += $$PWD/qqtwindow.ui
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -3,21 +3,6 @@
|
||||
# Project created by QtCreator 2017-10-27T20:06:56
|
||||
#
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
############
|
||||
##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
|
||||
}
|
||||
}
|
||||
|
||||
QT += core gui
|
||||
|
||||
@ -45,6 +30,55 @@ SOURCES += \
|
||||
HEADERS += \
|
||||
mainwindow.h
|
||||
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
#default
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
|
||||
|
@ -37,14 +37,21 @@ CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -57,6 +64,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -64,17 +88,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
@ -37,14 +37,21 @@ CONFIG += mobility
|
||||
MOBILITY =
|
||||
|
||||
|
||||
#qmake_pre/post_link will work after source changed but not pro pri changed.
|
||||
system("touch main.cpp")
|
||||
|
||||
#-------------------------------------------------
|
||||
#link qqt library
|
||||
#if you link a library to your app, on android you must select the running kit to the app, not LibQQt e.g.
|
||||
#user can modify any infomation under this annotation
|
||||
#-------------------------------------------------
|
||||
include(../../examples/qqtframe2/link_qqt_library.pri)
|
||||
|
||||
#-------------------------------------------------
|
||||
#install
|
||||
#user app may use these these settings prefertly
|
||||
#-------------------------------------------------
|
||||
#-------------------------------------------------
|
||||
#install app
|
||||
#-------------------------------------------------
|
||||
#CONFIG += can_install
|
||||
can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
@ -57,6 +64,23 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
}
|
||||
}
|
||||
|
||||
############
|
||||
##config defination
|
||||
############
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
CONFIG += app_bundle
|
||||
}
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
##project environ
|
||||
#-------------------------------------------------
|
||||
@ -64,18 +88,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
|
||||
message ($${TARGET} config $${CONFIG})
|
||||
message ($${TARGET} define $${DEFINES})
|
||||
|
||||
contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
|
||||
CONFIG += mobility
|
||||
MOBILITY =
|
||||
DISTFILES += \
|
||||
android/AndroidManifest.xml \
|
||||
android/gradle/wrapper/gradle-wrapper.jar \
|
||||
android/gradlew \
|
||||
android/res/values/libs.xml \
|
||||
android/build.gradle \
|
||||
android/gradle/wrapper/gradle-wrapper.properties \
|
||||
android/gradlew.bat
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user