Update RocksDB's Java bindings to support multiple native RocksDB builds in the same Jar file. Cross build RocksDB for linux32 and linux64 using Vagrant. Build a cross-platform fat jar that contains osx, linux32, and linux64 RocksDB static builds.
parent
d439451fab
commit
9db13987b1
@ -0,0 +1,25 @@ |
|||||||
|
# -*- mode: ruby -*- |
||||||
|
# vi: set ft=ruby : |
||||||
|
|
||||||
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
||||||
|
VAGRANTFILE_API_VERSION = "2" |
||||||
|
|
||||||
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
||||||
|
|
||||||
|
config.vm.define "linux32" do |linux32| |
||||||
|
linux32.vm.box = "ubuntu/trusty32" |
||||||
|
linux32.vm.provision :shell, path: "build-linux.sh" |
||||||
|
linux32.vm.synced_folder "../..", "/rocksdb" |
||||||
|
end |
||||||
|
|
||||||
|
config.vm.define "linux64" do |linux64| |
||||||
|
linux64.vm.box = "ubuntu/trusty64" |
||||||
|
linux64.vm.provision :shell, path: "build-linux.sh" |
||||||
|
linux64.vm.synced_folder "../..", "/rocksdb" |
||||||
|
end |
||||||
|
|
||||||
|
config.vm.provider "virtualbox" do |v| |
||||||
|
v.memory = 2048 |
||||||
|
v.cpus = 4 |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,11 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
# install all required packages for rocksdb |
||||||
|
sudo apt-get update |
||||||
|
sudo apt-get -y install git make gcc g++ libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev default-jdk |
||||||
|
|
||||||
|
# set java home so we can build rocksdb jars |
||||||
|
export JAVA_HOME=$(echo /usr/lib/jvm/java-7-openjdk*) |
||||||
|
cd /rocksdb |
||||||
|
make jclean clean -j 4 rocksdbjavastatic |
||||||
|
sudo shutdown -h now |
||||||
|
|
Loading…
Reference in new issue