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

[mini_zip][build] Add minizip build target #835

Closed
wants to merge 2 commits into from

Conversation

Adenilson
Copy link

This change adds a build target for minizip_bin in the CMake build system.

This change adds a build target for minizip_bin in the CMake
build system.
@Adenilson
Copy link
Author

@madler when you got some spare time, would you mind to check this one?

@Adenilson
Copy link
Author

Since I noticed that minizip was added to the prime Makefile (2bcc748).

CMakeLists.txt Outdated
@@ -211,3 +211,12 @@ if(HAVE_OFF64_T)
target_link_libraries(minigzip64 zlib)
set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
endif()

#============================================================================
# Minigzip tool
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Minigzip/minizip.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

# Minizip tool
#============================================================================
add_executable(minizip_bin contrib/minizip/minizip.c contrib/minizip/ioapi.c
contrib/minizip/ioapi.h contrib/minizip/unzip.c

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing iowin32.[ch] for Windows build

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I will setup a Windows box to test.

@Neustradamus
Copy link

@gvollant: Can you look?

@Neustradamus
Copy link

@madler, @gvollant: Can you look this PR?

@madler
Copy link
Owner

madler commented Jan 24, 2024

Thanks, but I don't want to add a minizip build to the main CMakeLists.txt. The contrib stuff should stay distinct from zlib. If someone wanted to add a CMakeLists.txt to contrib/minizip, that would be fine.

(The minizip-test target in the main Makefile is just there for my use for testing purposes. Not to provide a build of minizip. That's what the Makefile in contrib/minizip is for.)

@madler madler closed this Jan 24, 2024
@Neustradamus Neustradamus mentioned this pull request Dec 8, 2024
@Neustradamus
Copy link

Neustradamus commented Dec 8, 2024

Vollstrecker pushed a commit to cmake-remake/zlib that referenced this pull request Dec 11, 2024
superseeds madler#835
@Vollstrecker Vollstrecker mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants