zlib-ng: add variant new_strategies (#43219)
This commit is contained in:
parent
a7dd756b34
commit
8cd160db85
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ class ZlibNg(AutotoolsPackage, CMakePackage):
|
||||||
|
|
||||||
variant("compat", default=True, description="Enable compatibility API")
|
variant("compat", default=True, description="Enable compatibility API")
|
||||||
variant("opt", default=True, description="Enable optimizations")
|
variant("opt", default=True, description="Enable optimizations")
|
||||||
|
variant("new_strategies", default=True, description="Enable new deflate strategies")
|
||||||
|
|
||||||
provides("zlib-api", when="+compat")
|
provides("zlib-api", when="+compat")
|
||||||
|
|
||||||
|
@ -67,6 +68,8 @@ def configure_args(self):
|
||||||
args.append("--zlib-compat")
|
args.append("--zlib-compat")
|
||||||
if self.spec.satisfies("~opt"):
|
if self.spec.satisfies("~opt"):
|
||||||
args.append("--without-optimizations")
|
args.append("--without-optimizations")
|
||||||
|
if self.spec.satisfies("~new_strategies"):
|
||||||
|
args.append("--without-new-strategies")
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,4 +78,5 @@ def cmake_args(self):
|
||||||
return [
|
return [
|
||||||
self.define_from_variant("ZLIB_COMPAT", "compat"),
|
self.define_from_variant("ZLIB_COMPAT", "compat"),
|
||||||
self.define_from_variant("WITH_OPTIM", "opt"),
|
self.define_from_variant("WITH_OPTIM", "opt"),
|
||||||
|
self.define_from_variant("WITH_NEW_STRATEGIES", "new_strategies"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue