OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 # Add Chromium Android development scripts to system path. | 23 # Add Chromium Android development scripts to system path. |
24 # Must be after CHROME_SRC is set. | 24 # Must be after CHROME_SRC is set. |
25 export PATH=$PATH:${CHROME_SRC}/build/android | 25 export PATH=$PATH:${CHROME_SRC}/build/android |
26 | 26 |
27 # The set of GYP_DEFINES to pass to gyp. | 27 # The set of GYP_DEFINES to pass to gyp. |
28 DEFINES="OS=android" | 28 DEFINES="OS=android" |
29 DEFINES+=" host_os=${host_os}" | 29 DEFINES+=" host_os=${host_os}" |
30 | 30 |
31 if [[ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]]; then | 31 if [[ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]]; then |
32 DEFINES+=" branding=Chrome" | |
33 DEFINES+=" buildtype=Official" | |
34 | |
35 # These defines are used by various chrome build scripts to tag the binary's | 32 # These defines are used by various chrome build scripts to tag the binary's |
36 # version string as 'official' in linux builds (e.g. in | 33 # version string as 'official' in linux builds (e.g. in |
37 # chrome/trunk/src/chrome/tools/build/version.py). | 34 # chrome/trunk/src/chrome/tools/build/version.py). |
38 export OFFICIAL_BUILD=1 | 35 export OFFICIAL_BUILD=1 |
39 export CHROMIUM_BUILD="_google_chrome" | 36 export CHROMIUM_BUILD="_google_chrome" |
40 export CHROME_BUILD_TYPE="_official" | 37 export CHROME_BUILD_TYPE="_official" |
41 fi | 38 fi |
42 | 39 |
43 # TODO(thakis), Jan 18 2014: Remove this after two weeks or so, after telling | 40 # TODO(thakis), Jan 18 2014: Remove this after two weeks or so, after telling |
44 # everyone to set use_goma in GYP_DEFINES instead of a GOMA_DIR env var. | 41 # everyone to set use_goma in GYP_DEFINES instead of a GOMA_DIR env var. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" | 189 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" |
193 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" | 190 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
194 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" | 191 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
195 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" | 192 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
196 if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then | 193 if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then |
197 DEFINES+=" logging_like_official_build=1" | 194 DEFINES+=" logging_like_official_build=1" |
198 DEFINES+=" tracing_like_official_build=1" | 195 DEFINES+=" tracing_like_official_build=1" |
199 fi | 196 fi |
200 export GYP_DEFINES="${DEFINES}" | 197 export GYP_DEFINES="${DEFINES}" |
201 } | 198 } |
OLD | NEW |