faker-cxx, inja, reflect-cpp: support wasm (#5215)

pull/5217/head
star9029 2 months ago committed by GitHub
parent 0f5edbe9c9
commit 0a2633beb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/f/faker-cxx/xmake.lua
  2. 2
      packages/i/inja/xmake.lua
  3. 2
      packages/r/reflect-cpp/xmake.lua

@ -26,7 +26,7 @@ package("faker-cxx")
end)
end
on_install("!wasm", function (package)
on_install(function (package)
local configs = {"-DBUILD_TESTING=OFF", "-DUSE_SYSTEM_DEPENDENCIES=ON", "-DUSE_STD_FORMAT=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

@ -13,7 +13,7 @@ package("inja")
add_deps("cmake")
add_deps("nlohmann_json", {configs = {cmake = true}})
on_install("!wasm", function (package)
on_install(function (package)
import("package.tools.cmake").install(package, {
"-DINJA_INSTALL=ON",
"-DINJA_USE_EMBEDDED_JSON=OFF",

@ -91,7 +91,7 @@ package("reflect-cpp")
end
end)
on_install("!wasm", function (package)
on_install(function (package)
local version = package:version()
if package:gitref() or version:lt("0.11.1") or version:ge("0.13.0") then
local configs = {"-DREFLECTCPP_USE_BUNDLED_DEPENDENCIES=OFF"}

Loading…
Cancel
Save