diff options
| author | ruki <[email protected]> | 2021-10-18 21:03:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-18 21:03:03 +0800 |
| commit | 0f72e5b597abf1f3caff40cc1e9b15f68212ad0e (patch) | |
| tree | 616b20f34a515e45bcf5d14fad7b903006489454 /tests/projects/c++/unity_build/xmake.lua | |
| parent | 2c018854833aa388bb16580f7d61646e90ce4bda (diff) | |
| parent | 7e6fba5fe7662b4e58ce150aeab17c70b6b12254 (diff) | |
Merge pull request #1749 from xmake-io/unit_build
Support Unity build
Diffstat (limited to 'tests/projects/c++/unity_build/xmake.lua')
| -rw-r--r-- | tests/projects/c++/unity_build/xmake.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/c++/unity_build/xmake.lua b/tests/projects/c++/unity_build/xmake.lua new file mode 100644 index 000000000..a881c5c36 --- /dev/null +++ b/tests/projects/c++/unity_build/xmake.lua @@ -0,0 +1,9 @@ +target("test") + set_kind("binary") + add_includedirs("src") + add_rules("c++.unity_build", {batchsize = 2, uniqueid = "MY_UNITY_ID"}) + add_files("src/*.c", "src/*.cpp") + add_files("src/foo/*.cpp", {unity_group = "foo"}) + add_files("src/bar/*.cpp", {unity_group = "bar"}) + + |
