-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
BASEDIR=$(dirname "$0") | ||
cd "$BASEDIR/.." | ||
PROJECT_DIR=$PWD | ||
|
||
BUILDOS=$1 | ||
BUILDARCH=$2 | ||
BUILDTARGET=$3 | ||
|
||
mkdir -p target | ||
rsync -avrt --delete ./native/ ./target/ | ||
|
||
export CFLAGS="$CFLAGS -Wa,--noexecstack" | ||
export CXXFLAGS="$CXXFLAGS -Wa,--noexecstack" | ||
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8" | ||
|
||
# tkrzw dependency | ||
cd ./target/tkrzw | ||
./configure --host $BUILDTARGET --enable-zlib | ||
make -j4 libtkrzw.a libtkrzw.so | ||
|
||
# force static lib to be included in libjtkrzw | ||
rm -f ./*.so | ||
|
||
# these flags will only help the ./configure succeed for tokyocabinet-java | ||
export TZDIR="$PWD" | ||
export CPATH="$CPATH:$TZDIR" | ||
export CXXFLAGS="$CXXFLAGS -I$TZDIR" | ||
export LDFLAGS="$LDFLAGS -L$TZDIR" | ||
export LIBRARY_PATH="$LIBRARY_PATH:$TZDIR" | ||
# this helps alpine linux build | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$TZDIR" | ||
|
||
# tkrzw-java | ||
cd ../tkrzw-java | ||
cp ../tkrzw/libtkrzw.a . | ||
./configure --host $BUILDTARGET | ||
make -j4 | ||
|
||
TARGET_LIB=libjtkrzw.so | ||
${STRIP:-strip} ./$TARGET_LIB | ||
|
||
OUTPUT_DIR="../../tkrzw-${BUILDOS}-${BUILDARCH}/src/main/resources/jne/${BUILDOS}/${BUILDARCH}" | ||
cp ./$TARGET_LIB "$OUTPUT_DIR" |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>tkrzw-freebsd-x64</artifactId> | ||
<name>tkrzw-freebsd-x64</name> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>com.fizzed</groupId> | ||
<artifactId>tkrzw</artifactId> | ||
<version>0.0.9-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>com.fizzed</groupId> | ||
<artifactId>tkrzw-api</artifactId> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
Binary file not shown.