Skip to content

Commit 0a77f06

Browse files
author
kj
committed
Updated embedded lz4 library (r131)
1 parent e0115a2 commit 0a77f06

14 files changed

+10
-5770
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lz4"]
2+
path = lz4
3+
url = https://github.com/Cyan4973/lz4.git

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Documentation for LZ4 can be found at
99

1010
## Build
1111

12+
% git clone --recursive --depth=1 https://github.com/kjdev/php-ext-lz4.git
13+
% cd php-ext-lz4
1214
% phpize
1315
% ./configure
1416
% make

config.m4

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ if test "$PHP_LZ4" != "no"; then
5959
else
6060
AC_MSG_RESULT(use bundled version)
6161

62-
PHP_NEW_EXTENSION(lz4, lz4.c lz4/lz4.c lz4/lz4hc.c lz4/xxhash.c, $ext_shared)
62+
PHP_NEW_EXTENSION(lz4, lz4.c lz4/lib/lz4.c lz4/lib/lz4hc.c lz4/lib/xxhash.c, $ext_shared)
6363

64-
PHP_ADD_BUILD_DIR($ext_builddir/lz4, 1)
65-
PHP_ADD_INCLUDE([$ext_srcdir/lz4])
64+
PHP_ADD_BUILD_DIR($ext_builddir/lz4/lib, 1)
65+
PHP_ADD_INCLUDE([$ext_srcdir/lz4/lib])
6666
fi
6767
fi
6868

config.w32

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ ARG_ENABLE("lz4", "enable lz4 support", "no");
22

33
if (PHP_LZ4 != "no") {
44
EXTENSION("lz4", "lz4.c", PHP_LZ4_SHARED, "");
5-
ADD_SOURCES(configure_module_dirname + "/lz4", "lz4.c lz4hc.c xxhash.c", "lz4");
5+
ADD_SOURCES(configure_module_dirname + "/lz4/lib", "lz4.c lz4hc.c xxhash.c", "lz4");
66
PHP_INSTALL_HEADERS("ext/lz4/", "php_lz4.h");
77
}

lz4

Submodule lz4 added at d86dc91

0 commit comments

Comments
 (0)