mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
5c24a9110a
Summary: We use this version internally. Closes https://github.com/facebook/react-native/pull/12838 Differential Revision: D4688982 Pulled By: mkonicek fbshipit-source-id: d8a6f8168b9e71ff4f53a8c18d55dc5a759a9183
41 lines
1.2 KiB
Bash
Executable File
41 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#boostdir="`node ./node_modules/boost-lib/bin/boost-lib download -V 1.63`"
|
|
#cd "$boostdir"
|
|
#./bootstrap.sh
|
|
#./b2 headers
|
|
|
|
set -e
|
|
|
|
cachedir="$HOME/.rncache"
|
|
mkdir -p "$cachedir"
|
|
|
|
function fetch_and_unpack () {
|
|
file=$1
|
|
url=$2
|
|
cmd=$3
|
|
|
|
if [ ! -f "$cachedir/$file" ]; then
|
|
(cd "$cachedir"; curl -J -L -O "$url")
|
|
fi
|
|
|
|
dir=$(basename "$file" .tar.gz)
|
|
if [ ! -d "third-party/$dir" ]; then
|
|
(cd third-party;
|
|
echo Unpacking "$cachedir/$file"...
|
|
tar zxf "$cachedir/$file"
|
|
|
|
cd "$dir"
|
|
eval "${cmd:-true}")
|
|
fi
|
|
}
|
|
|
|
mkdir -p third-party
|
|
|
|
SCRIPTDIR=$(pwd)/$(dirname "$0")
|
|
|
|
fetch_and_unpack glog-0.3.4.tar.gz https://github.com/google/glog/archive/v0.3.4.tar.gz "CC='$SCRIPTDIR'/ios-cc.sh CXX='$SCRIPTDIR'/ios-cc.sh ./configure --host arm-apple-darwin"
|
|
fetch_and_unpack double-conversion-1.1.5.tar.gz https://github.com/google/double-conversion/archive/v1.1.5.tar.gz
|
|
fetch_and_unpack boost_1_63_0.tar.gz https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
|
|
fetch_and_unpack folly-2016.09.26.00.tar.gz https://github.com/facebook/folly/archive/v2016.09.26.00.tar.gz
|