diff options
Diffstat (limited to 'tests/shared_library_c++/xmake.lua')
| -rwxr-xr-x | tests/shared_library_c++/xmake.lua | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/shared_library_c++/xmake.lua b/tests/shared_library_c++/xmake.lua new file mode 100755 index 000000000..02b5c7509 --- /dev/null +++ b/tests/shared_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("cpp_shared_library") + + -- set kind + set_kind("shared") + + -- add files + add_files("src/interface.cpp") + +-- add target +target("test") + + -- set kind + set_kind("binary") + + -- add deps + add_deps("cpp_shared_library") + + -- add files + add_files("src/test.cpp") + + -- add links + add_links("cpp_shared_library") + + -- add link directory + add_linkdirs("$(buildir)") + |
