Skip to content

Commit

Permalink
Include Snappy in our builds
Browse files Browse the repository at this point in the history
  • Loading branch information
larryTheCoder committed Jun 20, 2024
1 parent e212d48 commit 0b33408
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ EXT_CHUNKUTILS2_VERSION="0.3.5"
EXT_XDEBUG_VERSION="3.3.1"
EXT_IGBINARY_VERSION="3.2.15"
EXT_CRYPTO_VERSION="abbe7cbf869f96e69f2ce897271a61d32f43c7c0"
EXT_SNAPPY_VERSION="0.2.1"
EXT_RECURSIONGUARD_VERSION="0.1.0"
EXT_LIBDEFLATE_VERSION="0.2.1"
EXT_MORTON_VERSION="0.1.2"
Expand Down Expand Up @@ -1321,6 +1322,14 @@ git submodule update --init --recursive >> "$DIR/install.log" 2>&1
cd "$BUILD_DIR"
write_done

echo -n " snappy: downloading $EXT_SNAPPY_VERSION..."
git clone https://github.com/kjdev/php-ext-snappy.git "$BUILD_DIR/php/ext/snappy" >> "$DIR/install.log" 2>&1
cd "$BUILD_DIR/php/ext/snappy"
git checkout "$EXT_SNAPPY_VERSION" >> "$DIR/install.log" 2>&1
git submodule update --init --recursive >> "$DIR/install.log" 2>&1
cd "$BUILD_DIR"
write_done

get_github_extension "leveldb" "$EXT_LEVELDB_VERSION" "pmmp" "php-leveldb"

get_github_extension "chunkutils2" "$EXT_CHUNKUTILS2_VERSION" "pmmp" "ext-chunkutils2"
Expand Down Expand Up @@ -1557,6 +1566,7 @@ $HAVE_MYSQLI \
--enable-grpc="$INSTALL_DIR" \
--enable-protobuf \
--enable-zstd \
--enable-snappy \
--enable-vanillagenerator \
--enable-opcache=$HAVE_OPCACHE \
--enable-opcache-jit=$HAVE_OPCACHE_JIT \
Expand Down
9 changes: 9 additions & 0 deletions windows-compile-vs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ set PHP_CHUNKUTILS2_VER=0.3.5
set PHP_IGBINARY_VER=3.2.15
set PHP_LEVELDB_VER=317fdcd8415e1566fc2835ce2bdb8e19b890f9f3
set PHP_CRYPTO_VER=abbe7cbf869f96e69f2ce897271a61d32f43c7c0
set PHP_SNAPPY_VER=0.2.1
set PHP_RECURSIONGUARD_VER=0.1.0
set PHP_MORTON_VER=0.1.2
set PHP_LIBDEFLATE_VER=0.2.1
Expand Down Expand Up @@ -346,6 +347,13 @@ git checkout %PHP_CRYPTO_VER% >>"%log_file%" 2>&1 || exit 1
git submodule update --init --recursive >>"%log_file%" 2>&1 || exit 1
cd /D ..

call :pm-echo " - snappy: downloading %PHP_SNAPPY_VER%..."
git clone https://github.com/kjdev/php-ext-snappy.git snappy >>"%log_file%" 2>&1 || exit 1
cd /D snappy
git checkout %PHP_SNAPPY_VER% >>"%log_file%" 2>&1 || exit 1
git submodule update --init --recursive >>"%log_file%" 2>&1 || exit 1
cd /D ..

cd /D ..\..

:skip
Expand Down Expand Up @@ -384,6 +392,7 @@ call configure^
--enable-phar^
--enable-vanillagenerator=shared^
--enable-zstd^
--enable-snappy^
--enable-grpc=shared^
--enable-protobuf=shared^
--enable-recursionguard=shared^
Expand Down

0 comments on commit 0b33408

Please sign in to comment.