1 source ../../../build/envsetup.sh 2 pushd ../../../ 3 4 # need lunch before building jars 5 if [ -z "$TARGET_PRODUCT" ]; then 6 lunch 7 fi 8 9 pushd external/liblzf/ 10 mm 11 popd 12 13 pushd external/protobuf/ 14 mm 15 popd 16 17 pushd sdk/sdkmanager/libs/sdklib 18 mm 19 popd 20 21 # glsl_compiler is optional 22 # make glsl_compiler -j3 23 24 popd 25 26 mkdir -p lib 27 cp "$ANDROID_HOST_OUT/framework/host-libprotobuf-java-2.3.0-lite.jar" lib/ 28 cp "$ANDROID_HOST_OUT/framework/liblzf.jar" lib/ 29 cp "$ANDROID_HOST_OUT/framework/sdklib.jar" lib/ 30 31 # optional; usually for linux 32 #cp "$ANDROID_HOST_OUT/bin/glsl_compiler" ~/ 33 34 # optional; usually for mac, need to replace eclipse.app with actual path 35 #cp "$ANDROID_HOST_OUT/bin/glsl_compiler" eclipse.app/Contents/MacOS 36