Skip to content

Commit 0b33408

Browse files
committed
Include Snappy in our builds
1 parent e212d48 commit 0b33408

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

compile.sh

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ EXT_CHUNKUTILS2_VERSION="0.3.5"
2525
EXT_XDEBUG_VERSION="3.3.1"
2626
EXT_IGBINARY_VERSION="3.2.15"
2727
EXT_CRYPTO_VERSION="abbe7cbf869f96e69f2ce897271a61d32f43c7c0"
28+
EXT_SNAPPY_VERSION="0.2.1"
2829
EXT_RECURSIONGUARD_VERSION="0.1.0"
2930
EXT_LIBDEFLATE_VERSION="0.2.1"
3031
EXT_MORTON_VERSION="0.1.2"
@@ -1321,6 +1322,14 @@ git submodule update --init --recursive >> "$DIR/install.log" 2>&1
13211322
cd "$BUILD_DIR"
13221323
write_done
13231324

1325+
echo -n " snappy: downloading $EXT_SNAPPY_VERSION..."
1326+
git clone https://github.com/kjdev/php-ext-snappy.git "$BUILD_DIR/php/ext/snappy" >> "$DIR/install.log" 2>&1
1327+
cd "$BUILD_DIR/php/ext/snappy"
1328+
git checkout "$EXT_SNAPPY_VERSION" >> "$DIR/install.log" 2>&1
1329+
git submodule update --init --recursive >> "$DIR/install.log" 2>&1
1330+
cd "$BUILD_DIR"
1331+
write_done
1332+
13241333
get_github_extension "leveldb" "$EXT_LEVELDB_VERSION" "pmmp" "php-leveldb"
13251334

13261335
get_github_extension "chunkutils2" "$EXT_CHUNKUTILS2_VERSION" "pmmp" "ext-chunkutils2"
@@ -1557,6 +1566,7 @@ $HAVE_MYSQLI \
15571566
--enable-grpc="$INSTALL_DIR" \
15581567
--enable-protobuf \
15591568
--enable-zstd \
1569+
--enable-snappy \
15601570
--enable-vanillagenerator \
15611571
--enable-opcache=$HAVE_OPCACHE \
15621572
--enable-opcache-jit=$HAVE_OPCACHE_JIT \

windows-compile-vs.bat

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ set PHP_CHUNKUTILS2_VER=0.3.5
3232
set PHP_IGBINARY_VER=3.2.15
3333
set PHP_LEVELDB_VER=317fdcd8415e1566fc2835ce2bdb8e19b890f9f3
3434
set PHP_CRYPTO_VER=abbe7cbf869f96e69f2ce897271a61d32f43c7c0
35+
set PHP_SNAPPY_VER=0.2.1
3536
set PHP_RECURSIONGUARD_VER=0.1.0
3637
set PHP_MORTON_VER=0.1.2
3738
set PHP_LIBDEFLATE_VER=0.2.1
@@ -346,6 +347,13 @@ git checkout %PHP_CRYPTO_VER% >>"%log_file%" 2>&1 || exit 1
346347
git submodule update --init --recursive >>"%log_file%" 2>&1 || exit 1
347348
cd /D ..
348349

350+
call :pm-echo " - snappy: downloading %PHP_SNAPPY_VER%..."
351+
git clone https://github.com/kjdev/php-ext-snappy.git snappy >>"%log_file%" 2>&1 || exit 1
352+
cd /D snappy
353+
git checkout %PHP_SNAPPY_VER% >>"%log_file%" 2>&1 || exit 1
354+
git submodule update --init --recursive >>"%log_file%" 2>&1 || exit 1
355+
cd /D ..
356+
349357
cd /D ..\..
350358

351359
:skip
@@ -384,6 +392,7 @@ call configure^
384392
--enable-phar^
385393
--enable-vanillagenerator=shared^
386394
--enable-zstd^
395+
--enable-snappy^
387396
--enable-grpc=shared^
388397
--enable-protobuf=shared^
389398
--enable-recursionguard=shared^

0 commit comments

Comments
 (0)