2
0
Эх сурвалжийг харах

glfw: support some platform (#4803)

* glfw: support some platform

* limit plat
star9029 1 жил өмнө
parent
commit
59a56a1714

+ 2 - 2
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"))