Changeset View
Changeset View
Standalone View
Standalone View
libraries/osx/build-osx-libs.sh
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
# Parse command-line options: | # Parse command-line options: | ||||
force_rebuild=false | force_rebuild=false | ||||
for i in "$@" | for i in "$@" | ||||
do | do | ||||
case $i in | case $i in | ||||
--force-rebuild ) force_rebuild=true;; | --force-rebuild ) force_rebuild=true;; | ||||
--with-rlinterface ) with_rlinterface=true;; | |||||
-j* ) JOBS=$i ;; | -j* ) JOBS=$i ;; | ||||
esac | esac | ||||
done | done | ||||
cd "$(dirname $0)" | cd "$(dirname $0)" | ||||
# Now in libraries/osx/ (where we assume this script resides) | # Now in libraries/osx/ (where we assume this script resides) | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
▲ Show 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | then | ||||
rm -f .already-built | rm -f .already-built | ||||
download_lib $LIB_URL $LIB_ARCHIVE | download_lib $LIB_URL $LIB_ARCHIVE | ||||
rm -rf $LIB_DIRECTORY include lib | rm -rf $LIB_DIRECTORY include lib | ||||
tar -xf $LIB_ARCHIVE | tar -xf $LIB_ARCHIVE | ||||
pushd $LIB_DIRECTORY | pushd $LIB_DIRECTORY | ||||
BOOST_LIBS="filesystem,system" | |||||
if [[ "$with_rlinterface" = "true" ]] | |||||
then | |||||
BOOST_LIBS="$BOOST_LIBS,fiber" | |||||
fi | |||||
# Can't use macosx-version, see above comment. | # Can't use macosx-version, see above comment. | ||||
(./bootstrap.sh --with-libraries=filesystem,system \ | (./bootstrap.sh --with-libraries=$BOOST_LIBS\ | ||||
Stan: Only if grpc? | |||||
--prefix=$INSTALL_DIR \ | --prefix=$INSTALL_DIR \ | ||||
&& ./b2 cflags="$CFLAGS" \ | && ./b2 cflags="$CFLAGS" \ | ||||
toolset=clang \ | toolset=clang \ | ||||
cxxflags="$CXXFLAGS" \ | cxxflags="$CXXFLAGS" \ | ||||
linkflags="$LDFLAGS" ${JOBS} \ | linkflags="$LDFLAGS" ${JOBS} \ | ||||
-d2 \ | -d2 \ | ||||
--layout=tagged \ | --layout=tagged \ | ||||
--debug-configuration \ | --debug-configuration \ | ||||
▲ Show 20 Lines • Show All 673 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Only if grpc?