-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxmake.lua
78 lines (62 loc) · 2.63 KB
/
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
set_project("moxt")
set_version("1.0.0")
set_xmakever("2.9.4")
set_encodings("utf-8")
set_languages("c++20") -- c++20/c++23
add_rules("mode.debug", "mode.release")
add_repositories("my-repo-local myrepo")
-- add_repositories("my-repo [email protected]:numenresearch/xmake-repo.git")
add_requires("simdjson-local", {alias = 'simdjson'})
if not is_plat("windows") then
-- add_requires("libbacktrace")
end
add_requires("fast_float_local", {alias = 'fast_float'})
add_requires("fmt", {configs = {header_only = true}})
add_requires("fmtlog-local", {alias = 'fmtlog'})
add_requires("spdlog v1.14.1")
add_requires("quill-local", {alias = 'quill'})
add_requires("nanobench")
add_requires("concurrentqueue")
add_requires("nanoid-cpp-local", {alias = 'nanoid-cpp'})
add_requires("zlib", {system=false})
add_requires("openssl", {system=false})
add_requires("boost", {configs = {json = true, thread = true, context = true, program_options = true,
regex = true, system = true, filesystem = true, date_time = true, url = true, coroutine = true}})
add_requires("abseil")
add_requires("libaio", {system=false}) -- , configs = {shared = false}
add_requires("libcurl", {system=false, configs = {shared = false}})
-- sudo apt install libssl-dev
if not is_plat("windows") then
-- sudo apt install e2fslibs-dev
-- sudo apt install zlib1g-dev
-- sudo apt install libssl-dev libcurl4-openssl-dev libaio-dev
-- sudo apt install -y pkg-config
add_requires("photonlibos", {version = "5b92ecc1f2e924b800fad01fa9e1da4d37a22910", configs = {shared = false, build_shared = false, static = "photon_sole"}})
add_requires("libcds")
end
add_requires("asio")
-- add_requires("libuv-local", {alias = 'libuv'})
add_requires("libuv")
-- add_requires("snmalloc-local", {alias = 'snmalloc'})
add_requires("snmalloc")
add_requires("parallel-hashmap-local", {alias = 'parallel-hashmap'})
-- add_requires("spscqueue")
-- add_requires("mpmcqueue")
-- add_requires("nontype_functional")
add_requires("yyjson-local", {alias = 'yyjson'})
add_requires("sonic-cpp-local", {alias = 'sonic-cpp'})
add_requires("toml++")
-- add_requires("uwebsockets")
add_requires("redis-plus-plus")
target("tulipindicators")
set_kind("static")
local tulipindicators_dir = "tulipindicators"
add_includedirs(tulipindicators_dir)
add_files(path.join(tulipindicators_dir, "indicators.c"))
add_files(path.join(tulipindicators_dir, "candles.c"))
add_files(path.join(tulipindicators_dir, "indicators/*.c"))
-- add_files(path.join(tulipindicators_dir, "tiamalgamation.c"))
add_files(path.join(tulipindicators_dir, "utils/*.c"))
-- include subprojects
-- includes("*/*xmake.lua")
includes("*/*xmake.lua")