diff options
| author | Mole Shang <135e2@135e2.dev> | 2023-08-07 23:25:50 +0800 | 
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2023-08-08 00:09:32 +0800 | 
| commit | 787e9a060b53316c00011c91ed254d2243484ba7 (patch) | |
| tree | 10ecc2a831040c52678f0dd8efc55a0576ebde75 /xmake.lua | |
| parent | 204ab98bea93754beef914fe93ee249e346ee628 (diff) | |
| download | hinata-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.lua | 12 | 
1 files changed, 9 insertions, 3 deletions
| @@ -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) | 
