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

change add define

This commit is contained in:
tianduanrui 2018-06-02 10:29:28 +08:00
parent 939cb8aa1e
commit 119df42048
20 changed files with 25 additions and 19 deletions

View File

@ -15,7 +15,7 @@ THIS_PRI_PWD = $${PWD}
#添加依赖library
#add_library(xx)
#add_header(xx)
#add_defines(xx)
#add_define(xx)
#先发布App
#app从build到deploy

View File

@ -78,7 +78,7 @@ defineTest(add_link_library_FFmpeg) {
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -65,7 +65,7 @@ defineTest(add_link_library_FMOD){
add_header_FMOD()
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -73,7 +73,7 @@ defineTest(add_link_library_GoogleTest){
add_header_GoogleTest()
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -83,7 +83,7 @@ defineTest(add_link_library_OpenCV){
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -95,7 +95,7 @@ defineTest(add_link_library_OpenSceneGraph) {
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -29,7 +29,7 @@ contains(BUILD, Release) {
##################################################################
##defines and configures
##################################################################
defineTest(add_defines_QQt){
defineTest(add_define_QQt){
##Qt version
QT += core sql network gui xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@ -520,7 +520,7 @@ defineTest(add_link_library_QQt){
#包含QQt的头文件
add_header_QQt()
#包含QQt的宏定义
add_defines_QQt()
add_define_QQt()
#链接lib)
add_library_QQt()
return (1)

View File

@ -59,7 +59,7 @@ defineTest(add_link_library_Qwt){
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -59,7 +59,7 @@ defineTest(add_link_library_QwtPlot3d){
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -68,7 +68,7 @@ defineTest(add_link_library_Template){
add_header_Template()
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -63,7 +63,7 @@ defineTest(add_link_library_VLC) {
#...
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -65,7 +65,7 @@ defineTest(add_link_library_log4cpp){
add_header_log4cpp()
#添加宏定义
#add_defines(xx)
#add_define(xx)
return (1)
}

View File

@ -44,8 +44,8 @@ add_deploy()
add_dependent_manager_QQt()
mingw{
#Qt is static, but osg is dynamic
#add_defines(OSG_LIBRARY_STATIC)
add_defines(__MINGW32__)
#add_define(OSG_LIBRARY_STATIC)
add_define(__MINGW32__)
}
add_dependent_library_OpenSceneGraph()
add_deploy_config($${PWD}/AppRoot)

View File

@ -56,7 +56,7 @@
- add_header()
- add_local_header()
- add_library()
- add_defines()
- add_define()
- add_language()
- add_zh_CN_en_US()
3. 彻底的脱离了libQQt但是提供对libQQt的链接支持和对其他Library的链接支持一模一样。

View File

@ -2,6 +2,12 @@
#add_library.pri
#提供app链接library函数app lib工程通用
#-------------------------------------------------------------
#add_library
#add_library_no_bundle
#add_header
#add_define
#add_link_library
#add_local_header
################################################################################
#内部用函数
@ -176,9 +182,9 @@ defineTest(add_local_header) {
return (1)
}
defineTest(add_defines) {
defineTest(add_define) {
defname = $$1
isEmpty(1)|!isEmpty(2): error("add_defines(defname) requires one argument")
isEmpty(1)|!isEmpty(2): error("add_define(defname) requires one argument")
command = $${defname}
#message ($$command)

0
multi-link/linux_cd_path.sh Executable file → Normal file
View File

0
multi-link/linux_cp_files.sh Executable file → Normal file
View File

0
multi-link/linux_cur_path.sh Executable file → Normal file
View File

0
multi-link/linux_write_header.sh Executable file → Normal file
View File

View File

@ -64,7 +64,7 @@ add_zh_CN_en_US($${PWD}/$${TARGET}.pro, $${PWD}/AppRoot/lang)
add_header(QQtBasedLibTest)
add_library(QQtBasedLibTest)
add_deploy_library(QQtBasedLibTest)
mingw:add_defines(QQTBASEDLIBTEST_STATIC_LIBRARY)
mingw:add_define(QQTBASEDLIBTEST_STATIC_LIBRARY)
message($$QMAKE_PRE_LINK)
message($$QMAKE_POST_LINK)