diff options
| -rw-r--r-- | tests/projects/hybrid/static_library/src/main.cpp | 2 | ||||
| -rw-r--r-- | tests/projects/hybrid/static_library/xmake.lua | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/projects/hybrid/static_library/src/main.cpp b/tests/projects/hybrid/static_library/src/main.cpp index 2750fcf2c..2e70301ce 100644 --- a/tests/projects/hybrid/static_library/src/main.cpp +++ b/tests/projects/hybrid/static_library/src/main.cpp @@ -4,7 +4,9 @@ int main(int argc, char** argv) { test1(); test2(); +#ifdef MACOSX test3(); test4(); +#endif return 0; } diff --git a/tests/projects/hybrid/static_library/xmake.lua b/tests/projects/hybrid/static_library/xmake.lua index 75d01d3b1..bc382c7c3 100644 --- a/tests/projects/hybrid/static_library/xmake.lua +++ b/tests/projects/hybrid/static_library/xmake.lua @@ -3,12 +3,17 @@ add_rules("mode.release", "mode.debug") target("test") set_kind("static") add_files("src/*.c", "src/*.cpp") - add_files("src/*.m", "src/*.mm") + if is_plat("macosx") then + add_files("src/*.m", "src/*.mm") + end target("demo") set_kind("binary") add_deps("test") add_files("src/main.cpp") + if is_plat("macosx") then + add_defines("MACOSX") + end target("demo2") set_kind("binary") |
