glfw: support some platform (#4803)

* glfw: support some platform

* limit plat
pull/4809/head
star9029 6 months ago committed by GitHub
parent b507b7a077
commit 59a56a1714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/g/glfw/xmake.lua

@ -48,9 +48,9 @@ package("glfw")
end
end)
on_install("macosx", "windows", "linux", "mingw", function (package)
on_install("!wasm and !iphoneos", function (package)
local configs = {"-DGLFW_BUILD_DOCS=OFF", "-DGLFW_BUILD_TESTS=OFF", "-DGLFW_BUILD_EXAMPLES=OFF"}
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, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
if package:is_plat("windows") then
table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=" .. (package:config("vs_runtime"):startswith("MT") and "OFF" or "ON"))

Loading…
Cancel
Save