diff options
| author | ruki <[email protected]> | 2016-02-22 08:49:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-22 08:49:20 +0800 |
| commit | ec6fd4eeca3fa468cffb25b472eb349c1fed06aa (patch) | |
| tree | 3dbbb42e44310d8ae80ba2361a9f34bbbb90da13 /tests/static_library_c++/xmake.lua | |
| parent | 762f3cd87615acbed339931bfb56c2b75c44cfa0 (diff) | |
modify tests script
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..c57927a5d --- /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("cpp_static_library") + + -- set kind + set_kind("static") + + -- add files + add_files("src/interface.cpp") + +-- add target +target("test") + + -- set kind + set_kind("binary") + + -- add deps + add_deps("cpp_static_library") + + -- add files + add_files("src/test.cpp") + + -- add links + add_links("cpp_static_library") + + -- add link directory + add_linkdirs("$(buildir)") + |
