28 lines
1.1 KiB
Bash
Executable File
28 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# This script is meant to run here inside the swig folder
|
|
# It's supposed to be a one step build for the java jar and macosx (.dylib enclosing) jar
|
|
# Output .jar files will be at:
|
|
# ../build/libs/${LIBRARY_NAME}-<version>.jar
|
|
# ../build/libs/${LIBRARY_NAME}-macosx-<version>.jar
|
|
source build-utils.shinc
|
|
check_min_req_vars
|
|
os_arch=x86_64
|
|
os_build=macosx
|
|
SHARED_LIB=lib${LIBRARY_NAME}.dylib
|
|
CXX=g++
|
|
CC=gcc
|
|
run_openssl_configure="./Configure darwin64-${os_arch}-cc ${OPENSSL_NO_OPTS} --prefix=${OPENSSL_ROOT}";
|
|
run_readelf="otool -L bin/release/${os_build}/${os_arch}/${SHARED_LIB}";
|
|
run_bjam="${BOOST_ROOT}/b2 -j8 --user-config=config/${os_build}-${os_arch}-config.jam variant=release toolset=darwin-${os_arch} target-os=darwin location=bin/release/${os_build}/${os_arch}"
|
|
run_strip="strip -S -x bin/release/${os_build}/${os_arch}/${SHARED_LIB}"
|
|
run_objcopy="echo dummy run_objcopy for ${os_build} ${os_arch}"
|
|
create_folder_if_it_doesnt_exist ${SRC}
|
|
prompt_msg "About to prepare BOOST ${BOOST_VERSION}"
|
|
press_any_to_continue
|
|
prepare_boost
|
|
prepare_openssl
|
|
build_openssl
|
|
prepare_libtorrent
|
|
./run-swig.sh
|
|
build_libraries
|