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

Unified Diff: runtime/embedders/openglui/build_skia.sh

Issue 13042015: Various OpenGLUI changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: runtime/embedders/openglui/build_skia.sh
===================================================================
--- runtime/embedders/openglui/build_skia.sh (revision 20570)
+++ runtime/embedders/openglui/build_skia.sh (working copy)
@@ -1,19 +1,21 @@
#!/bin/bash
function usage {
- echo "usage: $0 [ --help ] [ --android ] [ --arm | --x86] [--clean] [<Dart directory>]"
+ echo "usage: $0 [ --help ] [ --android ] [ --arm | --x86] [ --debug ] [--clean] [<Dart directory>]"
echo
echo "Sync up Skia and build"
echo
echo " --android: Build for Android"
echo " --x86 : Build for Intel"
echo " --arm : Cross-compile for ARM (implies --android)"
+ echo " --debug : Build a debug version"
echo
}
DO_ANDROID=0
TARGET_ARCH=x86
CLEAN=0
+BUILD=Release
DART_DIR=../../..
while [ ! -z "$1" ] ; do
@@ -35,6 +37,12 @@
"--clean")
CLEAN=1
;;
+ "--debug")
+ BUILD=Debug
+ ;;
+ "--release")
+ BUILD=Release
+ ;;
*)
if [ ! -d "$1" ]
then
@@ -64,10 +72,7 @@
if [ ${CLEAN} != 0 ] ; then
../android/bin/android_make -d $TARGET_ARCH -j clean
else
- env -i BUILDTYPE=Debug ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" ../android/bin/android_make BUILDTYPE=Debug -d $TARGET_ARCH -j --debug=j
- #../android/bin/android_make ANDROID_NDK= BUILDTYPE=Debug ANDROID_SDK_ROOT= -d $TARGET_ARCH -j
- #../android/bin/android_make ANDROID_NDK= BUILDTYPE=Debug ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" -d $TARGET_ARCH -j
- #../android/bin/android_make BUILDTYPE=Debug ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" -d $TARGET_ARCH -j png
+ env -i BUILDTYPE=$BUILD ANDROID_SDK_ROOT="${ANDROID_SDK_ROOT}" ../android/bin/android_make BUILDTYPE=$BUILD -d $TARGET_ARCH -j --debug=j
fi
else
@@ -92,7 +97,7 @@
make clean
else
# Dart sets BUILDTYPE to DebugX64 which breaks Skia build.
- make BUILDTYPE=Debug
+ make BUILDTYPE=$BUILD
fi
cd ..

Powered by Google App Engine
This is Rietveld 408576698