summaryrefslogtreecommitdiff
path: root/tests/projects/other/merge_object/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-22 22:41:47 +0800
committerruki <[email protected]>2018-08-22 10:10:43 +0800
commit0681bad37f0b566b3f19072c46d8efdbf7987536 (patch)
tree0ee7199787e1554db10727f9c73e72d73e6eb91c /tests/projects/other/merge_object/xmake.lua
parentc9d05eaf022540940434ca60e4c800cc2b321e01 (diff)
add ignore projects
Diffstat (limited to 'tests/projects/other/merge_object/xmake.lua')
-rw-r--r--tests/projects/other/merge_object/xmake.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/projects/other/merge_object/xmake.lua b/tests/projects/other/merge_object/xmake.lua
new file mode 100644
index 000000000..b8f971536
--- /dev/null
+++ b/tests/projects/other/merge_object/xmake.lua
@@ -0,0 +1,45 @@
+-- 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("merge_object")
+
+ -- 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("merge_object")
+
+ -- add files
+ add_files("src/test.c")
+ add_files("build/.objs/merge_object/src/interface.c.o")
+