Prechádzať zdrojové kódy

crow: update to v1.2.1.2 (#6562)

Doekin 6 mesiacov pred
rodič
commit
8175973ab4
1 zmenil súbory, kde vykonal 4 pridanie a 11 odobranie
  1. 4 11
      packages/c/crow/xmake.lua

+ 4 - 11
packages/c/crow/xmake.lua

@@ -7,6 +7,7 @@ package("crow")
     add_urls("https://github.com/CrowCpp/Crow/archive/refs/tags/$(version).zip", {version = function (version)
     add_urls("https://github.com/CrowCpp/Crow/archive/refs/tags/$(version).zip", {version = function (version)
         return (version:gsub("%+", "."))
         return (version:gsub("%+", "."))
     end})
     end})
+    add_versions("v1.2.1+2", "eb52839043358830e09976198df5c1e8855a75730ccd3f1d8799eff0a79609b1")
     add_versions("v1.2.1+1", "d9f85d9df036336c9cb872ecd73c7744e493ed5d02e9aec8b3c1351c757c9707")
     add_versions("v1.2.1+1", "d9f85d9df036336c9cb872ecd73c7744e493ed5d02e9aec8b3c1351c757c9707")
 
 
     add_configs("zlib", {description = "ZLib for HTTP Compression", default = true, type = "boolean"})
     add_configs("zlib", {description = "ZLib for HTTP Compression", default = true, type = "boolean"})
@@ -23,19 +24,11 @@ package("crow")
         end
         end
     end)
     end)
 
 
-    on_install("windows", "linux", "macosx", "mingw", function (package)
+    on_install("!wasm", function (package)
         local configs = {"-DCROW_BUILD_EXAMPLES=OFF", "-DCROW_BUILD_TESTS=OFF"}
         local configs = {"-DCROW_BUILD_EXAMPLES=OFF", "-DCROW_BUILD_TESTS=OFF"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
-        local features = {}
-        if package:config("zlib") then
-            table.insert(features, "compression")
-        end
-        if package:config("ssl") then
-            table.insert(features, "ssl")
-        end
-        if #features > 0 then
-            table.insert(configs, '-DCROW_FEATURES="' .. table.concat(features, ";") .. '"')
-        end
+        table.insert(configs, "-DCROW_ENABLE_COMPRESSION=" .. (package:config("zlib") and "ON" or "OFF"))
+        table.insert(configs, "-DCROW_ENABLE_SSL=" .. (package:config("ssl") and "ON" or "OFF"))
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)
     end)
     end)