| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 }, | 240 }, |
| 241 }], | 241 }], |
| 242 ['R_package != ""', { | 242 ['R_package != ""', { |
| 243 'variables': { | 243 'variables': { |
| 244 # We generate R.java in package R_package (in addition to the package | 244 # We generate R.java in package R_package (in addition to the package |
| 245 # listed in the AndroidManifest.xml, which is unavoidable). | 245 # listed in the AndroidManifest.xml, which is unavoidable). |
| 246 'additional_res_packages': ['<(R_package)'], | 246 'additional_res_packages': ['<(R_package)'], |
| 247 'additional_R_text_files': ['<(intermediate_dir)/R.txt'], | 247 'additional_R_text_files': ['<(intermediate_dir)/R.txt'], |
| 248 }, | 248 }, |
| 249 }], | 249 }], |
| 250 ['native_lib_target != "" and component == "shared_library"', { | 250 ['native_lib_target != "" and android_libcpp_library == "c++_shared"', { |
| 251 'dependencies': [ | 251 'dependencies': [ |
| 252 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', | 252 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', |
| 253 ], | 253 ], |
| 254 }], | 254 }], |
| 255 ['use_chromium_linker == 1', { | 255 ['use_chromium_linker == 1', { |
| 256 'dependencies': [ | 256 'dependencies': [ |
| 257 '<(DEPTH)/base/base.gyp:chromium_android_linker', | 257 '<(DEPTH)/base/base.gyp:chromium_android_linker', |
| 258 ], | 258 ], |
| 259 }], | 259 }], |
| 260 ['enable_errorprone == 1', { | 260 ['enable_errorprone == 1', { |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1054 'native_libs_dir': '<(apk_package_native_libs_dir)', |
| 1055 }, { | 1055 }, { |
| 1056 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1056 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
| 1057 }], | 1057 }], |
| 1058 ], | 1058 ], |
| 1059 }, | 1059 }, |
| 1060 'includes': ['android/apkbuilder_action.gypi'], | 1060 'includes': ['android/apkbuilder_action.gypi'], |
| 1061 }, | 1061 }, |
| 1062 ], | 1062 ], |
| 1063 } | 1063 } |
| OLD | NEW |