Forráskód Böngészése

botan: add minimal ad option (#6821)

清风之恋 5 hónapja
szülő
commit
035e8d2e19
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      packages/b/botan/xmake.lua

+ 5 - 1
packages/b/botan/xmake.lua

@@ -20,6 +20,7 @@ package("botan")
     add_configs("python", {description = "Enable python module", default = false, type = "boolean"})
     add_configs("endian", {description = [[The  parameter should be either “little” or “big”. If not used then if the target architecture has a default, that is used. Otherwise left unspecified, which causes less optimal codepaths to be used but will work on either little or big endian.]], default = nil, type = "string", values = {"little", "big"}})
     add_configs("modules", {description = [[Enable modules, example: {configs = {modules = {"zlib", "lzma"}}}]], type = "table"})
+    add_configs("minimal", {description = "Build a minimal version", default = true, type = "boolean"})
     if is_plat("wasm") then
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
     end
@@ -90,7 +91,6 @@ package("botan")
             "--prefix=" .. package:installdir(),
             "--build-tool=ninja",
             "--without-documentation",
-            "--minimized-build",
         }
 
         local cc
@@ -185,6 +185,10 @@ package("botan")
             table.insert(configs, "--with-endian=" .. package:config("endian"))
         end
 
+        if package:config("minimal") then
+            table.insert(configs, "--minimized-build")
+        end
+
         local cxflags = {}
         table.join2(cxflags, table.wrap(package:config("cxflags")))
         table.join2(cxflags, table.wrap(package:config("cxxflags")))