| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Sets up environment for building Chromium on Android. It can either be | 6 # Sets up environment for building Chromium on Android. It can either be |
| 7 # compiled with the Android tree or using the Android SDK/NDK. To build with | 7 # compiled with the Android tree or using the Android SDK/NDK. To build with |
| 8 # NDK/SDK: ". build/android/envsetup.sh". Environment variable | 8 # NDK/SDK: ". build/android/envsetup.sh". Environment variable |
| 9 # ANDROID_SDK_BUILD=1 will then be defined and used in the rest of the setup to | 9 # ANDROID_SDK_BUILD=1 will then be defined and used in the rest of the setup to |
| 10 # specifiy build type. | 10 # specifiy build type. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 # Source a bunch of helper functions | 101 # Source a bunch of helper functions |
| 102 . ${CHROME_SRC}/build/android/adb_device_functions.sh | 102 . ${CHROME_SRC}/build/android/adb_device_functions.sh |
| 103 | 103 |
| 104 # Declare Android are cross compile. | 104 # Declare Android are cross compile. |
| 105 export GYP_CROSSCOMPILE=1 | 105 export GYP_CROSSCOMPILE=1 |
| 106 | 106 |
| 107 # Performs a gyp_chromium run to convert gyp->Makefile for android code. | 107 # Performs a gyp_chromium run to convert gyp->Makefile for android code. |
| 108 android_gyp() { | 108 android_gyp() { |
| 109 # This is just a simple wrapper of gyp_chromium, please don't add anything | 109 # This is just a simple wrapper of gyp_chromium, please don't add anything |
| 110 # in this function. | 110 # in this function. |
| 111 echo "GYP_GENERATORS set to '$GYP_GENERATORS'" | |
| 112 ( | 111 ( |
| 113 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" | 112 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" |
| 114 ) | 113 ) |
| 115 } | 114 } |
| OLD | NEW |