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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy) | 57 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy) |
58 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip) | 58 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip) |
59 | 59 |
60 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories | 60 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories |
61 # to canonicalize them (remove double '/', remove trailing '/', etc). | 61 # to canonicalize them (remove double '/', remove trailing '/', etc). |
62 DEFINES="OS=android" | 62 DEFINES="OS=android" |
63 DEFINES+=" host_os=${host_os}" | 63 DEFINES+=" host_os=${host_os}" |
64 DEFINES+=" linux_fpic=1" | |
65 DEFINES+=" release_optimize=s" | |
66 DEFINES+=" linux_use_tcmalloc=0" | |
67 DEFINES+=" disable_nacl=1" | |
68 DEFINES+=" remoting=0" | |
69 DEFINES+=" p2p_apis=0" | |
70 DEFINES+=" enable_touch_events=1" | |
71 DEFINES+=" build_ffmpegsumo=0" | |
72 | 64 |
73 DEFINES+=" gtest_target_type=shared_library" | 65 if [ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then |
74 if [ -z "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then | |
75 DEFINES+=" branding=Chromium" | |
76 else | |
77 DEFINES+=" branding=Chrome" | 66 DEFINES+=" branding=Chrome" |
78 DEFINES+=" buildtype=Official" | 67 DEFINES+=" buildtype=Official" |
79 | 68 |
80 # These defines are used by various chrome build scripts to tag the binary's | 69 # These defines are used by various chrome build scripts to tag the binary's |
81 # version string as 'official' in linux builds (e.g. in | 70 # version string as 'official' in linux builds (e.g. in |
82 # chrome/trunk/src/chrome/tools/build/version.py). | 71 # chrome/trunk/src/chrome/tools/build/version.py). |
83 export OFFICIAL_BUILD=1 | 72 export OFFICIAL_BUILD=1 |
84 export CHROMIUM_BUILD="_google_chrome" | 73 export CHROMIUM_BUILD="_google_chrome" |
85 export CHROME_BUILD_TYPE="_official" | 74 export CHROME_BUILD_TYPE="_official" |
86 | 75 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 273 |
285 export GYP_GENERATORS="android" | 274 export GYP_GENERATORS="android" |
286 | 275 |
287 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 276 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
288 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 277 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
289 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 278 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
290 | 279 |
291 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. | 280 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. |
292 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" | 281 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" |
293 } | 282 } |
OLD | NEW |