I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 462d4fb8 authored by kytv's avatar kytv
Browse files

Add support for OSX to jcpuid's mbuild.sh

parent eb17390b
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ Linux*) ...@@ -9,6 +9,8 @@ Linux*)
echo "Building linux .so's";; echo "Building linux .so's";;
FreeBSD*) FreeBSD*)
echo "Building freebsd .so's";; echo "Building freebsd .so's";;
Darwin*)
echo "Building OSX jnilibs";;
*) *)
echo "Unsupported build environment" echo "Unsupported build environment"
exit;; exit;;
...@@ -29,6 +31,12 @@ MINGW*) ...@@ -29,6 +31,12 @@ MINGW*)
INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/win32/" INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/win32/"
LINKFLAGS="-shared -static -static-libgcc -Wl,--kill-at" LINKFLAGS="-shared -static -static-libgcc -Wl,--kill-at"
LIBFILE="lib/freenet/support/CPUInformation/jcpuid-x86-windows.dll";; LIBFILE="lib/freenet/support/CPUInformation/jcpuid-x86-windows.dll";;
Darwin*)
JAVA_HOME=$(/usr/libexec/java_home)
COMPILEFLAGS="-fPIC -Wall -arch x86_64 -arch i386"
INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/"
LINKFLAGS="-dynamiclib -framework JavaVM"
LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-darwin.jnilib";;
FreeBSD*) FreeBSD*)
case `uname -m` in case `uname -m` in
amd64) amd64)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment