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

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

Issue 10834296: Second attempt at fixing Ninja build for Android and change make for host os optionally use goma (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« build/android/envsetup.sh ('K') | « 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return 1 115 return 1
116 esac 116 esac
117 } 117 }
118 118
119 119
120 ################################################################################ 120 ################################################################################
121 # Exports common GYP variables based on variable DEFINES and CHROME_SRC. 121 # Exports common GYP variables based on variable DEFINES and CHROME_SRC.
122 ################################################################################ 122 ################################################################################
123 common_gyp_vars() { 123 common_gyp_vars() {
124 export GYP_DEFINES="${DEFINES}" 124 export GYP_DEFINES="${DEFINES}"
125 export GYP_GENERATORS="make-android" 125 if [[ -z "${GYP_GENERATORS}" ]]; then
126 export GYP_GENERATORS="make-android"
127 fi
126 128
127 # Use our All target as the default 129 # Use our All target as the default
128 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 130 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
129 131
130 # We want to use our version of "all" targets. 132 # We want to use our version of "all" targets.
131 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 133 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
132 } 134 }
133 135
134 136
135 ################################################################################ 137 ################################################################################
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 278
277 export GYP_GENERATORS="android" 279 export GYP_GENERATORS="android"
278 280
279 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 282 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 283 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
282 284
283 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. 285 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting.
284 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" 286 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp"
285 } 287 }
OLDNEW
« build/android/envsetup.sh ('K') | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698