Chromium Code Reviews| 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 # Sets up environment for building Chromium on Android. Only Android NDK, | 7 # Sets up environment for building Chromium on Android. Only Android NDK, |
| 8 # Revision 6b on Linux or Mac is offically supported. | 8 # Revision 6b on Linux or Mac is offically supported. |
| 9 # | 9 # |
| 10 # To run this script, the system environment ANDROID_NDK_ROOT must be set | 10 # To run this script, the system environment ANDROID_NDK_ROOT must be set |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 DEFINES+=" linux_fpic=1" | 143 DEFINES+=" linux_fpic=1" |
| 144 DEFINES+=" release_optimize=s" | 144 DEFINES+=" release_optimize=s" |
| 145 DEFINES+=" linux_use_tcmalloc=0" | 145 DEFINES+=" linux_use_tcmalloc=0" |
| 146 DEFINES+=" disable_nacl=1" | 146 DEFINES+=" disable_nacl=1" |
| 147 DEFINES+=" remoting=0" | 147 DEFINES+=" remoting=0" |
| 148 DEFINES+=" p2p_apis=0" | 148 DEFINES+=" p2p_apis=0" |
| 149 DEFINES+=" enable_touch_events=1" | 149 DEFINES+=" enable_touch_events=1" |
| 150 DEFINES+=" build_ffmpegsumo=0" | 150 DEFINES+=" build_ffmpegsumo=0" |
| 151 DEFINES+=" gtest_target_type=shared_library" | 151 DEFINES+=" gtest_target_type=shared_library" |
| 152 DEFINES+=" branding=Chromium" | 152 DEFINES+=" branding=Chromium" |
| 153 DEFINES+=\ | |
| 154 " android_sdk=${ANDROID_SDK_ROOT}/platforms/android-${ANDROID_SDK_VERSION}" | |
|
navabi
2012/06/29 20:29:52
This is fine upstream. Will not work downstream a
Steve Block
2012/07/02 09:23:41
Right, I'll resolve the 'ANDROID_BUILD_TOP' case w
| |
| 153 | 155 |
| 154 export GYP_DEFINES="${DEFINES}" | 156 export GYP_DEFINES="${DEFINES}" |
| 155 | 157 |
| 156 # Use the "android" flavor of the Makefile generator for both Linux and OS X. | 158 # Use the "android" flavor of the Makefile generator for both Linux and OS X. |
| 157 export GYP_GENERATORS="make-android" | 159 export GYP_GENERATORS="make-android" |
| 158 | 160 |
| 159 # Use our All target as the default | 161 # Use our All target as the default |
| 160 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 162 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
| 161 | 163 |
| 162 # We want to use our version of "all" targets. | 164 # We want to use our version of "all" targets. |
| 163 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" | 165 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" |
| OLD | NEW |