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

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

Issue 11414317: Remove references to android_upstream_bringup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | build/common.gypi » ('j') | 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 # Set default target. 226 # Set default target.
227 export TARGET_PRODUCT="${TARGET_PRODUCT:-trygon}" 227 export TARGET_PRODUCT="${TARGET_PRODUCT:-trygon}"
228 228
229 # Unset toolchain so that it can be set based on TARGET_PRODUCT. 229 # Unset toolchain so that it can be set based on TARGET_PRODUCT.
230 # This makes it easy to switch between architectures. 230 # This makes it easy to switch between architectures.
231 unset ANDROID_TOOLCHAIN 231 unset ANDROID_TOOLCHAIN
232 232
233 common_vars_defines 233 common_vars_defines
234 234
235 DEFINES+=" sdk_build=1" 235 DEFINES+=" sdk_build=1"
236 # If we are building NDK/SDK, and in the upstream (open source) tree,
237 # define a special variable for bringup purposes.
238 case "${ANDROID_BUILD_TOP-undefined}" in
239 "undefined")
240 DEFINES+=" android_upstream_bringup=1"
241 ;;
242 esac
243 236
244 # Sets android specific directories to NOT_SDK_COMPLIANT. This will allow 237 # Sets android specific directories to NOT_SDK_COMPLIANT. This will allow
245 # android_gyp to generate make files, but will cause errors when (and only 238 # android_gyp to generate make files, but will cause errors when (and only
246 # when) building targets that depend on these directories. 239 # when) building targets that depend on these directories.
247 DEFINES+=" android_src='NOT_SDK_COMPLIANT'" 240 DEFINES+=" android_src='NOT_SDK_COMPLIANT'"
248 DEFINES+=" android_product_out=${CHROME_SRC}/out/android" 241 DEFINES+=" android_product_out=${CHROME_SRC}/out/android"
249 DEFINES+=" android_lib='NOT_SDK_COMPLIANT'" 242 DEFINES+=" android_lib='NOT_SDK_COMPLIANT'"
250 DEFINES+=" android_static_lib='NOT_SDK_COMPLIANT'" 243 DEFINES+=" android_static_lib='NOT_SDK_COMPLIANT'"
251 DEFINES+=" android_sdk=${ANDROID_SDK_ROOT}/${sdk_suffix}" 244 DEFINES+=" android_sdk=${ANDROID_SDK_ROOT}/${sdk_suffix}"
252 DEFINES+=" android_sdk_root=${ANDROID_SDK_ROOT}" 245 DEFINES+=" android_sdk_root=${ANDROID_SDK_ROOT}"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \ 281 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \
289 '${ANDROID_BUILD_TOP}')") 282 '${ANDROID_BUILD_TOP}')")
290 ANDROID_SDK_TOOLS=$(python -c \ 283 ANDROID_SDK_TOOLS=$(python -c \
291 "import os.path; \ 284 "import os.path; \
292 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/linux', \ 285 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/linux', \
293 '${ANDROID_BUILD_TOP}')") 286 '${ANDROID_BUILD_TOP}')")
294 DEFINES+=" android_build_type=1" 287 DEFINES+=" android_build_type=1"
295 DEFINES+=" sdk_build=0" 288 DEFINES+=" sdk_build=0"
296 DEFINES+=" android_src=\$(GYP_ABS_ANDROID_TOP_DIR)" 289 DEFINES+=" android_src=\$(GYP_ABS_ANDROID_TOP_DIR)"
297 DEFINES+=" android_product_out=NOT_USED_ON_WEBVIEW" 290 DEFINES+=" android_product_out=NOT_USED_ON_WEBVIEW"
298 DEFINES+=" android_upstream_bringup=1"
299 DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" 291 DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}"
300 DEFINES+=" android_sdk_root=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" 292 DEFINES+=" android_sdk_root=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}"
301 DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}" 293 DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}"
302 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" 294 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
303 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" 295 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
304 export GYP_DEFINES="${DEFINES}" 296 export GYP_DEFINES="${DEFINES}"
305 297
306 export GYP_GENERATORS="android" 298 export GYP_GENERATORS="android"
307 299
308 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
309 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
310 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 302 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
311 303
312 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 304 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
313 } 305 }
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698