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

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

Issue 10832295: Remove the dependency on the STRIP env variable for Android (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
« no previous file with comments | « no previous file | build/apk_test.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 export PATH=$PATH:${ANDROID_NDK_ROOT} 47 export PATH=$PATH:${ANDROID_NDK_ROOT}
48 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools 48 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools
49 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools 49 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools
50 # Must have tools like arm-linux-androideabi-gcc on the path for ninja 50 # Must have tools like arm-linux-androideabi-gcc on the path for ninja
51 export PATH=$PATH:${ANDROID_TOOLCHAIN} 51 export PATH=$PATH:${ANDROID_TOOLCHAIN}
52 52
53 # Add Chromium Android development scripts to system path. 53 # Add Chromium Android development scripts to system path.
54 # Must be after CHROME_SRC is set. 54 # Must be after CHROME_SRC is set.
55 export PATH=$PATH:${CHROME_SRC}/build/android 55 export PATH=$PATH:${CHROME_SRC}/build/android
56 56
57 # TODO(beverloo): Remove these once all consumers updated to --strip-binary.
57 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy) 58 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy)
58 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip) 59 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip)
59 60
60 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories 61 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories
61 # to canonicalize them (remove double '/', remove trailing '/', etc). 62 # to canonicalize them (remove double '/', remove trailing '/', etc).
62 DEFINES="OS=android" 63 DEFINES="OS=android"
63 DEFINES+=" host_os=${host_os}" 64 DEFINES+=" host_os=${host_os}"
64 65
65 if [ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then 66 if [ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then
66 DEFINES+=" branding=Chrome" 67 DEFINES+=" branding=Chrome"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 export GYP_GENERATORS="android" 278 export GYP_GENERATORS="android"
278 279
279 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 282 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
282 283
283 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. 284 # 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" 285 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp"
285 } 286 }
OLDNEW
« no previous file with comments | « no previous file | build/apk_test.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698