Skip to content

Commit

Permalink
Merge pull request #1 from AnacondaRecipes/update
Browse files Browse the repository at this point in the history
First add for minizip
  • Loading branch information
ryanskeith authored Dec 15, 2023
2 parents eec4667 + 94fd6a8 commit a43e329
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
12 changes: 11 additions & 1 deletion recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ set CC=cl

cmake -G Ninja ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON ^
-DBUILD_SHARED_LIBS=ON ^
-DMZ_FORCE_FETCH_LIBS=OFF ^
-DMZ_BUILD_TESTS=OFF ^
-DMZ_BUILD_UNIT_TESTS=OFF ^
-DMZ_COMPAT=ON ^
-DMZ_ZLIB=ON ^
-DMZ_BZIP2=ON ^
-DMZ_LMZA=ON ^
-DMZ_ZSTD=ON ^
-DMZ_LIBCOMP=OFF ^
-DMZ_OPENSSL=OFF ^
-DMZ_ICONV=OFF ^
..
if %ERRORLEVEL% neq 0 exit 1

Expand Down
9 changes: 7 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ cmake ${CMAKE_ARGS} \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DMZ_FORCE_FETCH_LIBS=OFF \
-DMZ_BUILD_TESTS=ON \
-DMZ_BUILD_UNIT_TESTS=ON \
-DMZ_COMPAT=ON \
-DMZ_ZLIB=ON \
-DMZ_BZIP2=ON \
-DMZ_LMZA=ON \
-DMZ_ZSTD=ON \
-DMZ_LIBCOMP=OFF \
-DMZ_OPENSSL=ON \
-DMZ_ZLIB=ON \
-DMZ_FORCE_FETCH_LIBS=OFF \
-DMZ_ICONV=ON \
..

cmake --build .
Expand Down
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ build:
number: 0
run_exports:
- {{ pin_subpackage('minizip', max_pin='x') }}
ignore_run_exports:
- gtest

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }} # [not win]
- cmake
- make # [not win]
- ninja # [win]
- ninja-base # [win]
- pkg-config
host:
- bzip2
Expand All @@ -29,6 +31,7 @@ requirements:
- xz
- zlib
- zstd
- gtest

test:
commands:
Expand All @@ -42,7 +45,6 @@ test:

about:
home: https://github.com/zlib-ng/minizip-ng
# http://zlib.net/zlib_license.html
license: Zlib
license_family: Other
license_file: LICENSE
Expand Down

0 comments on commit a43e329

Please sign in to comment.