From 787e9a060b53316c00011c91ed254d2243484ba7 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Mon, 7 Aug 2023 23:25:50 +0800 Subject: xmake: build tomlc99 with xmake ... to avoid adding another GNU make dependency --- xmake.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'xmake.lua') 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) -- cgit v1.2.3