diff options
author | Mole Shang <[email protected]> | 2024-03-01 21:51:47 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2024-03-01 22:30:17 +0800 |
commit | 2c23cf4b3968a2c4f86253dcadba9779bc00e6ff (patch) | |
tree | aba464b31c64045e1a661488e63c511ceb88793f /third_party/packages/t/tomlc99/xmake.lua | |
parent | 085c2a88d44ebac41c64c32ee6b796ff64e5331f (diff) | |
download | hinata-2c23cf4b3968a2c4f86253dcadba9779bc00e6ff.tar.gz hinata-2c23cf4b3968a2c4f86253dcadba9779bc00e6ff.tar.bz2 hinata-2c23cf4b3968a2c4f86253dcadba9779bc00e6ff.zip |
xmake: move deps to third_party dir
Diffstat (limited to 'third_party/packages/t/tomlc99/xmake.lua')
-rw-r--r-- | third_party/packages/t/tomlc99/xmake.lua | 22 |
1 files changed, 22 insertions, 0 deletions
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) |