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

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

Issue 139743016: android: Fold all_android.gyp into all.gyp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 11 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
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 ################################################################################ 140 ################################################################################
141 # Exports common GYP variables based on variable DEFINES and CHROME_SRC. 141 # Exports common GYP variables based on variable DEFINES and CHROME_SRC.
142 ################################################################################ 142 ################################################################################
143 common_gyp_vars() { 143 common_gyp_vars() {
144 export GYP_DEFINES="${DEFINES}" 144 export GYP_DEFINES="${DEFINES}"
145 145
146 # Use our All target as the default 146 # Use our All target as the default
147 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 147 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
148 148
149 # We want to use our version of "all" targets. 149 # TODO(thakis): Remove this after a week or two. Sourcing envsetup.sh used to
150 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 150 # set this variable, but now that all_android.gyp is gone having it set will
151 # lead to errors, so explicitly unset it to remove it from the environment of
152 # developers who keep their shells open for weeks (most of them, probably).
153 unset CHROMIUM_GYP_FILE
151 } 154 }
152 155
153 156
154 ################################################################################ 157 ################################################################################
155 # Prints out help message on usage. 158 # Prints out help message on usage.
156 ################################################################################ 159 ################################################################################
157 print_usage() { 160 print_usage() {
158 echo "usage: ${0##*/} [--target-arch=value] [--help]" >& 2 161 echo "usage: ${0##*/} [--target-arch=value] [--help]" >& 2
159 echo "--target-arch=value target CPU architecture (arm=default, x86)" >& 2 162 echo "--target-arch=value target CPU architecture (arm=default, x86)" >& 2
160 echo "--host-os=value override host OS detection (linux, mac)" >&2 163 echo "--host-os=value override host OS detection (linux, mac)" >&2
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 fi 322 fi
320 export GYP_DEFINES="${DEFINES}" 323 export GYP_DEFINES="${DEFINES}"
321 324
322 export GYP_GENERATORS="android" 325 export GYP_GENERATORS="android"
323 326
324 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 327 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
325 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 328 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
326 329
327 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 330 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
328 } 331 }
OLDNEW
« build/all_android.gyp ('K') | « build/all_android.gyp ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698