diff options
| author | ruki <[email protected]> | 2020-12-17 00:05:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-17 00:05:59 +0800 |
| commit | 99fef1222a2e7905ce4ad396c848ffaf0a991849 (patch) | |
| tree | ba6d080b1fc23cf72c618d30b3de6c553df9fc24 /tests/projects/other | |
| parent | cd5449d66ce5463202b4ccde6b41edf9486b42f5 (diff) | |
move tests
Diffstat (limited to 'tests/projects/other')
| -rw-r--r-- | tests/projects/other/multiplats_vs/.gitignore | 8 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_vs/src/main.cpp | 9 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_vs/src/test.asm | 1 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_vs/src/test.rc | 0 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_vs/test.lua | 7 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_vs/xmake.lua | 18 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_xcode/src/main.c (renamed from tests/projects/other/multiplats/src/main.c) | 0 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_xcode/test.lua (renamed from tests/projects/other/multiplats/test.lua) | 0 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_xcode/xmake.lua (renamed from tests/projects/other/multiplats/xmake.lua) | 0 |
9 files changed, 43 insertions, 0 deletions
diff --git a/tests/projects/other/multiplats_vs/.gitignore b/tests/projects/other/multiplats_vs/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/other/multiplats_vs/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/other/multiplats_vs/src/main.cpp b/tests/projects/other/multiplats_vs/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/other/multiplats_vs/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/multiplats_vs/src/test.asm b/tests/projects/other/multiplats_vs/src/test.asm new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/tests/projects/other/multiplats_vs/src/test.asm @@ -0,0 +1 @@ + diff --git a/tests/projects/other/multiplats_vs/src/test.rc b/tests/projects/other/multiplats_vs/src/test.rc new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/projects/other/multiplats_vs/src/test.rc diff --git a/tests/projects/other/multiplats_vs/test.lua b/tests/projects/other/multiplats_vs/test.lua new file mode 100644 index 000000000..795df5c95 --- /dev/null +++ b/tests/projects/other/multiplats_vs/test.lua @@ -0,0 +1,7 @@ +function test_multivs(t) + if is_subhost("windows") then + t:build() + else + return t:skip("wrong host platform") + end +end diff --git a/tests/projects/other/multiplats_vs/xmake.lua b/tests/projects/other/multiplats_vs/xmake.lua new file mode 100644 index 000000000..4e61a20a1 --- /dev/null +++ b/tests/projects/other/multiplats_vs/xmake.lua @@ -0,0 +1,18 @@ +add_rules("mode.debug", "mode.release") + +rule("vs2015_x86") + before_load(function (target) + target:set("arch", "x86") + target:set("toolchains", "msvc", {vs = "2015"}) + end) + +target("testvs_vs2015_x86") + set_kind("binary") + add_files("src/*.cpp", "src/*.rc") + add_rules("vs2015_x86") + +target("testvs") + set_kind("binary") + add_files("src/*.cpp", "src/*.rc") + + diff --git a/tests/projects/other/multiplats/src/main.c b/tests/projects/other/multiplats_xcode/src/main.c index 9ae580511..9ae580511 100644 --- a/tests/projects/other/multiplats/src/main.c +++ b/tests/projects/other/multiplats_xcode/src/main.c diff --git a/tests/projects/other/multiplats/test.lua b/tests/projects/other/multiplats_xcode/test.lua index 196797077..196797077 100644 --- a/tests/projects/other/multiplats/test.lua +++ b/tests/projects/other/multiplats_xcode/test.lua diff --git a/tests/projects/other/multiplats/xmake.lua b/tests/projects/other/multiplats_xcode/xmake.lua index e8fbbb372..e8fbbb372 100644 --- a/tests/projects/other/multiplats/xmake.lua +++ b/tests/projects/other/multiplats_xcode/xmake.lua |
