summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-07 23:25:50 +0800
committerMole Shang <[email protected]>2023-08-08 00:09:32 +0800
commit787e9a060b53316c00011c91ed254d2243484ba7 (patch)
tree10ecc2a831040c52678f0dd8efc55a0576ebde75 /xmake.lua
parent204ab98bea93754beef914fe93ee249e346ee628 (diff)
downloadhinata-787e9a060b53316c00011c91ed254d2243484ba7.tar.gz
hinata-787e9a060b53316c00011c91ed254d2243484ba7.tar.bz2
hinata-787e9a060b53316c00011c91ed254d2243484ba7.zip
xmake: build tomlc99 with xmake
... to avoid adding another GNU make dependency
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake.lua b/xmake.lua
index e287c0b..2483c15 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -2,7 +2,7 @@ add_rules("mode.debug", "mode.release", "mode.releasedbg", "mode.minsizerel")
add_requires("nuklear", "nuklear_glfw_gl3", "nuklear_fonts", "glew", "glfw", "tinyfiledialogs",
"c11threads", "pcre2",
- "cjson", "ffmpeg", "tomlc99")
+ "cjson", "tomlc99")
add_requires("libcurl", { configs = { zlib = true } })
if is_plat("linux") then
@@ -152,8 +152,14 @@ set_license("MIT")
set_urls("https://github.com/cktan/tomlc99.git")
on_install("linux", "macosx", "windows", "mingw", function(package)
- import("package.tools.make").make(package, {})
- import("package.tools.make").make(package, { "install", "prefix = " .. package:installdir() })
+ 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)