1
0
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:
tianduanrui 2017-11-27 19:52:13 +08:00
parent 9a061c0dac
commit acf166c913
30 changed files with 894 additions and 352 deletions

125
QQt.pro
View File

@ -3,67 +3,66 @@ CONFIG += ordered
SUBDIRS = src/qqt.pro SUBDIRS = src/qqt.pro
##----------------------------------------------------------------- #-----------------------------------------------------------------
##basic example #basic example
##----------------------------------------------------------------- #-----------------------------------------------------------------
#SUBDIRS += examples/qqtframe SUBDIRS += examples/qqtframe
#SUBDIRS += examples/qqtframe2 SUBDIRS += examples/qqtframe2
#SUBDIRS += examples/animationframe SUBDIRS += examples/animationframe
#
##----------------------------------------------------------------- #-----------------------------------------------------------------
##QQt installed to Qt library or #QQt installed to Qt library or
##QQt installed to sdk or #QQt installed to sdk or
##QQt is build #QQt is build
##----------------------------------------------------------------- #-----------------------------------------------------------------
#SUBDIRS += examples/exquisite SUBDIRS += examples/exquisite
#SUBDIRS += examples/tabwidgetexamples SUBDIRS += examples/tabwidgetexamples
#SUBDIRS += examples/qrcodeexample SUBDIRS += examples/qrcodeexample
#SUBDIRS += examples/qqtnetworkexample SUBDIRS += examples/qqtnetworkexample
#SUBDIRS += examples/qqtchartexample SUBDIRS += examples/qqtchartexample
#
#
##----------------------------------------------------------------- #-----------------------------------------------------------------
##need webaccessmanager - WebSupport #need webaccessmanager - WebSupport
##need QSsl #need QSsl
##need GumoQuery #need GumoQuery
##----------------------------------------------------------------- #-----------------------------------------------------------------
#greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += examples/QtSdkManager greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += examples/QtSdkManager
# greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += demo/VegeTablesPrice
greaterThan(QT_MAJOR_VERSION , 4):SUBDIRS += demo/VegeTablesPrice #-----------------------------------------------------------------
##----------------------------------------------------------------- #some test project
##some test project #-----------------------------------------------------------------
##----------------------------------------------------------------- SUBDIRS += test/gumbo_query_test
#SUBDIRS += test/gumbo_query_test SUBDIRS += test/svgtest
#SUBDIRS += test/svgtest SUBDIRS += test/framelesshelperwidget
#SUBDIRS += test/framelesshelperwidget SUBDIRS += test/treeviewtest
#SUBDIRS += test/treeviewtest SUBDIRS += test/qqtdicttest
#SUBDIRS += test/qqtdicttest !contains(QKIT_PRIVATE, iOS|iOSSimulator){
#!contains(QKIT_PRIVATE, iOS|iOSSimulator){ SUBDIRS += test/cmdwidget
# SUBDIRS += test/cmdwidget }
#} SUBDIRS += test/coretest
#SUBDIRS += test/coretest
# #-----------------------------------------------------------------
##----------------------------------------------------------------- #need webkit webkitwidgets - WebSupport
##need webkit webkitwidgets - WebSupport #webengine
##webengine #-----------------------------------------------------------------
##----------------------------------------------------------------- lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebkittest
#lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebkittest lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebclient
#lessThan(QT_MAJOR_VERSION , 5):SUBDIRS += test/qqtwebclient #-----------------------------------------------------------------
##----------------------------------------------------------------- #need QtSoap - WebSupport
##need QtSoap - WebSupport #-----------------------------------------------------------------
##----------------------------------------------------------------- SUBDIRS += test/easter
#SUBDIRS += test/easter SUBDIRS += test/soapQQtOnline
#SUBDIRS += test/soapQQtOnline #-----------------------------------------------------------------
##----------------------------------------------------------------- #need vlcQt libvlc library
##need vlcQt libvlc library #-----------------------------------------------------------------
##----------------------------------------------------------------- #SUBDIRS += test/qqtliveplayer
##SUBDIRS += test/qqtliveplayer
# #-----------------------------------------------------------------
##----------------------------------------------------------------- #need ffmpeg library
##need ffmpeg library #-----------------------------------------------------------------
##----------------------------------------------------------------- #SUBDIRS += test/qqtffmpegplayer
##SUBDIRS += test/qqtffmpegplayer
# #need bluetooth library
##need bluetooth library SUBDIRS += test/qqtbtfileserver
#SUBDIRS += test/qqtbtfileserver

View File

@ -33,7 +33,7 @@ FORMS += \
mainwindow.ui mainwindow.ui
#debug. #qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp") system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
@ -46,5 +46,42 @@ include(../../examples/qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#user app may use these these settings prefertly #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})

View File

@ -22,10 +22,6 @@ greaterThan(QT_MAJOR_VERSION, 4): DEFINES += __QT5__
TARGET = QQtSdkManager TARGET = QQtSdkManager
TEMPLATE = app TEMPLATE = app
include(../qqtframe2/link_qqt_library.pri)
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD
SOURCES += \ SOURCES += \
@ -46,3 +42,56 @@ HEADERS += \
FORMS += \ FORMS += \
mainwindow.ui \ mainwindow.ui \
httpdownloaddialog.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})

View File

@ -3,34 +3,6 @@
# Project created by QtCreator 2016-06-17T10:03:52 # 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 QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@ -47,3 +19,56 @@ HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h \
animationmanager.h animationmanager.h
FORMS += $$PWD/qqtwindow.ui 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})

View File

@ -21,13 +21,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt. # 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 #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 += \ SOURCES += \
main.cpp \ main.cpp \
mainwindow.cpp mainwindow.cpp
@ -38,14 +31,37 @@ HEADERS += \
FORMS += \ FORMS += \
mainwindow.ui 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 #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. #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(../qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#install #user app may use these these settings prefertly
#-------------------------------------------------
#-------------------------------------------------
#install app
#------------------------------------------------- #-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -65,18 +97,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -36,14 +36,21 @@ FORMS += \
CONFIG += mobility CONFIG += mobility
MOBILITY = MOBILITY =
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -63,17 +87,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -3,7 +3,6 @@
# Project created by QtCreator 2016-06-17T10:03:52 # Project created by QtCreator 2016-06-17T10:03:52
# #
#------------------------------------------------- #-------------------------------------------------
QT += core gui network sql xml QT += core gui network sql xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@ -18,11 +17,22 @@ HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
FORMS += $$PWD/qqtwindow.ui 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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { can_install:equals(QKIT_PRIVATE, EMBEDDED) {
target.path = /Application target.path = /Application
@ -34,14 +44,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
} }
} }
equals(QKIT_PRIVATE, ANDROID) { ############
CONFIG += mobility ##config defination
MOBILITY = ############
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 ##project environ
################################################################# #-------------------------------------------------
#default #default
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) message ($${TARGET} define $${DEFINES})

View File

@ -25,7 +25,7 @@ contains(QKIT_PRIVATE, ANDROID|ANDROIDX86) {
DISTFILES += \ DISTFILES += \
android/AndroidManifest.xml android/AndroidManifest.xml
ANDROID_PACKAGE_SOURCE_DIR = android ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
} }
################################################################ ################################################################

View File

@ -49,12 +49,6 @@ equals(QMAKE_HOST.os, Darwin) {
#all cross platform setting is from here. #all cross platform setting is from here.
include($${QQT_SOURCE_ROOT}/src/qqt_qkit.pri) 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 #qqt version
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri) 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? #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 #if you want to build qqt source open this annotation
#CONFIG += LINK_QQT_SOURCE #CONFIG += LINK_QQT_SOURCE
contains (CONFIG, LINK_QQT_SOURCE) { contains (CONFIG, LINK_QQT_SOURCE) {

View File

@ -13,35 +13,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
# In order to do so, uncomment the following line. # 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. # 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 #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 TARGET = qqtframe2
TEMPLATE = app TEMPLATE = app
@ -54,3 +25,7 @@ HEADERS += \
FORMS += \ FORMS += \
mainwindow.ui mainwindow.ui
include(../qqtframe2/link_qqt_library.pri)
include(../qqtframe2/app_settings.pri)

View File

@ -50,16 +50,21 @@ contains (DEFINES, __BLUETOOTH__){
FORMS += \ FORMS += \
mainwindow.ui mainwindow.ui
CONFIG += mobility #qmake_pre/post_link will work after source changed but not pro pri changed.
MOBILITY = system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 CONFIG += mobility
MOBILITY = MOBILITY =
DISTFILES += \
android/AndroidManifest.xml
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
} }
#------------------------------------------------- #-------------------------------------------------
##project environ ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -84,3 +101,4 @@ equals(QKIT_PRIVATE, ANDROID) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) message ($${TARGET} define $${DEFINES})

View File

@ -35,18 +35,21 @@ HEADERS += \
FORMS += \ FORMS += \
mainwindow.ui mainwindow.ui
CONFIG += mobility #qmake_pre/post_link will work after source changed but not pro pri changed.
MOBILITY = system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -66,17 +86,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -36,14 +36,21 @@ FORMS += \
CONFIG += mobility CONFIG += mobility
MOBILITY = MOBILITY =
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -63,17 +87,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -111,15 +111,6 @@ win32 {
RESOURCES += \ RESOURCES += \
qqt.qrc qqt.qrc
################################################################
##build cache
################################################################
OBJECTS_DIR = obj
MOC_DIR = obj/moc.cpp
UI_DIR = obj/ui.h
RCC_DIR = qrc
DESTDIR = bin
################################################################# #################################################################
##project environ ##project environ

View File

@ -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 ##QQt Functions Macro
################################################################ ################################################################

View File

@ -47,19 +47,20 @@ defineReplace(link_qqt_library) {
defineReplace(copy_qqt_on_mac) { defineReplace(copy_qqt_on_mac) {
#need QQT_BUILD_PWD #need QQT_BUILD_PWD
create_command = $$create_mac_sdk() create_command = $$create_mac_sdk()
QQT_DESTDIR=$${DESTDIR}
command += rm -rf bin/$${TARGET}.app/Contents/Frameworks/QQt.framework && isEmpty(QQT_DESTDIR):QQT_DESTDIR=.
command += mkdir -p bin/$${TARGET}.app/Contents/Frameworks/QQt.framework && command += rm -rf $${QQT_DESTDIR}/$${TARGET}.app/Contents/Frameworks/QQt.framework &&
command += cd bin/$${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 += $${create_command} &&
command += cd $${OUT_PWD} && command += cd $${OUT_PWD} &&
#Qt Creator create framework but use absolute path to make link #Qt Creator create framework but use absolute path to make link
#QMAKE_POST_LINK += cp -rf $${QQT_LIB_PWD}/QQt.framework \ #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 \ command += install_name_tool -change QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
@rpath/QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \ @rpath/QQt.framework/Versions/$${QQT_MAJOR_VERSION}/QQt \
bin/$${TARGET}.app/Contents/MacOS/$${TARGET} && $${QQT_DESTDIR}/$${TARGET}.app/Contents/MacOS/$${TARGET} &&
command += macdeployqt bin/$${TARGET}.app -verbose=1 command += macdeployqt $${QQT_DESTDIR}/$${TARGET}.app -verbose=1
#message($$command) #message($$command)
return ($$command) return ($$command)
} }

View File

@ -20,11 +20,22 @@ HEADERS += cmdwidget.h \
FORMS += cmdwidget.ui 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 #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { can_install:equals(QKIT_PRIVATE, EMBEDDED) {
target.path = /Application target.path = /Application
@ -36,15 +47,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
} }
} }
equals(QKIT_PRIVATE, ANDROID) { ############
CONFIG += mobility ##config defination
MOBILITY = ############
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 ##project environ
################################################################# #-------------------------------------------------
#default #default
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) message ($${TARGET} define $${DEFINES})

View File

@ -32,4 +32,56 @@ SOURCES += \
DEFINES += SRCDIR=\\\"$$PWD/\\\" 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
View File

View 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) include(../../examples/qqtframe2/link_qqt_library.pri)
############ #-------------------------------------------------
##install #user app may use these these settings prefertly
############ #-------------------------------------------------
#-------------------------------------------------
#install app
#-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { can_install:equals(QKIT_PRIVATE, EMBEDDED) {
target.path = /Application target.path = /Application
@ -14,22 +33,28 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
} }
} }
equals(QKIT_PRIVATE, ANDROID) { ############
CONFIG += mobility ##config defination
MOBILITY = ############
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 ##project environ
################################################################# #-------------------------------------------------
#default #default
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) message ($${TARGET} define $${DEFINES})
TEMPLATE = app
INCLUDEPATH += .
CONFIG += console
# Input
HEADERS += easter.h
SOURCES += main.cpp easter.cpp

View File

@ -3,34 +3,6 @@
# Project created by QtCreator 2017-10-21T21:26:55 # 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 QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@ -59,3 +31,56 @@ HEADERS += \
FORMS += \ FORMS += \
widget.ui 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})

View File

@ -19,14 +19,21 @@ DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp SOURCES += main.cpp
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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) include(../../examples/qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#install #user app may use these these settings prefertly
#-------------------------------------------------
#-------------------------------------------------
#install app
#------------------------------------------------- #-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -46,17 +70,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -39,13 +39,21 @@ FORMS += \
CONFIG += mobility CONFIG += mobility
MOBILITY = MOBILITY =
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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) include(../../examples/qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#install #user app may use these these settings prefertly
#-------------------------------------------------
#-------------------------------------------------
#install app
#------------------------------------------------- #-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 CONFIG += mobility
MOBILITY = MOBILITY =
DISTFILES += \
android/AndroidManifest.xml
ANDROID_PACKAGE_SOURCE_DIR = $${PWD}/android
} }
#------------------------------------------------- #-------------------------------------------------
##project environ ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -70,3 +90,4 @@ equals(QKIT_PRIVATE, ANDROID) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) message ($${TARGET} define $${DEFINES})

View File

View File

@ -29,4 +29,55 @@ SOURCES += \
DEFINES += SRCDIR=\\\"$$PWD/\\\" 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})

View File

@ -3,7 +3,6 @@
# Project created by QtCreator 2016-06-17T10:03:52 # Project created by QtCreator 2016-06-17T10:03:52
# #
#------------------------------------------------- #-------------------------------------------------
include(../../examples/qqtframe2/link_qqt_library.pri)
QT += core gui webkitwidgets 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 HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
FORMS += $$PWD/qqtwindow.ui 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})

View File

@ -3,8 +3,6 @@
# Project created by QtCreator 2016-06-17T10:03:52 # Project created by QtCreator 2016-06-17T10:03:52
# #
#------------------------------------------------- #-------------------------------------------------
include(../../examples/qqtframe2/link_qqt_library.pri)
QT += core gui webkit webkitwidgets QT += core gui webkit webkitwidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 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 HEADERS += $$PWD/qqtapp.h $$PWD/qqtwindow.h
FORMS += $$PWD/qqtwindow.ui 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})

View File

@ -3,21 +3,6 @@
# Project created by QtCreator 2017-10-27T20:06:56 # 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 QT += core gui
@ -45,6 +30,55 @@ SOURCES += \
HEADERS += \ HEADERS += \
mainwindow.h mainwindow.h
CONFIG += mobility #qmake_pre/post_link will work after source changed but not pro pri changed.
MOBILITY = 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})

View File

@ -37,14 +37,21 @@ CONFIG += mobility
MOBILITY = MOBILITY =
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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) include(../../examples/qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#install #user app may use these these settings prefertly
#-------------------------------------------------
#-------------------------------------------------
#install app
#------------------------------------------------- #-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -64,17 +88,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}

View File

@ -37,14 +37,21 @@ CONFIG += mobility
MOBILITY = MOBILITY =
#qmake_pre/post_link will work after source changed but not pro pri changed.
system("touch main.cpp")
#------------------------------------------------- #-------------------------------------------------
#link qqt library #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. #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) include(../../examples/qqtframe2/link_qqt_library.pri)
#------------------------------------------------- #-------------------------------------------------
#install #user app may use these these settings prefertly
#-------------------------------------------------
#-------------------------------------------------
#install app
#------------------------------------------------- #-------------------------------------------------
#CONFIG += can_install #CONFIG += can_install
can_install:equals(QKIT_PRIVATE, EMBEDDED) { 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 ##project environ
#------------------------------------------------- #-------------------------------------------------
@ -64,18 +88,4 @@ can_install:equals(QKIT_PRIVATE, EMBEDDED) {
message ($${TARGET} config $${CONFIG}) message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES}) 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
}