summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)