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

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

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

Powered by Google App Engine
This is Rietveld 408576698