diff options
Diffstat (limited to 'tests/static_library_c/xmake.lua')
| -rwxr-xr-x | tests/static_library_c/xmake.lua | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/static_library_c/xmake.lua b/tests/static_library_c/xmake.lua new file mode 100755 index 000000000..72fd8c4a0 --- /dev/null +++ b/tests/static_library_c/xmake.lua @@ -0,0 +1,50 @@ +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("c_static_library") + + -- set kind + set_kind("static") + + -- add files + add_files("src/interface.c") + +-- add target +target("test") + + -- set kind + set_kind("binary") + + -- add deps + add_deps("c_static_library") + + -- add files + add_files("src/test.c") + + -- add links + add_links("c_static_library") + + -- add link directory + add_linkdirs("$(buildir)") + |
