summaryrefslogtreecommitdiff
path: root/tests/projects/shared_library_dlang
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-28 00:47:39 +0800
committerruki <[email protected]>2018-04-27 22:45:56 +0800
commit119dd6ff5786ef7a390b98b0558554029113f0dd (patch)
tree2fa5d1196a8951c0f8e4ad67c8b443b47280a0ab /tests/projects/shared_library_dlang
parent7d486e88c2b3301449974e0e97168bc0f0fd6c64 (diff)
add wdk tests
Diffstat (limited to 'tests/projects/shared_library_dlang')
-rw-r--r--tests/projects/shared_library_dlang/src/interfaces.d9
-rw-r--r--tests/projects/shared_library_dlang/src/main.d8
-rw-r--r--tests/projects/shared_library_dlang/test.lua11
-rw-r--r--tests/projects/shared_library_dlang/xmake.lua54
4 files changed, 0 insertions, 82 deletions
diff --git a/tests/projects/shared_library_dlang/src/interfaces.d b/tests/projects/shared_library_dlang/src/interfaces.d
deleted file mode 100644
index 3386c9124..000000000
--- a/tests/projects/shared_library_dlang/src/interfaces.d
+++ /dev/null
@@ -1,9 +0,0 @@
-extern(C) int add(int a, int b)
-{
- return a + b;
-}
-
-extern(C) int sub(int a, int b)
-{
- return a - b;
-}
diff --git a/tests/projects/shared_library_dlang/src/main.d b/tests/projects/shared_library_dlang/src/main.d
deleted file mode 100644
index 3137de217..000000000
--- a/tests/projects/shared_library_dlang/src/main.d
+++ /dev/null
@@ -1,8 +0,0 @@
-import std.stdio;
-import interfaces;
-
-void main()
-{
- printf("add: %d\n", interfaces.add(1, 1));
- printf("sub: %d\n", interfaces.sub(2, 1));
-}
diff --git a/tests/projects/shared_library_dlang/test.lua b/tests/projects/shared_library_dlang/test.lua
deleted file mode 100644
index 82d2b61eb..000000000
--- a/tests/projects/shared_library_dlang/test.lua
+++ /dev/null
@@ -1,11 +0,0 @@
--- imports
-import("..build")
-
--- main entry
-function main()
-
- -- build project
- if os.host() == "macosx" then
- build()
- end
-end
diff --git a/tests/projects/shared_library_dlang/xmake.lua b/tests/projects/shared_library_dlang/xmake.lua
deleted file mode 100644
index c7fac23ca..000000000
--- a/tests/projects/shared_library_dlang/xmake.lua
+++ /dev/null
@@ -1,54 +0,0 @@
--- 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("interfaces")
-
- -- set kind
- set_kind("shared")
-
- -- add files
- add_files("src/interfaces.d")
-
--- add target
-target("test")
-
- -- set kind
- set_kind("binary")
-
- -- add deps
- add_deps("interfaces")
-
- -- add files
- add_files("src/main.d")
-
- -- add links
- add_links("interfaces")
-
- -- add link directory
- add_linkdirs("$(buildir)")
- add_rpathdirs("$(buildir)")
-
- -- add include directory
- add_includedirs("$(projectdir)/src")
-