diff options
| author | ruki <[email protected]> | 2020-08-21 23:17:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-21 23:17:49 +0800 |
| commit | 0d7d4659b1120e98b9a42ad9abbe440cfe026efc (patch) | |
| tree | fdaee3ce8eb2898e82270c35b7d9e6f06fb0e654 | |
| parent | 39e961999b500ea51084349907c6474a31240d3f (diff) | |
remove some comments for templates
| -rw-r--r-- | xmake/templates/c++/qt.console/project/xmake.lua | 7 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.quickapp/project/xmake.lua | 9 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.quickapp_static/project/xmake.lua | 12 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.shared/project/xmake.lua | 13 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.static/project/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.widgetapp/project/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/templates/c++/qt.widgetapp_static/project/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/templates/c++/tbox.console/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/c++/tbox.shared/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/c++/tbox.static/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/c/tbox.console/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/c/tbox.shared/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/c/tbox.static/project/xmake.lua | 56 | ||||
| -rw-r--r-- | xmake/templates/cuda/console/project/xmake.lua | 9 | ||||
| -rw-r--r-- | xmake/templates/cuda/shared/project/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/cuda/static/project/xmake.lua | 11 |
16 files changed, 21 insertions, 418 deletions
diff --git a/xmake/templates/c++/qt.console/project/xmake.lua b/xmake/templates/c++/qt.console/project/xmake.lua index 855d487c3..fc9104ce6 100644 --- a/xmake/templates/c++/qt.console/project/xmake.lua +++ b/xmake/templates/c++/qt.console/project/xmake.lua @@ -1,14 +1,7 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.console") - - -- add files add_files("src/*.cpp") ${FAQ} diff --git a/xmake/templates/c++/qt.quickapp/project/xmake.lua b/xmake/templates/c++/qt.quickapp/project/xmake.lua index 3cd32674f..4dd4fc684 100644 --- a/xmake/templates/c++/qt.quickapp/project/xmake.lua +++ b/xmake/templates/c++/qt.quickapp/project/xmake.lua @@ -1,17 +1,8 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.quickapp") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") add_files("src/qml.qrc") diff --git a/xmake/templates/c++/qt.quickapp_static/project/xmake.lua b/xmake/templates/c++/qt.quickapp_static/project/xmake.lua index 67d4933c5..6e9e2db5a 100644 --- a/xmake/templates/c++/qt.quickapp_static/project/xmake.lua +++ b/xmake/templates/c++/qt.quickapp_static/project/xmake.lua @@ -1,24 +1,12 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- includes includes("qt_add_static_plugins.lua") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.quickapp_static") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") add_files("src/qml.qrc") - - -- add plugin: qml.QtQuick qt_add_static_plugins("QtQuick2Plugin", {linkdirs = "qml/QtQuick.2", links = "qtquick2plugin"}) qt_add_static_plugins("QtQuick2WindowPlugin", {linkdirs = "qml/QtQuick/Window.2", links = "windowplugin"}) diff --git a/xmake/templates/c++/qt.shared/project/xmake.lua b/xmake/templates/c++/qt.shared/project/xmake.lua index 2092e95a9..aa5cebf0a 100644 --- a/xmake/templates/c++/qt.shared/project/xmake.lua +++ b/xmake/templates/c++/qt.shared/project/xmake.lua @@ -1,23 +1,10 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.shared") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") - - -- add defines add_defines("QT_DEMO_LIBRARY") - - -- add frameworks add_frameworks("QtGui") ${FAQ} diff --git a/xmake/templates/c++/qt.static/project/xmake.lua b/xmake/templates/c++/qt.static/project/xmake.lua index 36b1f6157..6ff2a8c58 100644 --- a/xmake/templates/c++/qt.static/project/xmake.lua +++ b/xmake/templates/c++/qt.static/project/xmake.lua @@ -1,20 +1,9 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.static") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") - - -- add frameworks add_frameworks("QtGui") ${FAQ} diff --git a/xmake/templates/c++/qt.widgetapp/project/xmake.lua b/xmake/templates/c++/qt.widgetapp/project/xmake.lua index 556113a3b..9fdf5206d 100644 --- a/xmake/templates/c++/qt.widgetapp/project/xmake.lua +++ b/xmake/templates/c++/qt.widgetapp/project/xmake.lua @@ -1,20 +1,10 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.widgetapp") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") add_files("src/mainwindow.ui") - -- add files with Q_OBJECT meta (only for qt.moc) add_files("src/mainwindow.h") diff --git a/xmake/templates/c++/qt.widgetapp_static/project/xmake.lua b/xmake/templates/c++/qt.widgetapp_static/project/xmake.lua index 2d3ad7c76..80517375f 100644 --- a/xmake/templates/c++/qt.widgetapp_static/project/xmake.lua +++ b/xmake/templates/c++/qt.widgetapp_static/project/xmake.lua @@ -1,20 +1,10 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- includes includes("qt_add_static_plugins.lua") --- add target target("${TARGETNAME}") - - -- add rules add_rules("qt.widgetapp_static") - - -- add headerfiles add_headerfiles("src/*.h") - - -- add files add_files("src/*.cpp") add_files("src/mainwindow.ui") diff --git a/xmake/templates/c++/tbox.console/project/xmake.lua b/xmake/templates/c++/tbox.console/project/xmake.lua index e2dc5c6e4..dee540d48 100644 --- a/xmake/templates/c++/tbox.console/project/xmake.lua +++ b/xmake/templates/c++/tbox.console/project/xmake.lua @@ -1,71 +1,21 @@ --- version -set_xmakever("2.2.2") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src") ${FAQ} diff --git a/xmake/templates/c++/tbox.shared/project/xmake.lua b/xmake/templates/c++/tbox.shared/project/xmake.lua index f2dec7a83..284ab31e1 100644 --- a/xmake/templates/c++/tbox.shared/project/xmake.lua +++ b/xmake/templates/c++/tbox.shared/project/xmake.lua @@ -1,71 +1,21 @@ --- version -set_xmakever("2.2.5") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src/${TARGETNAME}", "src/${TARGETNAME}_demo") ${FAQ} diff --git a/xmake/templates/c++/tbox.static/project/xmake.lua b/xmake/templates/c++/tbox.static/project/xmake.lua index f2dec7a83..284ab31e1 100644 --- a/xmake/templates/c++/tbox.static/project/xmake.lua +++ b/xmake/templates/c++/tbox.static/project/xmake.lua @@ -1,71 +1,21 @@ --- version -set_xmakever("2.2.5") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src/${TARGETNAME}", "src/${TARGETNAME}_demo") ${FAQ} diff --git a/xmake/templates/c/tbox.console/project/xmake.lua b/xmake/templates/c/tbox.console/project/xmake.lua index 31edb3c75..4a3eaebbe 100644 --- a/xmake/templates/c/tbox.console/project/xmake.lua +++ b/xmake/templates/c/tbox.console/project/xmake.lua @@ -1,69 +1,19 @@ --- version -set_xmakever("2.2.2") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src") diff --git a/xmake/templates/c/tbox.shared/project/xmake.lua b/xmake/templates/c/tbox.shared/project/xmake.lua index f2dec7a83..284ab31e1 100644 --- a/xmake/templates/c/tbox.shared/project/xmake.lua +++ b/xmake/templates/c/tbox.shared/project/xmake.lua @@ -1,71 +1,21 @@ --- version -set_xmakever("2.2.5") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src/${TARGETNAME}", "src/${TARGETNAME}_demo") ${FAQ} diff --git a/xmake/templates/c/tbox.static/project/xmake.lua b/xmake/templates/c/tbox.static/project/xmake.lua index f2dec7a83..284ab31e1 100644 --- a/xmake/templates/c/tbox.static/project/xmake.lua +++ b/xmake/templates/c/tbox.static/project/xmake.lua @@ -1,71 +1,21 @@ --- version -set_xmakever("2.2.5") - --- set warning all as error +set_xmakever("2.3.6") set_warnings("all", "error") - --- set language: c99, c++11 set_languages("c99", "cxx11") - --- disable some compiler errors add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing") --- the debug mode -if is_mode("debug") then - - -- enable the debug symbols - set_symbols("debug") - - -- disable optimization - set_optimize("none") - - -- add defines for debug - add_defines("__tb_debug__") -end - --- the release mode -if is_mode("release") then - - -- set the symbols visibility: hidden - set_symbols("hidden") - - -- strip all symbols - set_strip("all") - - -- enable fastest optimization - set_optimize("fastest") -end +add_rules("mode.release", "mode.debug") +add_requires("tbox", {debug = is_mode("debug")}) --- for the windows platform (msvc) if is_plat("windows") then - - -- the release mode if is_mode("release") then - - -- link libcmt.lib add_cxflags("-MT") - - -- the debug mode elseif is_mode("debug") then - - -- link libcmtd.lib add_cxflags("-MTd") end - - -- no msvcrt.lib add_ldflags("-nodefaultlib:msvcrt.lib") end --- add syslinks -if is_plat("windows") then add_syslinks("ws2_32") -elseif is_plat("android") then add_syslinks("m", "c") -else add_syslinks("pthread", "dl", "m", "c") end - --- add requires -add_requires("tbox", {debug = is_mode("debug")}) - --- include project sources includes("src/${TARGETNAME}", "src/${TARGETNAME}_demo") ${FAQ} diff --git a/xmake/templates/cuda/console/project/xmake.lua b/xmake/templates/cuda/console/project/xmake.lua index eec69685f..17223cbc4 100644 --- a/xmake/templates/cuda/console/project/xmake.lua +++ b/xmake/templates/cuda/console/project/xmake.lua @@ -1,12 +1,8 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- define target target("${TARGETNAME}") - - -- set kind set_kind("binary") + add_files("src/*.cu") -- generate relocatable device code for device linker of dependents. -- if __device__ or __global__ functions will be called cross file, @@ -14,9 +10,6 @@ target("${TARGETNAME}") -- this instruction should be opted in. -- add_cuflags("-rdc=true") - -- add files - add_files("src/*.cu") - -- generate SASS code for SM architecture of current host add_cugencodes("native") diff --git a/xmake/templates/cuda/shared/project/xmake.lua b/xmake/templates/cuda/shared/project/xmake.lua index 8f854764f..9b8e2929d 100644 --- a/xmake/templates/cuda/shared/project/xmake.lua +++ b/xmake/templates/cuda/shared/project/xmake.lua @@ -1,14 +1,8 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- define target target("${TARGETNAME}") - - -- set kind set_kind("shared") - - -- add include dirs + add_files("src/**.cu") add_includedirs("inc") -- generate relocatable device code for device linker of dependents. @@ -17,9 +11,6 @@ target("${TARGETNAME}") -- this instruction should be opted in. -- add_cuflags("-rdc=true") - -- add files - add_files("src/**.cu") - -- generate SASS code for SM architecture of current host add_cugencodes("native") diff --git a/xmake/templates/cuda/static/project/xmake.lua b/xmake/templates/cuda/static/project/xmake.lua index 5e22ba152..7bdbb1d91 100644 --- a/xmake/templates/cuda/static/project/xmake.lua +++ b/xmake/templates/cuda/static/project/xmake.lua @@ -1,14 +1,8 @@ - --- add modes: debug and release add_rules("mode.debug", "mode.release") --- define target target("${TARGETNAME}") - - -- set kind set_kind("static") - - -- add include dirs + add_files("src/**.cu") add_includedirs("inc") -- generate relocatable device code for device linker of dependents. @@ -17,9 +11,6 @@ target("${TARGETNAME}") -- this instruction could be omitted. add_cuflags("-rdc=true") - -- add files - add_files("src/**.cu") - -- generate SASS code for SM architecture of current host add_cugencodes("native") |
