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

Side by Side Diff: build/android/envsetup_functions.sh

Issue 12310007: Switch all remaining android builders to ninja (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « build/android/envsetup.sh ('k') | 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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Defines functions for envsetup.sh which sets up environment for building 7 # Defines functions for envsetup.sh which sets up environment for building
8 # Chromium on Android. The build can be either use the Android NDK/SDK or 8 # Chromium on Android. The build can be either use the Android NDK/SDK or
9 # android source tree. Each has a unique init function which calls functions 9 # android source tree. Each has a unique init function which calls functions
10 # prefixed with "common_" that is common for both environment setups. 10 # prefixed with "common_" that is common for both environment setups.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 esac 127 esac
128 } 128 }
129 129
130 130
131 ################################################################################ 131 ################################################################################
132 # Exports common GYP variables based on variable DEFINES and CHROME_SRC. 132 # Exports common GYP variables based on variable DEFINES and CHROME_SRC.
133 ################################################################################ 133 ################################################################################
134 common_gyp_vars() { 134 common_gyp_vars() {
135 export GYP_DEFINES="${DEFINES}" 135 export GYP_DEFINES="${DEFINES}"
136 136
137 # Set GYP_GENERATORS to make-android if it's currently unset or null. 137 # Set GYP_GENERATORS to ninja if it's currently unset or null.
138 export GYP_GENERATORS="${GYP_GENERATORS:-make-android}" 138 if [ -z $GYP_GENERATORS ]; then
139 echo "Defaulting GYP_GENERATORS to ninja."
140 GYP_GENERATORS=ninja
141 elif [ "$GYP_GENERATORS" != "ninja" ]; then
142 echo "Warning: GYP_GENERATORS set to '$GYP_GENERATORS'."
143 echo "Only GYP_GENERATORS=ninja has continuous coverage."
144 fi
145 export GYP_GENERATORS
139 146
140 # Use our All target as the default 147 # Use our All target as the default
141 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 148 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
142 149
143 # We want to use our version of "all" targets. 150 # We want to use our version of "all" targets.
144 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 151 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
145 } 152 }
146 153
147 154
148 ################################################################################ 155 ################################################################################
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 export GYP_DEFINES="${DEFINES}" 279 export GYP_DEFINES="${DEFINES}"
273 280
274 export GYP_GENERATORS="android" 281 export GYP_GENERATORS="android"
275 282
276 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 283 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
277 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 284 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
278 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 285 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
279 286
280 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 287 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
281 } 288 }
OLDNEW
« no previous file with comments | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698