Skip to content

Commit 4542a95

Browse files
committed
xmake add python
1 parent 35d6b5b commit 4542a95

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

hikyuu_pywrap/xmake.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
add_requires("pybind11", {system = false, alias = "pybind11"})
3+
add_requires("python")
34

45
target("core")
56
set_kind("shared")
@@ -10,7 +11,7 @@ target("core")
1011
-- end
1112

1213
add_deps("hikyuu")
13-
add_packages("boost", "fmt", "spdlog", "flatbuffers", "pybind11")
14+
add_packages("boost", "fmt", "spdlog", "flatbuffers", "pybind11", "python")
1415
if is_plat("windows") then
1516
set_filename("core.pyd")
1617
add_cxflags("-wd4251")

xmake.lua

+7-7
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,20 @@ add_requires("boost " .. boost_version, {
149149
},
150150
})
151151

152-
add_requires("fmt " .. fmt_version, {configs = {header_only = true}})
153-
add_requires("spdlog " .. spdlog_version, {configs = {header_only = true, fmt_external = true}})
154-
add_requireconfs("spdlog.fmt", {override = true, version=fmt_version, configs = {header_only = true}})
152+
add_requires("fmt " .. fmt_version, {system = false, configs = {header_only = true}})
153+
add_requires("spdlog " .. spdlog_version, {system = false, configs = {header_only = true, fmt_external = true}})
154+
add_requireconfs("spdlog.fmt", {override = true, version=fmt_version, system = false, configs = {header_only = true}})
155155
add_requires("sqlite3 " .. sqlite_version, {configs = {shared = true, safe_mode="2", cxflags = "-fPIC"}})
156156
add_requires("flatbuffers v" .. flatbuffers_version, {system = false, configs= {runtimes = get_config("runtimes")}})
157-
add_requires("nng " .. nng_version, {configs = {NNG_ENABLE_TLS = has_config("http_client_ssl"), cxflags = "-fPIC"}})
158-
add_requires("nlohmann_json")
157+
add_requires("nng " .. nng_version, {system = false, configs = {NNG_ENABLE_TLS = has_config("http_client_ssl"), cxflags = "-fPIC"}})
158+
add_requires("nlohmann_json", {system = false})
159159

160160
if has_config("http_client_zip") then
161-
add_requires("gzip-hpp")
161+
add_requires("gzip-hpp", {system = false})
162162
end
163163

164164
if has_config("ta_lib") then
165-
add_requires("ta-lib")
165+
add_requires("ta-lib", {system = false})
166166
end
167167

168168
add_defines("SPDLOG_DISABLE_DEFAULT_LOGGER") -- 禁用 spdlog 默认ogger

0 commit comments

Comments
 (0)