diff options
| author | ruki <[email protected]> | 2021-06-29 23:54:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-29 23:54:49 +0800 |
| commit | 3be2aa8c6aa6bea890c7ab321628e3e8c0fd4850 (patch) | |
| tree | 0389c8adf6fb02b39b65e3315fd13bcbb7586299 | |
| parent | 0f2beeb90bc66bb39167662a8cae0bd11f6ab723 (diff) | |
remove some comments
| -rw-r--r-- | core/src/demo/xmake.lua | 1 | ||||
| -rw-r--r-- | core/src/xmake/xmake.lua | 3 | ||||
| -rw-r--r-- | xmake/actions/config/scangen.lua | 16 | ||||
| -rw-r--r-- | xmake/templates/c++/tbox.shared/project/src/_demo/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/c++/tbox.static/project/src/_demo/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/c/tbox.shared/project/src/_demo/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/c/tbox.static/project/src/_demo/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/templates/rust/static/project/xmake.lua | 14 |
8 files changed, 1 insertions, 77 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index 6eeb0c771..8b93335fd 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -1,4 +1,3 @@ --- add target target("demo") -- disable this target if only build libaries diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua index eb2cc62b9..7a604301a 100644 --- a/core/src/xmake/xmake.lua +++ b/core/src/xmake/xmake.lua @@ -1,4 +1,3 @@ --- add target target("xmake") -- make as a static library @@ -40,5 +39,5 @@ target("xmake") if is_plat("windows") then add_defines("UNICODE", "_UNICODE") end - + diff --git a/xmake/actions/config/scangen.lua b/xmake/actions/config/scangen.lua index 6e955b7c1..ef447c228 100644 --- a/xmake/actions/config/scangen.lua +++ b/xmake/actions/config/scangen.lua @@ -90,24 +90,14 @@ function main() cprint("target(${magenta}%s${clear}): %s", targetname, targetkind) -- add rules - file:print("-- add rules: debug/release") file:print("add_rules(\"mode.debug\", \"mode.release\")") file:print("") -- add target - file:print("-- define target") file:print("target(\"%s\")", targetname) - file:print("") - file:print(" -- set kind") file:print(" set_kind(\"%s\")", targetkind) - file:print("") - file:print(" -- add files") for _, sourcefile in ipairs(sourcefiles) do - - -- trace cprint(" ${green}[+]: ${clear}%s", sourcefile) - - -- add file file:print(" add_files(\"%s\")", sourcefile) end file:print("") @@ -125,19 +115,13 @@ function main() cprint(" ${green}[+]: ${clear}%s", sourcefile) -- add target - file:print("-- define target") file:print("target(\"%s\")", name) - file:print("") - file:print(" -- set kind") file:print(" set_kind(\"binary\")") - file:print("") - file:print(" -- add files") file:print(" add_files(\"%s\")", sourcefile) file:print("") -- add deps if #sourcefiles > 0 then - file:print(" -- add deps") file:print(" add_deps(\"%s\")", targetname) file:print("") end diff --git a/xmake/templates/c++/tbox.shared/project/src/_demo/xmake.lua b/xmake/templates/c++/tbox.shared/project/src/_demo/xmake.lua index cbd73410b..fd2d629da 100644 --- a/xmake/templates/c++/tbox.shared/project/src/_demo/xmake.lua +++ b/xmake/templates/c++/tbox.shared/project/src/_demo/xmake.lua @@ -1,18 +1,7 @@ --- add target target("demo") - - -- set kind set_kind("binary") - - -- add deps add_deps("${TARGETNAME}") - - -- add defines add_defines("__tb_prefix__=\"demo\"") - - -- add files add_files("*.cpp") - - -- add packages add_packages("tbox") diff --git a/xmake/templates/c++/tbox.static/project/src/_demo/xmake.lua b/xmake/templates/c++/tbox.static/project/src/_demo/xmake.lua index cbd73410b..fd2d629da 100644 --- a/xmake/templates/c++/tbox.static/project/src/_demo/xmake.lua +++ b/xmake/templates/c++/tbox.static/project/src/_demo/xmake.lua @@ -1,18 +1,7 @@ --- add target target("demo") - - -- set kind set_kind("binary") - - -- add deps add_deps("${TARGETNAME}") - - -- add defines add_defines("__tb_prefix__=\"demo\"") - - -- add files add_files("*.cpp") - - -- add packages add_packages("tbox") diff --git a/xmake/templates/c/tbox.shared/project/src/_demo/xmake.lua b/xmake/templates/c/tbox.shared/project/src/_demo/xmake.lua index bd1a59ed6..4b852d481 100644 --- a/xmake/templates/c/tbox.shared/project/src/_demo/xmake.lua +++ b/xmake/templates/c/tbox.shared/project/src/_demo/xmake.lua @@ -1,18 +1,7 @@ --- add target target("demo") - - -- set kind set_kind("binary") - - -- add deps add_deps("${TARGETNAME}") - - -- add defines add_defines("__tb_prefix__=\"demo\"") - - -- add files add_files("*.c") - - -- add packages add_packages("tbox") diff --git a/xmake/templates/c/tbox.static/project/src/_demo/xmake.lua b/xmake/templates/c/tbox.static/project/src/_demo/xmake.lua index bd1a59ed6..4b852d481 100644 --- a/xmake/templates/c/tbox.static/project/src/_demo/xmake.lua +++ b/xmake/templates/c/tbox.static/project/src/_demo/xmake.lua @@ -1,18 +1,7 @@ --- add target target("demo") - - -- set kind set_kind("binary") - - -- add deps add_deps("${TARGETNAME}") - - -- add defines add_defines("__tb_prefix__=\"demo\"") - - -- add files add_files("*.c") - - -- add packages add_packages("tbox") diff --git a/xmake/templates/rust/static/project/xmake.lua b/xmake/templates/rust/static/project/xmake.lua index cbe81addf..a4761d2dc 100644 --- a/xmake/templates/rust/static/project/xmake.lua +++ b/xmake/templates/rust/static/project/xmake.lua @@ -1,25 +1,11 @@ --- add target target("interfaces") - - -- set kind set_kind("static") - - -- add files add_files("src/interfaces.rs") --- add target target("${TARGETNAME}_demo") - - -- set kind set_kind("binary") - - -- add deps add_deps("interfaces") - - -- add files add_files("src/main.rs") - - -- add link directory add_linkdirs("$(buildir)") ${FAQ} |
