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

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

Issue 25081002: Remove openglui embedder code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
OLDNEW
(Empty)
1 #!/bin/bash
2
3 function usage {
4 echo "usage: $0 [ --help ] [ --android ] [ --arm | --x86] [ --debug ] [--clean ] [<Dart directory>]"
5 echo
6 echo "Sync up Skia and build"
7 echo
8 echo " --android: Build for Android"
9 echo " --x86 : Build for Intel"
10 echo " --arm : Cross-compile for ARM (implies --android)"
11 echo " --debug : Build a debug version"
12 echo
13 }
14
15 DO_ANDROID=0
16 TARGET_ARCH=x86
17 CLEAN=0
18 BUILD=Release
19 DART_DIR=../../..
20
21 while [ ! -z "$1" ] ; do
22 case $1 in
23 "-h"|"-?"|"-help"|"--help")
24 usage
25 exit 1
26 ;;
27 "--android")
28 DO_ANDROID=1
29 ;;
30 "--arm")
31 TARGET_ARCH=arm
32 DO_ANDROID=1
33 ;;
34 "--x86")
35 TARGET_ARCH=x86
36 ;;
37 "--clean")
38 CLEAN=1
39 ;;
40 "--debug")
41 BUILD=Debug
42 ;;
43 "--release")
44 BUILD=Release
45 ;;
46 *)
47 if [ ! -d "$1" ]
48 then
49 echo "Unrecognized argument: $1"
50 usage
51 exit 1
52 fi
53 DART_DIR="$1"
54 ;;
55 esac
56 shift
57 done
58
59 mkdir -p "${DART_DIR}/third_party/skia"
60 pushd "${DART_DIR}/third_party/skia"
61
62 if [ ${DO_ANDROID} != 0 ] ; then
63 echo "Building for Android ${TARGET_ARCH}"
64 curl http://skia.googlecode.com/svn/trunk/platform_tools/android/gclient.confi g -o .gclient
65 gclient sync
66
67 export ANDROID_SDK_ROOT=`readlink -f ../android_tools/sdk`
68 export GSUTIL_LOCATION=`readlink -f ../gsutil`
69
70 cd trunk
71
72 echo "Using SDK ${ANDROID_SDK_ROOT}"
73 if [ ${CLEAN} != 0 ] ; then
74 ./platform_tools/android/bin/android_make -d $TARGET_ARCH -j clean
75 else
76 echo env -i BUILDTYPE=$BUILD ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" PATH="${ PATH}:${GSUTIL_LOCATION}" ../android/bin/android_make BUILDTYPE=$BUILD -d $TARGE T_ARCH -j --debug=j
77 env -i BUILDTYPE=$BUILD ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" PATH="${PATH} :${GSUTIL_LOCATION}" ./platform_tools/android/bin/android_make BUILDTYPE=$BUILD -d $TARGET_ARCH -j --debug=j
78 fi
79
80 else
81
82 echo "Building for desktop in `pwd`"
83 # Desktop build. Requires svn client and Python.
84
85 # Note that on Linux these packages should be installed first:
86 #
87 # libfreetype6
88 # libfreetype6-dev
89 # libpng12-0, libpng12-dev
90 # libglu1-mesa-dev
91 # mesa-common-dev
92 # freeglut3-dev
93
94 SKIA_INSTALLDIR=`pwd`
95 svn checkout http://skia.googlecode.com/svn/trunk
96 cd trunk
97 if [ ${CLEAN} != 0 ] ; then
98 echo 'Cleaning'
99 make clean
100 else
101 # Dart sets BUILDTYPE to DebugX64 which breaks Skia build.
102 make BUILDTYPE=$BUILD
103 fi
104 cd ..
105
106 fi
107
108 popd
109 # TODO(gram) We should really propogate the make exit code here.
110 exit 0
111
112
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/android/support_android.cc ('k') | runtime/embedders/openglui/common/canvas_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698