Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minizip: fix building for Android API level < 24 #15532

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions recipes/minizip/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def generate(self):
tc.variables["MINIZIP_SRC_DIR"] = os.path.join(self.source_folder, "contrib", "minizip").replace("\\", "/")
tc.variables["MINIZIP_ENABLE_BZIP2"] = self.options.bzip2
tc.variables["MINIZIP_BUILD_TOOLS"] = self.options.tools

# fopen64 and similar are unavailable before API level 24: https://github.com/madler/zlib/pull/436
if self.settings.os == "Android" and int(str(self.settings.os.api_level)) < 24:
tc.preprocessor_definitions["IOAPI_NO_64"] = "1"

tc.generate()
deps = CMakeDeps(self)
deps.generate()
Expand Down