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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 "mac") | 284 "mac") |
285 ANDROID_SDK_TOOLS=$(python -c \ | 285 ANDROID_SDK_TOOLS=$(python -c \ |
286 "import os.path; \ | 286 "import os.path; \ |
287 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/darwin', \ | 287 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/darwin', \ |
288 '${ANDROID_BUILD_TOP}')") | 288 '${ANDROID_BUILD_TOP}')") |
289 ;; | 289 ;; |
290 esac | 290 esac |
291 DEFINES+=" android_webview_build=1" | 291 DEFINES+=" android_webview_build=1" |
292 # temporary until all uses of android_build_type are gone (crbug.com/184431) | 292 # temporary until all uses of android_build_type are gone (crbug.com/184431) |
293 DEFINES+=" android_build_type=1" | 293 DEFINES+=" android_build_type=1" |
294 DEFINES+=" android_src=\$(GYP_ABS_ANDROID_TOP_DIR)" | 294 DEFINES+=" android_src=\$(PWD)" |
295 DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" | 295 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" |
296 DEFINES+=" android_sdk_root=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" | 296 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" |
297 DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}" | 297 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
298 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" | 298 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
299 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" | 299 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
300 export GYP_DEFINES="${DEFINES}" | 300 export GYP_DEFINES="${DEFINES}" |
301 | 301 |
302 export GYP_GENERATORS="android" | 302 export GYP_GENERATORS="android" |
303 | 303 |
304 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 304 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
305 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 305 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
306 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 306 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
307 | 307 |
308 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 308 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
309 } | 309 } |
OLD | NEW |