diff options
| author | ruki <[email protected]> | 2025-01-09 00:40:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-09 00:40:54 +0800 |
| commit | 26921bb868f343d82c08fcc3f4decccec5b89c45 (patch) | |
| tree | 40a49944182a204b4c1f5fdc4dee19d6cfb1d803 | |
| parent | 34a6d0e15e298c6ed7340013b7570a0c97058c80 (diff) | |
use tbox namespace
| -rw-r--r-- | core/src/xmake/xmake.lua | 7 | ||||
| -rw-r--r-- | core/xmake.lua | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua index f5f2d9699..50438de20 100644 --- a/core/src/xmake/xmake.lua +++ b/core/src/xmake/xmake.lua @@ -2,7 +2,12 @@ target("xmake") set_kind("static") -- add deps - add_deps("sv", "lz4", "tbox") + add_deps("sv", "lz4") + if false then--namespace then + add_deps("tbox::tbox") + else + add_deps("tbox") + end if is_config("runtime", "luajit") then add_deps("luajit") else diff --git a/core/xmake.lua b/core/xmake.lua index 0d282dcdf..f27461f54 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -131,7 +131,14 @@ if is_plat("windows") then end -- add projects -includes("src/sv", "src/lz4", "src/tbox", "src/xmake", "src/cli") +includes("src/sv", "src/lz4", "src/xmake", "src/cli") +if false then --namespace then + namespace("tbox", function () + includes("src/tbox") + end) +else + includes("src/tbox") +end if has_config("lua_cjson") then includes("src/lua-cjson") end |
