commit db70d27460cbed19cfc7475e4981b6c3d7a431ff Author: KeqingMoe Date: Fri Mar 21 02:51:31 2025 +0000 上传文件至 / diff --git a/xmake.lua b/xmake.lua new file mode 100644 index 0000000..58ca104 --- /dev/null +++ b/xmake.lua @@ -0,0 +1,19 @@ +package("test-string") + set_kind("binary") + set_description("The test-string package") + + add_urls("https://github.com/myrepo/foo.git") + add_versions("1.0", "") + + on_install(function (package) + local configs = {} + if package:config("shared") then + configs.kind = "shared" + end + import("package.tools.xmake").install(package, configs) + end) + + on_test(function (package) + -- TODO check includes and interfaces + -- assert(package:has_cfuncs("foo", {includes = "foo.h"}) + end)