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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 '<(apk_install_stamp)', | 253 '<(apk_install_stamp)', |
254 '<(push_stamp)' | 254 '<(push_stamp)' |
255 ], | 255 ], |
256 'outputs': [ | 256 'outputs': [ |
257 '<(link_stamp)' | 257 '<(link_stamp)' |
258 ], | 258 ], |
259 'action': [ | 259 'action': [ |
260 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', | 260 'python', '<(DEPTH)/build/android/gyp/create_device_library_link
s.py', |
261 '--apk=<(final_apk_path)', | 261 '--apk=<(final_apk_path)', |
262 '--libraries-json=<(ordered_libraries_file)', | 262 '--libraries-json=<(ordered_libraries_file)', |
| 263 '--libraries-dir=<(apk_libraries_dir)', |
263 '--target-dir=<(device_library_dir)', | 264 '--target-dir=<(device_library_dir)', |
264 '--stamp=<(link_stamp)', | 265 '--stamp=<(link_stamp)', |
265 ], | 266 ], |
266 }, | 267 }, |
267 ], | 268 ], |
268 }, { | 269 }, { |
269 'variables': { | 270 'variables': { |
270 'apk_libraries_dir': '<(intermediate_dir)/libs/<(android_app_abi)', | 271 'apk_libraries_dir': '<(intermediate_dir)/libs/<(android_app_abi)', |
271 'package_input_paths': [ '<(strip_stamp)' ], | 272 'package_input_paths': [ '<(strip_stamp)' ], |
272 }, | 273 }, |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 554 |
554 # Add list of inputs to the command line, so if inputs change | 555 # Add list of inputs to the command line, so if inputs change |
555 # (e.g. if a Java file is removed), the command will be re-run. | 556 # (e.g. if a Java file is removed), the command will be re-run. |
556 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 557 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
557 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 558 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
558 | 559 |
559 ] | 560 ] |
560 }, | 561 }, |
561 ], | 562 ], |
562 } | 563 } |
OLD | NEW |