Skip to content

Commit

Permalink
Deps: Disable some unnecessary zlib build options
Browse files Browse the repository at this point in the history
None of these are particularly useful here, but they are wasting a little bit of time and other resources.
  • Loading branch information
rdw-software committed Jan 17, 2025
1 parent ab8369f commit 89b89c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/zlib-windowsbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ OUT_DIR=ninjabuild-windows
SRC_DIR=deps/madler/zlib
BUILD_DIR=$SRC_DIR/cmakebuild-windows

cmake -S $SRC_DIR -B $BUILD_DIR -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=gcc
ZLIB_BUILD_FLAGS="-DZLIB_BUILD_EXAMPLES=OFF -DSKIP_INSTALL_ALL=ON -DZLIB_BUILD_EXAMPLES=OFF"

cmake -S $SRC_DIR -B $BUILD_DIR -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_C_COMPILER=gcc $ZLIB_BUILD_FLAGS
cmake --build $BUILD_DIR --clean-first

cp $BUILD_DIR/libzlibstatic.a $OUT_DIR/zlibstatic.a
Expand Down

0 comments on commit 89b89c4

Please sign in to comment.