9 # CD to the top android directory
13 DEST="sdk/eclipse/plugins/com.android.ide.eclipse.adt"
14 # computes "../.." from DEST to here (in /android)
15 BACK=`echo $DEST | sed 's@[^/]*@..@g'`
17 LIBS="sdkstats jarutils androidprefs layoutlib_api layoutlib_utils ninepatch sdklib sdkuilib"
19 echo "make java libs ..."
20 make -j3 showcommands $LIBS || die "ADT: Fail to build one of $LIBS."
22 echo "Copying java libs to $DEST"
25 if [ "$HOST" == "Linux" ]; then
27 ln -svf $BACK/out/host/linux-x86/framework/$LIB.jar "$DEST/"
29 ln -svf $BACK/out/host/linux-x86/framework/kxml2-2.3.0.jar "$DEST/"
30 ln -svf $BACK/out/host/linux-x86/framework/commons-compress-1.0.jar "$DEST/"
31 ln -svf $BACK/out/host/linux-x86/framework/groovy-all-1.6.5.jar "$DEST/"
33 elif [ "$HOST" == "Darwin" ]; then
35 ln -svf $BACK/out/host/darwin-x86/framework/$LIB.jar "$DEST/"
37 ln -svf $BACK/out/host/darwin-x86/framework/kxml2-2.3.0.jar "$DEST/"
38 ln -svf $BACK/out/host/darwin-x86/framework/commons-compress-1.0.jar "$DEST/"
39 ln -svf $BACK/out/host/darwin-x86/framework/groovy-all-1.6.5.jar "$DEST/"
41 elif [ "${HOST:0:6}" == "CYGWIN" ]; then
43 cp -vf out/host/windows-x86/framework/$LIB.jar "$DEST/"
46 if [ ! -f "$DEST/kxml2-2.3.0.jar" ]; then
47 cp -v "prebuilt/common/kxml2/kxml2-2.3.0.jar" "$DEST/"
50 if [ ! -f "$DEST/commons-compress-1.0.jar" ]; then
51 cp -v "prebuilt/common/commons-compress/commons-compress-1.0.jar" "$DEST/"
54 if [ ! -f "$DEST/groovy-all-1.6.5.jar" ]; then
55 cp -v "prebuilt/common/groovy/groovy-all-1.6.5.jar" "$DEST/"
58 chmod -v a+rx "$DEST"/*.jar
60 echo "Unsupported platform ($HOST). Nothing done."