forked from I2P_Developers/i2p.i2p
Add support for OSX to jcpuid's mbuild.sh
This commit is contained in:
@@ -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*)
|
|||||||
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)
|
||||||
|
Reference in New Issue
Block a user