From fbbce85d26cae2cd9153a929977e2537d7ac7b32 Mon Sep 17 00:00:00 2001 From: star9029 Date: Fri, 26 Jul 2024 08:06:57 +0800 Subject: [PATCH] enkits: support some platform (#4754) --- packages/e/enkits/xmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/e/enkits/xmake.lua b/packages/e/enkits/xmake.lua index 56ba5dfc8..dffe3df0b 100644 --- a/packages/e/enkits/xmake.lua +++ b/packages/e/enkits/xmake.lua @@ -12,7 +12,7 @@ package("enkits") add_deps("cmake") add_linkdirs("lib/enkiTS") add_links("enkiTS") - if is_plat("linux") then + if is_plat("linux", "bsd") then add_syslinks("pthread", "rt") end @@ -22,13 +22,13 @@ package("enkits") end end) - on_install("windows", "macosx", "linux", function (package) + on_install(function (package) if package:is_plat("linux") then io.replace("src/TaskScheduler.h", "#include ", "#include \n#include \n", {plain = true}) end local configs = {"-DENKITS_BUILD_EXAMPLES=OFF", "-DENKITS_INSTALL=ON"} - table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) + table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release")) table.insert(configs, "-DENKITS_BUILD_SHARED=" .. (package:config("shared") and "ON" or "OFF")) import("package.tools.cmake").install(package, configs) end)