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

Side by Side Diff: platform_tools/chromeos/bin/chromeos_setup.sh

Issue 17611013: Temporarily disable gpu on chromeos (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 # Set up the environment to build Skia for ChromeOS. 1 # Set up the environment to build Skia for ChromeOS.
2 2
3 function exportVar { 3 function exportVar {
4 NAME=$1 4 NAME=$1
5 VALUE=$2 5 VALUE=$2
6 echo export $NAME=\"$VALUE\" 6 echo export $NAME=\"$VALUE\"
7 export $NAME="$VALUE" 7 export $NAME="$VALUE"
8 } 8 }
9 9
10 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 10 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
11 11
12 # Helper function to configure the GYP defines to the appropriate values 12 # Helper function to configure the GYP defines to the appropriate values
13 # based on the target device. 13 # based on the target device.
14 setup_device() { 14 setup_device() {
15 # Setup the build variation depending on the target device 15 # Setup the build variation depending on the target device
16 TARGET_DEVICE="${SDK_BOARD}" 16 TARGET_DEVICE="${SDK_BOARD}"
17 17
18 if [ -z "$TARGET_DEVICE" ]; then 18 if [ -z "$TARGET_DEVICE" ]; then
19 echo "ERROR: No target device specified!" 19 echo "ERROR: No target device specified!"
20 return 1 20 return 1
21 fi 21 fi
22 22
23 DEFINES="OS=linux host_os=linux skia_os=chromeos" 23 DEFINES="OS=linux host_os=linux skia_os=chromeos skia_gpu=0"
24 24
25 case $TARGET_DEVICE in 25 case $TARGET_DEVICE in
26 x86-alex) 26 x86-alex)
27 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32" 27 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=32"
28 GENERIC_BOARD_TYPE="x86-generic" 28 GENERIC_BOARD_TYPE="x86-generic"
29 ;; 29 ;;
30 link) 30 link)
31 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=64" 31 DEFINES="${DEFINES} skia_arch_type=x86 skia_arch_width=64"
32 GENERIC_BOARD_TYPE="amd64-generic" 32 GENERIC_BOARD_TYPE="amd64-generic"
33 ;; 33 ;;
(...skipping 13 matching lines...) Expand all
47 47
48 echo "The build is targeting the device: $TARGET_DEVICE" 48 echo "The build is targeting the device: $TARGET_DEVICE"
49 49
50 exportVar GENERIC_BOARD_TYPE ${GENERIC_BOARD_TYPE} 50 exportVar GENERIC_BOARD_TYPE ${GENERIC_BOARD_TYPE}
51 exportVar GYP_DEFINES "$DEFINES" 51 exportVar GYP_DEFINES "$DEFINES"
52 exportVar GYP_GENERATORS "make" 52 exportVar GYP_GENERATORS "make"
53 exportVar GYP_GENERATOR_FLAGS "" 53 exportVar GYP_GENERATOR_FLAGS ""
54 exportVar SKIA_OUT "out/config/chromeos-${TARGET_DEVICE}" 54 exportVar SKIA_OUT "out/config/chromeos-${TARGET_DEVICE}"
55 exportVar builddir_name "." 55 exportVar builddir_name "."
56 } 56 }
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