| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 ], | 210 ], |
| 211 'action': [ | 211 'action': [ |
| 212 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 212 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
| 213 '--include-path=<(native_libraries_template_data_dir)', | 213 '--include-path=<(native_libraries_template_data_dir)', |
| 214 '--output=<(native_libraries_java_file)', | 214 '--output=<(native_libraries_java_file)', |
| 215 '--template=<(native_libraries_template)', | 215 '--template=<(native_libraries_template)', |
| 216 '--stamp=<(native_libraries_java_stamp)', | 216 '--stamp=<(native_libraries_java_stamp)', |
| 217 ], | 217 ], |
| 218 }, | 218 }, |
| 219 { | 219 { |
| 220 'action_name': 'strip_native_libraries', |
| 220 'variables': { | 221 'variables': { |
| 222 'ordered_libraries_file%': '<(ordered_libraries_file)', |
| 221 'stripped_libraries_dir': '<(libraries_source_dir)', | 223 'stripped_libraries_dir': '<(libraries_source_dir)', |
| 222 'input_paths': ['<@(native_libs_paths)'], | 224 'input_paths': ['<@(native_libs_paths)'], |
| 225 'stamp': '<(strip_stamp)' |
| 223 }, | 226 }, |
| 224 'includes': ['../build/android/strip_native_libraries.gypi'], | 227 'includes': ['../build/android/strip_native_libraries.gypi'], |
| 225 }, | 228 }, |
| 226 ], | 229 ], |
| 227 'conditions': [ | 230 'conditions': [ |
| 228 ['gyp_managed_install == 1', { | 231 ['gyp_managed_install == 1', { |
| 229 'variables': { | 232 'variables': { |
| 230 'libraries_source_dir': '<(intermediate_dir)/lib.stripped/<(android_
app_abi)', | 233 'libraries_source_dir': '<(intermediate_dir)/lib.stripped/<(android_
app_abi)', |
| 231 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', | 234 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', |
| 232 }, | 235 }, |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 '--unsigned-apk-path=<(unsigned_apk_path)', | 624 '--unsigned-apk-path=<(unsigned_apk_path)', |
| 622 '--final-apk-path=<(final_apk_path)', | 625 '--final-apk-path=<(final_apk_path)', |
| 623 '--keystore-path=<(keystore_path)', | 626 '--keystore-path=<(keystore_path)', |
| 624 | 627 |
| 625 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 628 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 626 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 629 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 627 ], | 630 ], |
| 628 }, | 631 }, |
| 629 ], | 632 ], |
| 630 } | 633 } |
| OLD | NEW |