summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-29 22:36:03 +0800
committerGitHub <[email protected]>2020-12-29 22:36:03 +0800
commitfb4c70ea1c37c27f5affe6d28de6072e087e83a2 (patch)
tree59efc6b5b686e550e288c7e6e3502f80d1f4763b /tests
parent1e5aeb9b1e7b1e949f7bc56f11d405024024c6ca (diff)
parent9c2899049a52d18afc04fc6a2a591efc3de83371 (diff)
Merge pull request #1174 from xmake-io/group
Add group for vs/vsxmake
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/project/test.lua2
-rw-r--r--tests/projects/other/group/.gitignore8
-rw-r--r--tests/projects/other/group/src/main.cpp9
-rw-r--r--tests/projects/other/group/xmake.lua29
4 files changed, 47 insertions, 1 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua
index 1aac20088..0de70cdba 100644
--- a/tests/plugins/project/test.lua
+++ b/tests/plugins/project/test.lua
@@ -41,7 +41,7 @@ function test_vsxmake(t)
{
function ()
print("--- sln file ---")
- io.cat(projname .. "_" .. vstype .. ".sln")
+ io.cat(projname .. ".sln")
print("--- vcx file ---")
io.cat(projname .. "/" .. projname .. ".vcxproj")
print("--- filter file ---")
diff --git a/tests/projects/other/group/.gitignore b/tests/projects/other/group/.gitignore
new file mode 100644
index 000000000..152105761
--- /dev/null
+++ b/tests/projects/other/group/.gitignore
@@ -0,0 +1,8 @@
+# Xmake cache
+.xmake/
+build/
+
+# MacOS Cache
+.DS_Store
+
+
diff --git a/tests/projects/other/group/src/main.cpp b/tests/projects/other/group/src/main.cpp
new file mode 100644
index 000000000..7c435d251
--- /dev/null
+++ b/tests/projects/other/group/src/main.cpp
@@ -0,0 +1,9 @@
+#include <iostream>
+
+using namespace std;
+
+int main(int argc, char** argv)
+{
+ cout << "hello world!" << endl;
+ return 0;
+}
diff --git a/tests/projects/other/group/xmake.lua b/tests/projects/other/group/xmake.lua
new file mode 100644
index 000000000..65da1826c
--- /dev/null
+++ b/tests/projects/other/group/xmake.lua
@@ -0,0 +1,29 @@
+add_rules("mode.debug", "mode.release")
+
+target("test1")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ set_group("group1")
+
+target("test2")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ set_group("group1")
+
+target("test3")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ set_group("group1/group2")
+
+target("test4")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ set_group("group3/group4")
+
+target("test5")
+ set_kind("binary")
+ add_files("src/*.cpp")
+
+target("test6")
+ set_kind("binary")
+ add_files("src/*.cpp")