-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. add filterPolicy 2. update snappy 3. support arm64 4. remove 32bit,remove win
- Loading branch information
1 parent
fc297ad
commit 4b8cb8d
Showing
36 changed files
with
3,385 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
#NOTE | ||
this repo is fork from [leveldbjni](https://github.com/fusesource/leveldbjni) | ||
|
||
#Build | ||
#Build leveldb | ||
```shell | ||
wget https://src.fedoraproject.org/lookaside/pkgs/snappy/snappy-1.0.5.tar.gz/4c0af044e654f5983f4acbf00d1ac236/snappy-1.0.5.tar.gz | ||
wget https://github.com/google/snappy/releases/download/1.1.4/snappy-1.1.4.tar.gz | ||
tar -zxvf snappy-1.1.4.tar.gz | ||
git clone https://github.com/chirino/leveldb.git | ||
git clone -b dev https://github.com/halibobor/leveldbjni.git | ||
|
||
tar -zxvf snappy-1.0.5.tar.gz | ||
|
||
git clone [email protected]:chirino/leveldb.git | ||
git clone [email protected]:fusesource/leveldbjni.git | ||
|
||
|
||
export SNAPPY_HOME=`cd snappy-1.0.5; pwd` | ||
export SNAPPY_HOME=`cd snappy-1.1.4; pwd` | ||
export LEVELDB_HOME=`cd leveldb; pwd` | ||
export LEVELDBJNI_HOME=`cd leveldbjni; pwd` | ||
|
||
|
@@ -24,24 +21,15 @@ export LIBRARY_PATH=${SNAPPY_HOME} | |
export C_INCLUDE_PATH=${LIBRARY_PATH} | ||
export CPLUS_INCLUDE_PATH=${LIBRARY_PATH} | ||
git apply ../leveldbjni/leveldb.patch | ||
git apply ../leveldbjni/arm64.patch | ||
git apply ../leveldbjni/MIPS.patch | ||
make libleveldb.a | ||
``` | ||
|
||
#Special for M1 | ||
```shell script | ||
brew install maven | ||
set $JAVA_HOME | ||
update pom.xml | ||
1. 1.5 -> 1.8 | ||
2. add java_home, remove with-universal | ||
<arg>--with-jni-jdk=${env.JAVA_HOME}</arg> | ||
<arg>--with-leveldb=${env.LEVELDB_HOME}</arg> | ||
<arg>--with-snappy=${env.SNAPPY_HOME}</arg> | ||
<!--<arg>--with-universal</arg>--> | ||
``` | ||
|
||
|
||
|
||
#Build jni | ||
```shell | ||
mvn clean install -P download -P osx | ||
cd ${LEVELDBJNI_HOME} | ||
mvn clean install -P platform | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.