Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: runtime/embedders/openglui/build_skia.sh

Issue 14961005: Speculative fix for android build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 function usage { 3 function usage {
4 echo "usage: $0 [ --help ] [ --android ] [ --arm | --x86] [ --debug ] [--clean ] [<Dart directory>]" 4 echo "usage: $0 [ --help ] [ --android ] [ --arm | --x86] [ --debug ] [--clean ] [<Dart directory>]"
5 echo 5 echo
6 echo "Sync up Skia and build" 6 echo "Sync up Skia and build"
7 echo 7 echo
8 echo " --android: Build for Android" 8 echo " --android: Build for Android"
9 echo " --x86 : Build for Intel" 9 echo " --x86 : Build for Intel"
10 echo " --arm : Cross-compile for ARM (implies --android)" 10 echo " --arm : Cross-compile for ARM (implies --android)"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 mkdir -p "${DART_DIR}/third_party/skia" 59 mkdir -p "${DART_DIR}/third_party/skia"
60 pushd "${DART_DIR}/third_party/skia" 60 pushd "${DART_DIR}/third_party/skia"
61 61
62 if [ ${DO_ANDROID} != 0 ] ; then 62 if [ ${DO_ANDROID} != 0 ] ; then
63 echo "Building for Android ${TARGET_ARCH}" 63 echo "Building for Android ${TARGET_ARCH}"
64 curl http://skia.googlecode.com/svn/android/gclient.config -o .gclient 64 curl http://skia.googlecode.com/svn/android/gclient.config -o .gclient
65 gclient sync 65 gclient sync
66 66
67 export ANDROID_SDK_ROOT=`readlink -f ../android_tools/sdk` 67 export ANDROID_SDK_ROOT=`readlink -f ../android_tools/sdk`
68 export GSUTIL_LOCATION=`readlink -f ../gsutil`
68 69
69 cd trunk 70 cd trunk
70 71
71 echo "Using SDK ${ANDROID_SDK_ROOT}" 72 echo "Using SDK ${ANDROID_SDK_ROOT}"
72 if [ ${CLEAN} != 0 ] ; then 73 if [ ${CLEAN} != 0 ] ; then
73 ../android/bin/android_make -d $TARGET_ARCH -j clean 74 ../android/bin/android_make -d $TARGET_ARCH -j clean
74 else 75 else
75 env -i BUILDTYPE=$BUILD ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" PATH="${PATH} :${DART_DIR}/third_party/gsutil" ../android/bin/android_make BUILDTYPE=$BUILD -d $TARGET_ARCH -j --debug=j 76 env -i BUILDTYPE=$BUILD ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" PATH="${PATH} :${GSUTIL_LOCATION}" ../android/bin/android_make BUILDTYPE=$BUILD -d $TARGET_ARC H -j --debug=j
76 fi 77 fi
77 78
78 else 79 else
79 80
80 echo "Building for desktop in `pwd`" 81 echo "Building for desktop in `pwd`"
81 # Desktop build. Requires svn client and Python. 82 # Desktop build. Requires svn client and Python.
82 83
83 # Note that on Linux these packages should be installed first: 84 # Note that on Linux these packages should be installed first:
84 # 85 #
85 # libfreetype6 86 # libfreetype6
(...skipping 15 matching lines...) Expand all
101 fi 102 fi
102 cd .. 103 cd ..
103 104
104 fi 105 fi
105 106
106 popd 107 popd
107 # TODO(gram) We should really propogate the make exit code here. 108 # TODO(gram) We should really propogate the make exit code here.
108 exit 0 109 exit 0
109 110
110 111
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698