Use buck release for csharp/build-native.sh
Summary: Closes https://github.com/facebook/yoga/pull/553 Differential Revision: D5069363 Pulled By: emilsjolander fbshipit-source-id: 2a88f0f53147b5abf1d4eb26f05108c2c001a8f5
This commit is contained in:
committed by
Facebook Github Bot
parent
9cdaedfcb5
commit
52ce5828c9
3
csharp/.gitignore
vendored
3
csharp/.gitignore
vendored
@@ -267,3 +267,6 @@ paket-files/
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# local buck build
|
||||
lib/
|
||||
|
@@ -267,3 +267,6 @@ paket-files/
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
# local buck build
|
||||
lib/
|
||||
|
@@ -1,17 +1,25 @@
|
||||
#!/bin/sh
|
||||
cd `dirname "$0"`
|
||||
echo $ANDROID_SDK
|
||||
if buck --version >/dev/null 2>&1; then true; else
|
||||
BUCK_RELEASE=2017.05.09.01
|
||||
echo "buck $BUCK_RELEASE"
|
||||
BUCK=lib/buck-$BUCK_RELEASE/bin/buck
|
||||
if $BUCK --version >/dev/null 2>&1; then true; else
|
||||
echo "Building Buck!"
|
||||
mkdir lib
|
||||
BUCK_PATH=buck-$BUCK_RELEASE
|
||||
mkdir -p lib
|
||||
cd lib
|
||||
git clone https://github.com/facebook/buck.git --depth 1
|
||||
cd buck
|
||||
rm -f $BUCK_PATH.tar.gz
|
||||
curl -O -J -L https://github.com/facebook/buck/archive/v$BUCK_RELEASE.tar.gz
|
||||
tar xzf $BUCK_PATH.tar.gz
|
||||
cd $BUCK_PATH
|
||||
ant
|
||||
cd ..
|
||||
cd ..
|
||||
cd ../..
|
||||
fi
|
||||
buck build //:yoga
|
||||
buck build //csharp:yoganet-ios
|
||||
buck build //csharp:yoganet-macosx
|
||||
buck build //csharp:yoganet#android-x86,shared
|
||||
buck build //csharp:yoganet#android-armv7,shared
|
||||
|
||||
$BUCK build \
|
||||
//csharp:yoganet-ios \
|
||||
//csharp:yoganet-macosx \
|
||||
//csharp:yoganet#android-armv7,shared \
|
||||
//csharp:yoganet#android-x86,shared
|
||||
|
||||
|
Reference in New Issue
Block a user