9 # CD to the top android directory
14 if [ "$HOST" == "Linux" ]; then
17 elif [ "$HOST" == "Darwin" ]; then
20 elif [ "${HOST:0:6}" == "CYGWIN" ]; then
21 if [ "x$1" == "x" ] || [ `basename "$1"` != "layoutlib.jar" ]; then
22 echo "Usage: $0 [yoursdk/platforms/xxx/data/layoutlib.jar]"
23 echo "WARNING: Argument 1 should be the SDK path to the layoutlib.jar to update."
26 LIBS="layoutlib ninepatch"
27 echo "Make java libs: $LIBS"
28 make -j3 showcommands $LIBS || die "Bridge: Failed to build one of $LIBS."
30 if [ "x$1" == "x" ] || [ `basename "$1"` != "layoutlib.jar" ]; then
31 echo "Skip updating layoutlib.jar from an SDK"
33 echo "Updating your SDK in $1"
34 cp -vf "out/host/windows-x86/framework/layoutlib.jar" "$1"
39 echo "Unsupported platform ($HOST). Nothing done."