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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 184 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
185 '--include-path=<(native_libraries_template_data_dir)', | 185 '--include-path=<(native_libraries_template_data_dir)', |
186 '--output=<(native_libraries_java_file)', | 186 '--output=<(native_libraries_java_file)', |
187 '--template=<(native_libraries_template)', | 187 '--template=<(native_libraries_template)', |
188 '--stamp=<(native_libraries_java_stamp)', | 188 '--stamp=<(native_libraries_java_stamp)', |
189 ], | 189 ], |
190 }, | 190 }, |
191 { | 191 { |
192 'variables': { | 192 'variables': { |
193 'stripped_libraries_dir': '<(libraries_source_dir)', | 193 'stripped_libraries_dir': '<(libraries_source_dir)', |
| 194 'input_paths': ['<@(native_libs_paths)'], |
194 }, | 195 }, |
195 'includes': ['../build/android/strip_native_libraries.gypi'], | 196 'includes': ['../build/android/strip_native_libraries.gypi'], |
196 }, | 197 }, |
197 ], | 198 ], |
198 'conditions': [ | 199 'conditions': [ |
199 ['gyp_managed_install == 1', { | 200 ['gyp_managed_install == 1', { |
200 'variables': { | 201 'variables': { |
201 'libraries_source_dir': '<(intermediate_dir)/lib.stripped/<(android_
app_abi)', | 202 'libraries_source_dir': '<(intermediate_dir)/lib.stripped/<(android_
app_abi)', |
202 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', | 203 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', |
203 'device_library_dir': '/data/local/tmp/chromium/lib.stripped/<(_targ
et_name)', | 204 'device_library_dir': '/data/local/tmp/chromium/lib.stripped/<(_targ
et_name)', |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 '--unsigned-apk-path=<(unsigned_apk_path)', | 592 '--unsigned-apk-path=<(unsigned_apk_path)', |
592 '--final-apk-path=<(final_apk_path)', | 593 '--final-apk-path=<(final_apk_path)', |
593 '--keystore-path=<(keystore_path)', | 594 '--keystore-path=<(keystore_path)', |
594 | 595 |
595 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 596 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
596 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 597 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
597 ], | 598 ], |
598 }, | 599 }, |
599 ], | 600 ], |
600 } | 601 } |
OLD | NEW |