From db70d27460cbed19cfc7475e4981b6c3d7a431ff Mon Sep 17 00:00:00 2001 From: KeqingMoe Date: Fri, 21 Mar 2025 02:51:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmake.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 xmake.lua 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)