Use buck built dylib in test_macos.sh
This commit is contained in:
@@ -1,16 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if clang --version >/dev/null 2>&1; then true; else
|
if mcs --version >/dev/null 2>&1 && mono --version >/dev/null 2>&1; then true; else
|
||||||
echo "ERROR: Can't execute clang. You need to install Xcode and command line tools."
|
echo "ERROR: Need to install Mono (brew install mono, or http://www.mono-project.com/download/)"
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if mcs --version >/dev/null 2>&1; then true; else
|
|
||||||
echo "ERROR: Can't execute mcs. You need to install Mono from http://www.mono-project.com/download/ and re-login to apply PATH environment."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if mono --version >/dev/null 2>&1; then true; else
|
|
||||||
echo "ERROR: Can't execute mono64. You need to install Mono from http://www.mono-project.com/download/ and re-login to apply PATH environment."
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -28,6 +18,11 @@ if [ -d $NUNIT \
|
|||||||
rm NUnit-2.6.4.zip
|
rm NUnit-2.6.4.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clang -g -Wall -Wextra -dynamiclib -o libyoga.dylib -I../../.. ../../../yoga/*.c ../../Yoga/YGInterop.cpp
|
TARGET=//csharp:yoganet#default,shared
|
||||||
|
buck build $TARGET
|
||||||
|
ROOT=`buck root|tail -1`
|
||||||
|
DYLIB=`buck targets --show-output $TARGET|tail -1|awk '{print $2}'`
|
||||||
|
cp $ROOT/$DYLIB .
|
||||||
|
|
||||||
mcs -debug -t:library -r:$NUNIT/nunit.framework.dll -out:YogaTest.dll *.cs ../../../csharp/Facebook.Yoga/*cs
|
mcs -debug -t:library -r:$NUNIT/nunit.framework.dll -out:YogaTest.dll *.cs ../../../csharp/Facebook.Yoga/*cs
|
||||||
MONO_PATH=$NUNIT mono --arch=64 --debug $NUNIT/nunit-console.exe YogaTest.dll
|
MONO_PATH=$NUNIT mono --arch=64 --debug $NUNIT/nunit-console.exe YogaTest.dll
|
||||||
|
Reference in New Issue
Block a user