@@ -6,13 +6,21 @@ set_warnings("all")
66
77set_languages (" c++20" )
88
9+ option (" github_action" )
10+
11+ local lsf_url = " https://gitee.com/californiacat/lsf.git"
12+
13+ if has_config (" github_action" ) then
14+ lsf_url = " https://github.com/dayu521/lsf.git"
15+ end
16+
917-- 设置代理镜像
1018-- xmake g --proxy_pac=github_mirror.lua
1119-- https://xmake.io/#/zh-cn/package/remote_package?id=%e4%bd%bf%e7%94%a8%e8%87%aa%e5%bb%ba%e7%a7%81%e6%9c%89%e5%8c%85%e4%bb%93%e5%ba%93
1220package (" lsf" )
13- set_homepage (" https://gitee.com/californiacat/lsf.git " )
21+ set_homepage (lsf_url )
1422 set_description (" json." )
15- set_urls (" https://gitee.com/californiacat/lsf.git " )
23+ set_urls (lsf_url )
1624 -- set_sourcedir(path.join(os.scriptdir(), "lib/lsf"))
1725
1826 on_install (function (package )
@@ -31,20 +39,14 @@ if is_os("windows") then
3139 -- add_defines("HCPP_XMAKE_WINDOWS")
3240
3341 add_requires (" asio 1.28.0" ,{verify = false })
34- add_requires (" openssl3" ,{verify = false },{ system = false } )
42+ add_requires (" openssl3" ,{verify = false })
3543 add_requires (" lsf" )
3644 openssl_package_name = " openssl3"
3745 platform_cpp_file = " src/os/windows.cpp"
3846
39- -- option("openssl_no_sys")
40- -- set_default(false)
41- -- after_check(function (option)
42- -- if option:enabled() then
43- -- add_requireconfs(openssl_package_name,{system = false})
44- -- end
45- -- end)
46-
47- -- add_options("openssl_no_sys")
47+ if has_config (" github_action" ) then
48+ add_requireconfs (openssl_package_name ,{system = false })
49+ end
4850else
4951 set_allowedmodes (" debug" )
5052 set_defaultmode (" debug" )
@@ -111,4 +113,8 @@ target("a_test")
111113-- set_formats("srczip", "srctargz")
112114-- add_sourcefiles("(./**)")
113115
114- -- includes("test")
116+ includes (" @builtin/xpack" )
117+ xpack (" hcpp" )
118+ set_formats (" zip" )
119+ add_installfiles (" src/hcpp-cfg.json" ,{prefixdir = " bin" })
120+ add_targets (" hcpp" )
0 commit comments