9 # CD to the top android directory
13 DEST="sdk/eclipse/plugins/com.android.ide.eclipse.adt/libs"
14 # computes "../.." from DEST to here (in /android)
15 BACK=`echo $DEST | sed 's@[^/]*@..@g'`
19 LIBS="sdkstats androidprefs layoutlib_api ide_common ninepatch sdklib sdkuilib"
21 echo "make java libs ..."
22 make -j3 showcommands $LIBS || die "ADT: Fail to build one of $LIBS."
24 echo "Copying java libs to $DEST"
28 if [ "$HOST" == "Linux" ]; then
30 ln -svf $BACK/out/host/linux-x86/framework/$LIB.jar "$DEST/"
32 ln -svf $BACK/out/host/linux-x86/framework/kxml2-2.3.0.jar "$DEST/"
33 ln -svf $BACK/out/host/linux-x86/framework/commons-compress-1.0.jar "$DEST/"
35 elif [ "$HOST" == "Darwin" ]; then
37 ln -svf $BACK/out/host/darwin-x86/framework/$LIB.jar "$DEST/"
39 ln -svf $BACK/out/host/darwin-x86/framework/kxml2-2.3.0.jar "$DEST/"
40 ln -svf $BACK/out/host/darwin-x86/framework/commons-compress-1.0.jar "$DEST/"
42 elif [ "${HOST:0:6}" == "CYGWIN" ]; then
44 cp -vf out/host/windows-x86/framework/$LIB.jar "$DEST/"
47 if [ ! -f "$DEST/kxml2-2.3.0.jar" ]; then
48 cp -v "prebuilt/common/kxml2/kxml2-2.3.0.jar" "$DEST/"
51 if [ ! -f "$DEST/commons-compress-1.0.jar" ]; then
52 cp -v "prebuilt/common/commons-compress/commons-compress-1.0.jar" "$DEST/"
55 chmod -v a+rx "$DEST"/*.jar
57 echo "Unsupported platform ($HOST). Nothing done."