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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 'variables': { | 282 'variables': { |
283 'linker_tests_gcc_preprocess_defines': [], | 283 'linker_tests_gcc_preprocess_defines': [], |
284 }, | 284 }, |
285 }], | 285 }], |
286 ], | 286 ], |
287 'gcc_preprocess_defines': [ | 287 'gcc_preprocess_defines': [ |
288 '<@(linker_gcc_preprocess_defines)', | 288 '<@(linker_gcc_preprocess_defines)', |
289 '<@(linker_tests_gcc_preprocess_defines)', | 289 '<@(linker_tests_gcc_preprocess_defines)', |
290 ], | 290 ], |
291 }, | 291 }, |
292 'message': 'Creating NativeLibraries.java for <(_target_name).', | 292 'message': 'Creating NativeLibraries.java for <(_target_name)', |
293 'inputs': [ | 293 'inputs': [ |
294 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 294 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
295 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', | 295 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', |
296 '<(native_libraries_template_data_file)', | 296 '<(native_libraries_template_data_file)', |
297 '<(native_libraries_template_version_file)', | 297 '<(native_libraries_template_version_file)', |
298 '<(native_libraries_template)', | 298 '<(native_libraries_template)', |
299 ], | 299 ], |
300 'outputs': [ | 300 'outputs': [ |
301 '<(native_libraries_java_stamp)', | 301 '<(native_libraries_java_stamp)', |
302 ], | 302 ], |
(...skipping 30 matching lines...) Expand all Loading... |
333 }, | 333 }, |
334 'dependencies': [ | 334 'dependencies': [ |
335 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', | 335 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', |
336 ], | 336 ], |
337 'actions': [ | 337 'actions': [ |
338 { | 338 { |
339 'includes': ['../build/android/push_libraries.gypi'], | 339 'includes': ['../build/android/push_libraries.gypi'], |
340 }, | 340 }, |
341 { | 341 { |
342 'action_name': 'create device library symlinks', | 342 'action_name': 'create device library symlinks', |
343 'message': 'Creating links on device for <(_target_name).', | 343 'message': 'Creating links on device for <(_target_name)', |
344 'inputs': [ | 344 'inputs': [ |
345 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 345 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
346 '<(DEPTH)/build/android/gyp/create_device_library_links.py', | 346 '<(DEPTH)/build/android/gyp/create_device_library_links.py', |
347 '<(apk_install_record)', | 347 '<(apk_install_record)', |
348 '<(build_device_config_path)', | 348 '<(build_device_config_path)', |
349 '<(ordered_libraries_file)', | 349 '<(ordered_libraries_file)', |
350 ], | 350 ], |
351 'outputs': [ | 351 'outputs': [ |
352 '<(link_stamp)' | 352 '<(link_stamp)' |
353 ], | 353 ], |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 ], | 677 ], |
678 'input_paths': [ '<(instr_stamp)' ], | 678 'input_paths': [ '<(instr_stamp)' ], |
679 'dex_input_paths': [ '>@(library_dexed_jars_paths)' ], | 679 'dex_input_paths': [ '>@(library_dexed_jars_paths)' ], |
680 'dex_generated_input_dirs': [ '<(classes_final_dir)' ], | 680 'dex_generated_input_dirs': [ '<(classes_final_dir)' ], |
681 'output_path': '<(dex_path)', | 681 'output_path': '<(dex_path)', |
682 }, | 682 }, |
683 'includes': [ 'android/dex_action.gypi' ], | 683 'includes': [ 'android/dex_action.gypi' ], |
684 }, | 684 }, |
685 { | 685 { |
686 'action_name': 'ant package resources', | 686 'action_name': 'ant package resources', |
687 'message': 'Packaging resources for <(_target_name) APK.', | 687 'message': 'Packaging resources for <(_target_name) APK', |
688 'inputs': [ | 688 'inputs': [ |
689 '<(DEPTH)/build/android/ant/apk-package-resources.xml', | 689 '<(DEPTH)/build/android/ant/apk-package-resources.xml', |
690 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 690 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
691 '<(DEPTH)/build/android/gyp/ant.py', | 691 '<(DEPTH)/build/android/gyp/ant.py', |
692 '<(android_manifest_path)', | 692 '<(android_manifest_path)', |
693 '<(codegen_stamp)', | 693 '<(codegen_stamp)', |
694 | 694 |
695 '>@(library_manifest_paths)', | 695 '>@(library_manifest_paths)', |
696 '>@(additional_input_paths)', | 696 '>@(additional_input_paths)', |
697 ], | 697 ], |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 '<(DEPTH)/build/android/ant/apk-package-resources.xml', | 730 '<(DEPTH)/build/android/ant/apk-package-resources.xml', |
731 | 731 |
732 # Add list of inputs to the command line, so if inputs change | 732 # Add list of inputs to the command line, so if inputs change |
733 # (e.g. if a Java file is removed), the command will be re-run. | 733 # (e.g. if a Java file is removed), the command will be re-run. |
734 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 734 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
735 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 735 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
736 ] | 736 ] |
737 }, | 737 }, |
738 { | 738 { |
739 'action_name': 'ant_package_<(_target_name)', | 739 'action_name': 'ant_package_<(_target_name)', |
740 'message': 'Packaging <(_target_name).', | 740 'message': 'Packaging <(_target_name)', |
741 'inputs': [ | 741 'inputs': [ |
742 '<(DEPTH)/build/android/ant/apk-package.xml', | 742 '<(DEPTH)/build/android/ant/apk-package.xml', |
743 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 743 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
744 '<(DEPTH)/build/android/gyp/ant.py', | 744 '<(DEPTH)/build/android/gyp/ant.py', |
745 '<(dex_path)', | 745 '<(dex_path)', |
746 '<(codegen_stamp)', | 746 '<(codegen_stamp)', |
747 '<(obfuscate_stamp)', | 747 '<(obfuscate_stamp)', |
748 '<(package_resources_stamp)', | 748 '<(package_resources_stamp)', |
749 '>@(package_input_paths)', | 749 '>@(package_input_paths)', |
750 ], | 750 ], |
(...skipping 19 matching lines...) Expand all Loading... |
770 '<(DEPTH)/build/android/ant/apk-package.xml', | 770 '<(DEPTH)/build/android/ant/apk-package.xml', |
771 | 771 |
772 # Add list of inputs to the command line, so if inputs change | 772 # Add list of inputs to the command line, so if inputs change |
773 # (e.g. if a Java file is removed), the command will be re-run. | 773 # (e.g. if a Java file is removed), the command will be re-run. |
774 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 774 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
775 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 775 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
776 ] | 776 ] |
777 }, | 777 }, |
778 ], | 778 ], |
779 } | 779 } |
OLD | NEW |