summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-22 09:24:00 +0800
committerruki <[email protected]>2016-02-22 09:24:00 +0800
commit8ae6432163f52e43eae5efc9a0e4c45d1f692b80 (patch)
treeab8656f32316115e8ed6579c1c5099470965a080 /tests/console
parent79d41087733bfa180de9c41341a72756b6450a72 (diff)
remove old console test
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/src/demo/demo.c7
-rw-r--r--tests/console/src/demo/demo.cpp7
-rw-r--r--tests/console/src/demo/demo.m7
-rw-r--r--tests/console/src/demo/demo.mm7
-rw-r--r--tests/console/src/demo/demo.swift3
-rw-r--r--tests/console/src/demo/xmake.lua57
-rw-r--r--tests/console/src/hello1/hello1.c6
-rw-r--r--tests/console/src/hello1/hello1.h10
-rw-r--r--tests/console/src/hello2/hello2.c6
-rw-r--r--tests/console/src/hello2/hello2.h10
-rw-r--r--tests/console/src/hello3/hello3.c6
-rw-r--r--tests/console/src/hello3/hello3.h10
-rw-r--r--tests/console/xmake.lua91
13 files changed, 0 insertions, 227 deletions
diff --git a/tests/console/src/demo/demo.c b/tests/console/src/demo/demo.c
deleted file mode 100644
index 9ae580511..000000000
--- a/tests/console/src/demo/demo.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char** argv)
-{
- printf("hello world!\n");
- return 0;
-}
diff --git a/tests/console/src/demo/demo.cpp b/tests/console/src/demo/demo.cpp
deleted file mode 100644
index 9ae580511..000000000
--- a/tests/console/src/demo/demo.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char** argv)
-{
- printf("hello world!\n");
- return 0;
-}
diff --git a/tests/console/src/demo/demo.m b/tests/console/src/demo/demo.m
deleted file mode 100644
index 9ae580511..000000000
--- a/tests/console/src/demo/demo.m
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char** argv)
-{
- printf("hello world!\n");
- return 0;
-}
diff --git a/tests/console/src/demo/demo.mm b/tests/console/src/demo/demo.mm
deleted file mode 100644
index 9ae580511..000000000
--- a/tests/console/src/demo/demo.mm
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char** argv)
-{
- printf("hello world!\n");
- return 0;
-}
diff --git a/tests/console/src/demo/demo.swift b/tests/console/src/demo/demo.swift
deleted file mode 100644
index ee21045f4..000000000
--- a/tests/console/src/demo/demo.swift
+++ /dev/null
@@ -1,3 +0,0 @@
-import Foundation
-
-print("hello world!")
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua
deleted file mode 100644
index 912a24a69..000000000
--- a/tests/console/src/demo/xmake.lua
+++ /dev/null
@@ -1,57 +0,0 @@
-
-target("demo_c")
- set_kind("binary")
- add_deps("hello1")
- add_files("*.c")
- add_links("hello1")
- add_linkdirs("$(buildir)")
- add_includedirs("$(buildir)")
- add_cflags("-DHELLO1")
-
- if is_mode("release") then add_defines("NDEBUG") end
- if is_option("option1") then add_defines("OPTION1") end
- if is_option("option2") then add_defines("OPTION2") end
- if is_option("option3") then add_defines("OPTION3") end
- if is_option("option4") then add_defines("OPTION4") end
-
-target("demo_cpp")
- set_kind("binary")
- add_deps("hello2")
- add_files("*.cpp")
- set_config_h("$(buildir)/demo_cpp.h")
- add_linkdirs("$(buildir)")
- add_includedirs("$(buildir)")
- add_undefines("HELLO2")
- add_cxxflags("-DHELLO1")
- add_options("option1", "option2", "option3", "option4")
- set_packagescript( function (target)
- print("package: " .. target.name)
- return 1
- end)
-
- if is_plat("macosx", "ios") then
-
- target("demo_objc")
- set_kind("binary")
- add_deps("hello3")
- add_files("*.m")
- add_links("hello3")
- add_linkdirs("$(buildir)/lib")
- add_includedirs("$(buildir)/inc")
- add_mflags("-DHELLO3", "-DPLAT=\"macosx\"", "-DARCH='armv7, arm64'")
-
- target("demo_objcpp")
- set_kind("binary")
- add_deps("hello3")
- add_files("*.mm")
- add_mxflags("-DHELLO3")
- add_ldflags("-L$(buildir)/lib", "-lhello3", "-lhello3")
-
- if is_plat("ios") then
- add_ldflags("-framework Cocoa", "-framework IOKit", "-framework CoreFoundation")
- end
- end
-
-target("demo_swift")
- set_kind("binary")
- add_files("*.swift")
diff --git a/tests/console/src/hello1/hello1.c b/tests/console/src/hello1/hello1.c
deleted file mode 100644
index 8a1093c5c..000000000
--- a/tests/console/src/hello1/hello1.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "hello1.h"
-
-char const* hello1(void)
-{
- return "hello1";
-}
diff --git a/tests/console/src/hello1/hello1.h b/tests/console/src/hello1/hello1.h
deleted file mode 100644
index 0916d6bb4..000000000
--- a/tests/console/src/hello1/hello1.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-char const* hello1(void);
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/tests/console/src/hello2/hello2.c b/tests/console/src/hello2/hello2.c
deleted file mode 100644
index 4d2e9c562..000000000
--- a/tests/console/src/hello2/hello2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "hello2.h"
-
-char const* hello2(void)
-{
- return "hello2";
-}
diff --git a/tests/console/src/hello2/hello2.h b/tests/console/src/hello2/hello2.h
deleted file mode 100644
index 90e062942..000000000
--- a/tests/console/src/hello2/hello2.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-char const* hello2(void);
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/tests/console/src/hello3/hello3.c b/tests/console/src/hello3/hello3.c
deleted file mode 100644
index 0c22929e8..000000000
--- a/tests/console/src/hello3/hello3.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "hello3.h"
-
-char const* hello3(void)
-{
- return "hello3";
-}
diff --git a/tests/console/src/hello3/hello3.h b/tests/console/src/hello3/hello3.h
deleted file mode 100644
index c6da59f5e..000000000
--- a/tests/console/src/hello3/hello3.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-char const* hello3(void);
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
deleted file mode 100644
index 74ebb7574..000000000
--- a/tests/console/xmake.lua
+++ /dev/null
@@ -1,91 +0,0 @@
-set_version("1.0.1")
-set_config_h("$(buildir)/demo.h")
-
-if is_mode("debug") then
- set_symbols("debug")
- set_warnings("all")
- set_optimize("none")
- add_cxflags("-fsanitize=address", "-ftrapv")
-end
-
-if is_mode("release") then
- set_strip("all")
- set_symbols("hidden")
- add_cflags("-Wno-error=deprecated-declarations")
- set_warnings("all")
- set_optimize("smallest")
- add_vectorexts("sse2", "ssse3", "mmx")
-end
-
-if is_mode("profile") then
- set_symbols("debug")
- set_warnings("none")
- set_optimize("fastest")
-end
-
-if is_arch("x86", "x64") then
- add_defines("ARCH=\"$(arch)\"", "PLAT=$(plat)", "MODE=$(mode)", "HOST=$(host)")
-end
-
-option("option1")
- set_option_enable(true)
- set_option_showmenu(true)
- add_option_defines_h_if_ok("OPTION1_ENABLE")
- set_option_description("The option for definition and need not check.")
-
-option("option2")
- set_option_enable(false)
- set_option_showmenu(true)
- add_option_defines_h_if_ok("OPTION2_ENABLE")
- add_option_cincludes("stdio.h", "hello1.h")
- add_option_includedirs("src/hello1")
- set_option_description("The option for finding includes.")
-
-option("option3")
- set_option_enable(false)
- set_option_showmenu(true)
- add_option_defines_h_if_ok("OPTION3_ENABLE")
- add_option_links("hello1")
- add_option_linkdirs("$(buildir)")
- set_option_description("The option for finding links.")
-
-option("option4")
- set_option_enable(false)
- set_option_showmenu(true)
- add_option_defines_h_if_ok("OPTION4_ENABLE")
- set_option_description("The option for finding interfaces.")
- if not is_plat("windows") then
- add_option_links("z", "sqlite3")
- add_option_cfuncs("sqlite3_open")
- add_option_cincludes("stdio.h", "sqlite3.h")
- end
-
-target("hello1")
- set_kind("static")
- add_files("src/hello1/*.c")
-
-target("hello2")
- set_kind("shared")
- add_files("$(projectdir)/src/hello2/*.c")
-
-target("hello3")
- set_kind("static")
- add_files("src/hello3/*.c")
- add_headers("src/(hello3/*.h)")
- set_headerdir("$(buildir)/inc")
- set_targetdir("$(buildir)/lib")
- set_objectdir("$(buildir)/obj")
-
-target("hello4")
- set_kind("static")
- add_deps("hello1", "hello2")
- add_files("$(buildir)/.objs/hello1/**.o")
- add_files("$(buildir)/.objs/hello2/**.obj")
-
-target("hello5")
- set_kind("static")
- add_deps("hello4", "hello1")
- add_files("$(buildir)/hello1.lib")
- add_files("$(buildir)/libhello4.a")
-
-add_subdirs("src/demo")