2017-02-17 10:32:23 -08:00
|
|
|
#!/bin/sh
|
2022-10-04 13:59:32 -07:00
|
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2018-10-24 03:09:58 -07:00
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
2017-05-16 07:57:16 -07:00
|
|
|
cd `dirname "$0"`
|
2017-03-07 09:00:52 -08:00
|
|
|
echo $ANDROID_SDK
|
2018-02-20 14:07:12 -08:00
|
|
|
BUCK_RELEASE=2018.02.16.01
|
2017-05-16 07:57:16 -07:00
|
|
|
echo "buck $BUCK_RELEASE"
|
|
|
|
BUCK=lib/buck-$BUCK_RELEASE/bin/buck
|
|
|
|
if $BUCK --version >/dev/null 2>&1; then true; else
|
2017-02-17 10:32:23 -08:00
|
|
|
echo "Building Buck!"
|
2017-05-16 07:57:16 -07:00
|
|
|
BUCK_PATH=buck-$BUCK_RELEASE
|
|
|
|
mkdir -p lib
|
2017-02-17 10:32:23 -08:00
|
|
|
cd lib
|
2017-05-16 07:57:16 -07:00
|
|
|
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
|
2017-02-17 10:32:23 -08:00
|
|
|
ant
|
2017-05-16 07:57:16 -07:00
|
|
|
cd ../..
|
2017-02-17 10:32:23 -08:00
|
|
|
fi
|
2017-05-16 07:57:16 -07:00
|
|
|
|
|
|
|
$BUCK build \
|
|
|
|
//csharp:yoganet-ios \
|
|
|
|
//csharp:yoganet-macosx \
|
|
|
|
//csharp:yoganet#android-armv7,shared \
|
|
|
|
//csharp:yoganet#android-x86,shared
|