diff options
| author | ruki <[email protected]> | 2026-01-31 00:32:27 +0800 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-30 19:57:56 +0300 |
| commit | 9ac89545c1cb1845b2e2006b98cbe185c8ee64fb (patch) | |
| tree | caf297dd60287b8fc9531f707d8b0a131df14f07 /tests | |
| parent | 484b4d116e54eeced612b250344d7d3bf428d187 (diff) | |
improve nim supports
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/nim/link_library/xmake.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/projects/nim/link_library/xmake.lua b/tests/projects/nim/link_library/xmake.lua index edc577e9e..f15417cb1 100644 --- a/tests/projects/nim/link_library/xmake.lua +++ b/tests/projects/nim/link_library/xmake.lua @@ -7,13 +7,13 @@ add_requires("stb", {system = false}) target("headers") set_kind("headeronly") add_files("headers/*.h") - add_includedirs("headers") + add_includedirs("headers", {public = true}) target("executablestatic") set_kind("binary") add_files("mainlib.nim") add_deps("staticlib") - add_packages("zlib", "stb") + add_packages("zlib", "stb", {public = true}) if is_plat("linux") then add_syslinks("pthread", "m") end @@ -29,7 +29,7 @@ target("executableshared") target("staticlib") set_kind("static") add_files("static.nim") - add_includedirs("inc") + add_includedirs("inc", {public = true}) add_headerfiles("inc/*.h") if is_plat("linux") then add_syslinks("pthread", "m") @@ -39,7 +39,7 @@ target("staticlib") target("sharedlib") set_kind("shared") add_files("shared.nim") - add_includedirs("inc") + add_includedirs("inc", {public = true}) add_headerfiles("inc/*.h") if is_plat("linux") then add_syslinks("pthread", "m") |
