From 2c23cf4b3968a2c4f86253dcadba9779bc00e6ff Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Fri, 1 Mar 2024 21:51:47 +0800 Subject: xmake: move deps to third_party dir --- third_party/packages/t/tomlc99/xmake.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 third_party/packages/t/tomlc99/xmake.lua (limited to 'third_party/packages/t/tomlc99/xmake.lua') diff --git a/third_party/packages/t/tomlc99/xmake.lua b/third_party/packages/t/tomlc99/xmake.lua new file mode 100644 index 0000000..2cc22b6 --- /dev/null +++ b/third_party/packages/t/tomlc99/xmake.lua @@ -0,0 +1,22 @@ +package("tomlc99") + +set_homepage("https://github.com/cktan/tomlc99") +set_description("TOML C library ") +set_license("MIT") + +set_urls("https://github.com/cktan/tomlc99.git") + +on_install("linux", "macosx", "windows", "mingw", function(package) + io.writefile("xmake.lua", [[ + add_rules("mode.debug", "mode.release") + target("tomlc99") + set_kind("static") + add_files("toml.c") + add_headerfiles("toml.h") + ]]) + import("package.tools.xmake").install(package) +end) + +on_test(function(package) + assert(package:has_cfuncs("toml_parse_file", { includes = "toml.h" })) +end) -- cgit v1.2.3