|
|
85fd53 |
diff -Nru snappy-java-1.1.2/Makefile snappy-java-1.1.2.build/Makefile
|
|
|
85fd53 |
--- snappy-java-1.1.2/Makefile 2015-09-22 22:32:13.000000000 +0200
|
|
|
85fd53 |
+++ snappy-java-1.1.2.build/Makefile 2016-01-07 16:22:19.238067618 +0100
|
|
|
85fd53 |
@@ -1,17 +1,15 @@
|
|
|
85fd53 |
|
|
|
85fd53 |
include Makefile.common
|
|
|
85fd53 |
|
|
|
85fd53 |
-MVN:=mvn
|
|
|
85fd53 |
-SBT:=./sbt
|
|
|
85fd53 |
|
|
|
85fd53 |
all: snappy
|
|
|
85fd53 |
|
|
|
85fd53 |
SNAPPY_OUT:=$(TARGET)/$(snappy)-$(os_arch)
|
|
|
85fd53 |
-SNAPPY_ARCHIVE:=$(TARGET)/snappy-$(VERSION).tar.gz
|
|
|
85fd53 |
-SNAPPY_CC:=snappy-sinksource.cc snappy-stubs-internal.cc snappy.cc
|
|
|
85fd53 |
+#SNAPPY_ARCHIVE:=$(TARGET)/snappy-$(VERSION).tar.gz
|
|
|
85fd53 |
+#SNAPPY_CC:=snappy-sinksource.cc snappy-stubs-internal.cc snappy.cc
|
|
|
85fd53 |
SNAPPY_SRC_DIR:=$(TARGET)/snappy-$(VERSION)
|
|
|
85fd53 |
SNAPPY_SRC:=$(addprefix $(SNAPPY_SRC_DIR)/,$(SNAPPY_CC))
|
|
|
85fd53 |
-SNAPPY_OBJ:=$(addprefix $(SNAPPY_OUT)/,$(patsubst %.cc,%.o,$(SNAPPY_CC)) SnappyNative.o)
|
|
|
85fd53 |
+SNAPPY_OBJ:=$(addprefix $(SNAPPY_OUT)/, SnappyNative.o)
|
|
|
85fd53 |
|
|
|
85fd53 |
SNAPPY_UNPACKED:=$(TARGET)/snappy-extracted.log
|
|
|
85fd53 |
SNAPPY_GIT_UNPACKED:=$(TARGET)/snappy-git-extracted.log
|
|
|
85fd53 |
@@ -35,21 +33,14 @@
|
|
|
85fd53 |
|
|
|
85fd53 |
$(SNAPPY_ARCHIVE):
|
|
|
85fd53 |
@mkdir -p $(@D)
|
|
|
85fd53 |
- curl -o$@ http://snappy.googlecode.com/files/snappy-$(VERSION).tar.gz
|
|
|
85fd53 |
|
|
|
85fd53 |
$(SNAPPY_UNPACKED): $(SNAPPY_ARCHIVE)
|
|
|
85fd53 |
- $(TAR) xvfz $< -C $(TARGET)
|
|
|
85fd53 |
- touch $@
|
|
|
85fd53 |
- cd $(SNAPPY_SRC_DIR) && ./configure
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
$(SNAPPY_GIT_UNPACKED):
|
|
|
85fd53 |
@mkdir -p $(SNAPPY_SRC_DIR)
|
|
|
85fd53 |
- git clone $(GIT_REPO_URL) $(SNAPPY_SRC_DIR)
|
|
|
85fd53 |
- git --git-dir=$(SNAPPY_SRC_DIR)/.git --work-tree=$(SNAPPY_SRC_DIR) checkout -b local/snappy-$(GIT_SNAPPY_BRANCH) $(GIT_SNAPPY_BRANCH)
|
|
|
85fd53 |
- touch $@
|
|
|
85fd53 |
- cd $(SNAPPY_SRC_DIR) && ./autogen.sh && ./configure
|
|
|
85fd53 |
|
|
|
85fd53 |
-jni-header: $(SRC)/org/xerial/snappy/SnappyNative.h
|
|
|
85fd53 |
+#jni-header: $(SRC)/org/xerial/snappy/SnappyNative.h
|
|
|
85fd53 |
|
|
|
85fd53 |
$(TARGET)/jni-classes/org/xerial/snappy/SnappyNative.class : $(SRC)/org/xerial/snappy/SnappyNative.java
|
|
|
85fd53 |
@mkdir -p $(TARGET)/jni-classes
|
|
|
85fd53 |
@@ -66,7 +57,6 @@
|
|
|
85fd53 |
|
|
|
85fd53 |
$(SNAPPY_OUT)/%.o : $(SNAPPY_SRC_DIR)/%.cc
|
|
|
85fd53 |
@mkdir -p $(@D)
|
|
|
85fd53 |
- $(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
85fd53 |
|
|
|
85fd53 |
$(SNAPPY_OUT)/SnappyNative.o : $(SRC)/org/xerial/snappy/SnappyNative.cpp $(SRC)/org/xerial/snappy/SnappyNative.h
|
|
|
85fd53 |
@mkdir -p $(@D)
|
|
|
85fd53 |
@@ -87,7 +77,7 @@
|
|
|
85fd53 |
NATIVE_TARGET_DIR:=$(TARGET)/classes/org/xerial/snappy/native/$(OS_NAME)/$(OS_ARCH)
|
|
|
85fd53 |
NATIVE_DLL:=$(NATIVE_DIR)/$(LIBNAME)
|
|
|
85fd53 |
|
|
|
85fd53 |
-snappy-jar-version:=snappy-java-$(shell perl -npe "s/version in ThisBuild\s+:=\s+\"(.*)\"/\1/" version.sbt | sed -e "/^$$/d")
|
|
|
85fd53 |
+snappy-jar-version:=snappy-java-1.1.2
|
|
|
85fd53 |
|
|
|
85fd53 |
ifndef USE_GIT
|
|
|
85fd53 |
native: $(SNAPPY_UNPACKED) $(NATIVE_DLL)
|
|
|
85fd53 |
@@ -106,10 +96,10 @@
|
|
|
85fd53 |
package: $(TARGET)/$(snappy-jar-version).jar
|
|
|
85fd53 |
|
|
|
85fd53 |
$(TARGET)/$(snappy-jar-version).jar:
|
|
|
85fd53 |
- $(SBT) package
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
test: $(NATIVE_DLL)
|
|
|
85fd53 |
- $(SBT) test
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
win32:
|
|
|
85fd53 |
$(MAKE) native CROSS_PREFIX=i686-w64-mingw32- OS_NAME=Windows OS_ARCH=x86
|
|
|
85fd53 |
@@ -121,35 +111,23 @@
|
|
|
85fd53 |
mac32:
|
|
|
85fd53 |
$(MAKE) native OS_NAME=Mac OS_ARCH=x86
|
|
|
85fd53 |
|
|
|
85fd53 |
-linux32:
|
|
|
85fd53 |
- $(MAKE) native OS_NAME=Linux OS_ARCH=x86
|
|
|
85fd53 |
+linux:
|
|
|
85fd53 |
+ $(MAKE) native OS_NAME=Linux OS_ARCH=$(OS_ARCH)
|
|
|
85fd53 |
|
|
|
85fd53 |
freebsd64:
|
|
|
85fd53 |
$(MAKE) native OS_NAME=FreeBSD OS_ARCH=x86_64
|
|
|
85fd53 |
|
|
|
85fd53 |
-# for cross-compilation on Ubuntu, install the g++-arm-linux-gnueabi package
|
|
|
85fd53 |
-linux-arm:
|
|
|
85fd53 |
- $(MAKE) native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux OS_ARCH=arm
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-# for cross-compilation on Ubuntu, install the g++-arm-linux-gnueabihf package
|
|
|
85fd53 |
-linux-armhf:
|
|
|
85fd53 |
- $(MAKE) native CROSS_PREFIX=arm-linux-gnueabihf- OS_NAME=Linux OS_ARCH=armhf
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-# for cross-compilation on Ubuntu, install the g++-aarch64-linux-gnu
|
|
|
85fd53 |
-linux-aarch64:
|
|
|
85fd53 |
- $(MAKE) native CROSS_PREFIX=aarch64-linux-gnu- OS_NAME=Linux OS_ARCH=aarch64
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-clean-native-linux32:
|
|
|
85fd53 |
- $(MAKE) clean-native OS_NAME=Linux OS_ARCH=x86
|
|
|
85fd53 |
+clean-native-linux:
|
|
|
85fd53 |
+ $(MAKE) clean-native OS_NAME=Linux OS_ARCH=$(OS_ARCH)
|
|
|
85fd53 |
|
|
|
85fd53 |
clean-native-win32:
|
|
|
85fd53 |
$(MAKE) clean-native OS_NAME=Windows OS_ARCH=x86
|
|
|
85fd53 |
|
|
|
85fd53 |
javadoc:
|
|
|
85fd53 |
- $(SBT) doc
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
install-m2:
|
|
|
85fd53 |
- $(SBT) publishM2
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
googlecode-upload: googlecode-lib-upload googlecode-src-upload
|
|
|
85fd53 |
|
|
|
85fd53 |
@@ -159,11 +137,9 @@
|
|
|
85fd53 |
GOOGLECODE_USER:=leo@xerial.org
|
|
|
85fd53 |
|
|
|
85fd53 |
$(TARGET)/snappy-java-$(VERSION)-lib.upload:
|
|
|
85fd53 |
- ./googlecode_upload.py -s "library for all platforms" -p snappy-java -l "Type-Executable,Featured,OpSys-All" -u "$(GOOGLECODE_USER)" target/snappy-java-$(VERSION).jar
|
|
|
85fd53 |
- touch $@
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
$(TARGET)/snappy-java-$(VERSION)-src.upload:
|
|
|
85fd53 |
- ./googlecode_upload.py -s "source code archive" -p snappy-java -l "Type-Source,OpSys-All" -u "$(GOOGLECODE_USER)" target/snappy-java-$(VERSION).tar.gz
|
|
|
85fd53 |
- touch $@
|
|
|
85fd53 |
+
|
|
|
85fd53 |
|
|
|
85fd53 |
|
|
|
85fd53 |
diff -Nru snappy-java-1.1.2/Makefile.common snappy-java-1.1.2.build/Makefile.common
|
|
|
85fd53 |
--- snappy-java-1.1.2/Makefile.common 2015-09-22 22:32:13.000000000 +0200
|
|
|
85fd53 |
+++ snappy-java-1.1.2.build/Makefile.common 2016-01-07 16:22:19.240067503 +0100
|
|
|
85fd53 |
@@ -42,8 +42,14 @@
|
|
|
85fd53 |
|
|
|
85fd53 |
# os=Default is meant to be generic unix/linux
|
|
|
85fd53 |
|
|
|
85fd53 |
-known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armhf Linux-ppc Linux-ppc64 Linux-s390 Linux-s390x Mac-x86 Mac-x86_64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc AIX-ppc64
|
|
|
85fd53 |
-os_arch := $(OS_NAME)-$(OS_ARCH)
|
|
|
85fd53 |
+known_os_archs := Linux
|
|
|
85fd53 |
+# trust the platform CXXFLAGS, etc. on Linux
|
|
|
85fd53 |
+ifeq ($(OS_NAME),Linux)
|
|
|
85fd53 |
+ os_arch := $(OS_NAME)
|
|
|
85fd53 |
+else
|
|
|
85fd53 |
+ os_arch := $(OS_NAME)-$(OS_ARCH)
|
|
|
85fd53 |
+endif
|
|
|
85fd53 |
+
|
|
|
85fd53 |
IBM_JDK_7 := $(findstring IBM, $(shell $(JAVA) -version 2>&1 | grep IBM | grep "JRE 1.7"))
|
|
|
85fd53 |
|
|
|
85fd53 |
ifeq (,$(findstring $(strip $(os_arch)),$(known_os_archs)))
|
|
|
85fd53 |
@@ -72,169 +78,12 @@
|
|
|
85fd53 |
Default_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
Default_SNAPPY_FLAGS :=
|
|
|
85fd53 |
|
|
|
85fd53 |
-Linux-x86_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Linux-x86_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-x86_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -m32
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-x86_CXXFLAGS := -include $(IBM_JDK_LIB)/jni_md.h -include $(IBM_JDK_LIB)/jniport.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -m32
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-x86_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-x86_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-x86_SNAPPY_FLAGS:=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-x86_64_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Linux-x86_64_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-x86_64_CXXFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-x86_64_CXXFLAGS := -include $(IBM_JDK_LIB)/jni_md.h -include $(IBM_JDK_LIB)/jniport.h -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-x86_64_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-x86_64_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-x86_64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-ppc_CXX := g++
|
|
|
85fd53 |
-Linux-ppc_STRIP := strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-ppc_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m32
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-ppc_CXXFLAGS := -DHAVE_CONFIG_H -include lib/inc_linux/jni_md.h -include $(IBM_JDK_LIB)/jniport.h -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -O2 -fPIC -m32
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-ppc_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-ppc_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-ppc_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-ppc64_CXX := g++
|
|
|
85fd53 |
-Linux-ppc64_STRIP := strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-ppc64_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-ppc64_CXXFLAGS := -DHAVE_CONFIG_H -include $(IBM_JDK_LIB)/jni_md.h -include $(IBM_JDK_LIB)/jniport.h -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -O2 -fPIC -m64
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-ppc64_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-ppc64_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-ppc64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-AIX-ppc_CXX := g++
|
|
|
85fd53 |
-AIX-ppc_STRIP := strip
|
|
|
85fd53 |
-AIX-ppc_LIBNAME := libsnappyjava.a
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- AIX-ppc_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- AIX-ppc_CXXFLAGS := -DHAVE_CONFIG_H -I$(JAVA_HOME)/include/aix -Ilib/inc_ibm -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -maix32
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-AIX-ppc_LINKFLAGS := -shared -static-libgcc -static-libstdc++ -lcrypt
|
|
|
85fd53 |
-AIX-ppc_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-AIX-ppc64_CXX := g++
|
|
|
85fd53 |
-AIX-ppc64_STRIP := strip -X64
|
|
|
85fd53 |
-AIX-ppc64_LIBNAME := libsnappyjava.a
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- AIX-ppc64_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- AIX-ppc64_CXXFLAGS := -DHAVE_CONFIG_H -I$(JAVA_HOME)/include/aix -Ilib/inc_ibm -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -maix64
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-AIX-ppc64_LINKFLAGS := -shared -static-libgcc -static-libstdc++ -lcrypt
|
|
|
85fd53 |
-AIX-ppc64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-s390_CXX := g++
|
|
|
85fd53 |
-Linux-s390_STRIP := strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-s390_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m31
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-s390_CXXFLAGS := -DHAVE_CONFIG_H -I$(JAVA_HOME)/include/linux -Ilib/inc_ibm -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -m31
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-s390_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-s390_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-s390_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-s390x_CXX := g++
|
|
|
85fd53 |
-Linux-s390x_STRIP := strip
|
|
|
85fd53 |
-ifeq ($(IBM_JDK_7),)
|
|
|
85fd53 |
- Linux-s390x_CXXFLAGS := -DHAVE_CONFIG_H -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-else
|
|
|
85fd53 |
- Linux-s390x_CXXFLAGS := -DHAVE_CONFIG_H -I$(JAVA_HOME)/include/linux -Ilib/inc_ibm -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -m64
|
|
|
85fd53 |
-endif
|
|
|
85fd53 |
-Linux-s390x_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-Linux-s390x_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-s390x_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-SunOS-x86_CXX := g++
|
|
|
85fd53 |
-SunOS-x86_STRIP := strip
|
|
|
85fd53 |
-SunOS-x86_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden
|
|
|
85fd53 |
-SunOS-x86_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-SunOS-x86_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-SunOS-x86_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-SunOS-sparc_CXX := g++
|
|
|
85fd53 |
-SunOS-sparc_STRIP := strip
|
|
|
85fd53 |
-SunOS-sparc_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden
|
|
|
85fd53 |
-SunOS-sparc_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-SunOS-sparc_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-SunOS-sparc_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-SunOS-x86_64_CXX := g++
|
|
|
85fd53 |
-SunOS-x86_64_STRIP := strip
|
|
|
85fd53 |
-SunOS-x86_64_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -m64
|
|
|
85fd53 |
-SunOS-x86_64_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
-SunOS-x86_64_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-SunOS-x86_64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-# '-include lib/inc_linux/jni_md.h' is used to force the use of our version,
|
|
|
85fd53 |
-# which defines JNIEXPORT differently; otherwise, since OpenJDK includes
|
|
|
85fd53 |
-# jni_md.h in same directory as jni.h, the include path is ignored when
|
|
|
85fd53 |
-# jni_md.h is included from jni.h
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-arm_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Linux-arm_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-Linux-arm_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -mfloat-abi=softfp
|
|
|
85fd53 |
-Linux-arm_LINKFLAGS := -shared -static-libgcc
|
|
|
85fd53 |
-Linux-arm_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-arm_SNAPPY_FLAGS:=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Linux-armhf_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Linux-armhf_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-Linux-armhf_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -mfloat-abi=hard
|
|
|
85fd53 |
-Linux-armhf_LINKFLAGS := -shared -static-libgcc
|
|
|
85fd53 |
-Linux-armhf_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-Linux-armhf_SNAPPY_FLAGS:=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Mac-x86_CXX := g++ -arch i386
|
|
|
85fd53 |
-Mac-x86_STRIP := strip -x
|
|
|
85fd53 |
-Mac-x86_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.4 -fvisibility=hidden
|
|
|
85fd53 |
-Mac-x86_LINKFLAGS := -dynamiclib -static-libgcc
|
|
|
85fd53 |
-Mac-x86_LIBNAME := libsnappyjava.jnilib
|
|
|
85fd53 |
-Mac-x86_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Mac-x86_64_CXX := g++ -arch $(OS_ARCH)
|
|
|
85fd53 |
-Mac-x86_64_STRIP := strip -x
|
|
|
85fd53 |
-Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden
|
|
|
85fd53 |
-Mac-x86_64_LINKFLAGS := -dynamiclib
|
|
|
85fd53 |
-Mac-x86_64_LIBNAME := libsnappyjava.jnilib
|
|
|
85fd53 |
-Mac-x86_64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-FreeBSD-x86_64_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-FreeBSD-x86_64_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-FreeBSD-x86_64_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
|
|
|
85fd53 |
-FreeBSD-x86_64_LINKFLAGS := -shared -static-libgcc
|
|
|
85fd53 |
-FreeBSD-x86_64_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
-FreeBSD-x86_64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Windows-x86_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Windows-x86_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-Windows-x86_CXXFLAGS := -Ilib/inc_win -O2
|
|
|
85fd53 |
-Windows-x86_LINKFLAGS := -Wl,--kill-at -shared -static
|
|
|
85fd53 |
-Windows-x86_LIBNAME := snappyjava.dll
|
|
|
85fd53 |
-Windows-x86_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
-Windows-x86_64_CXX := $(CROSS_PREFIX)g++
|
|
|
85fd53 |
-Windows-x86_64_STRIP := $(CROSS_PREFIX)strip
|
|
|
85fd53 |
-Windows-x86_64_CXXFLAGS := -Ilib/inc_win -O2
|
|
|
85fd53 |
-Windows-x86_64_LINKFLAGS := -Wl,--kill-at -shared -static
|
|
|
85fd53 |
-Windows-x86_64_LIBNAME := snappyjava.dll
|
|
|
85fd53 |
-Windows-x86_64_SNAPPY_FLAGS :=
|
|
|
85fd53 |
-
|
|
|
85fd53 |
+Linux_CXX := g++
|
|
|
85fd53 |
+Linux_STRIP := strip
|
|
|
85fd53 |
+Linux_CXXFLAGS := -I$(JAVA_HOME)/include $(CXXFLAGS) -fPIC -fvisibility=hidden
|
|
|
85fd53 |
+Linux_LINKFLAGS := -shared -static-libgcc -static-libstdc++
|
|
|
85fd53 |
+Linux_LIBNAME := libsnappyjava.so
|
|
|
85fd53 |
+Linux_SNAPPY_FLAGS :=
|
|
|
85fd53 |
|
|
|
85fd53 |
CXX := $($(os_arch)_CXX)
|
|
|
85fd53 |
STRIP := $($(os_arch)_STRIP)
|
|
|
85fd53 |
diff -Nru snappy-java-1.1.2/Makefile.package snappy-java-1.1.2.build/Makefile.package
|
|
|
85fd53 |
--- snappy-java-1.1.2/Makefile.package 2015-09-22 22:32:13.000000000 +0200
|
|
|
85fd53 |
+++ snappy-java-1.1.2.build/Makefile.package 2016-01-07 16:22:19.242067387 +0100
|
|
|
85fd53 |
@@ -77,6 +77,6 @@
|
|
|
85fd53 |
ssh $(AMD_SERVER) "source .zprofile && cd $(WORK) && $(TEST_CMD)"
|
|
|
85fd53 |
|
|
|
85fd53 |
release:
|
|
|
85fd53 |
- mvn deploy -DperformRelease=true
|
|
|
85fd53 |
+ #mvn deploy -DperformRelease=true
|
|
|
85fd53 |
|
|
|
85fd53 |
|