-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_xmake.lua
79 lines (68 loc) · 2.45 KB
/
test_xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
set_project("brpc")
set_version("0.0.1", {build = "%Y%m%d%H%M"})
set_xmakever("2.8.5")
add_repositories("my_private_repo https://github.com/fantasy-peak/xmake-repo.git")
add_requires("boost", {configs={cmake=false}})
add_requires("spdlog")
add_requires("asio", "nlohmann_json")
add_requires("cppzmq", {system = false})
add_requires("msgpack-cxx", {system = false, configs={boost=false}})
set_policy("check.auto_ignore_flags", false)
add_cxflags("-O2 -Wall -Wextra -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers")
add_includedirs("./out/include")
target("bi")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("coro_bi")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/coro_bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio", "boost")
add_syslinks("pthread", "uuid")
target_end()
target("coro_frpc_bi")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/coro_frpc_bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("uni_pub_sub")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/uni_pub_sub.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("coro_uni_pub_sub")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/uni_pub_sub.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("uni_push_pull")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/uni_push_pull.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("coro_uni_push_pull")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/uni_push_pull.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()
target("coro_bi_stream")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/bi_stream.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
target_end()