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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 # nativelibraries template should be moved out of content/ (to base/?). | 84 # nativelibraries template should be moved out of content/ (to base/?). |
85 # http://crbug.com/225101 | 85 # http://crbug.com/225101 |
86 'native_libraries_template': '<(DEPTH)/content/public/android/java/templates
/NativeLibraries.template', | 86 'native_libraries_template': '<(DEPTH)/content/public/android/java/templates
/NativeLibraries.template', |
87 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', | 87 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', |
88 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.
java', | 88 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.
java', |
89 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st
amp', | 89 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st
amp', |
90 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/
', | 90 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/
', |
91 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', | 91 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', |
92 'native_libraries_template_data_stamp': '<(intermediate_dir)/native_librarie
s_template_data.stamp', | 92 'native_libraries_template_data_stamp': '<(intermediate_dir)/native_librarie
s_template_data.stamp', |
93 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 93 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
| 94 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
| 95 'lint_result': '<(intermediate_dir)/lint_result.xml', |
94 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 96 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
95 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 97 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
96 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 98 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
97 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 99 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
98 'classes_dir': '<(intermediate_dir)/classes', | 100 'classes_dir': '<(intermediate_dir)/classes', |
99 'classes_final_dir': '<(intermediate_dir)/classes_instr', | 101 'classes_final_dir': '<(intermediate_dir)/classes_instr', |
100 'javac_includes': [], | 102 'javac_includes': [], |
101 'jar_excluded_classes': [], | 103 'jar_excluded_classes': [], |
102 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', | 104 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', |
103 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', | 105 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 '--src-dirs=>(all_src_dirs)', | 542 '--src-dirs=>(all_src_dirs)', |
541 '--javac-includes=<(javac_includes)', | 543 '--javac-includes=<(javac_includes)', |
542 '--chromium-code=<(chromium_code)', | 544 '--chromium-code=<(chromium_code)', |
543 '--stamp=<(compile_stamp)', | 545 '--stamp=<(compile_stamp)', |
544 | 546 |
545 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. | 547 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja
. |
546 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', | 548 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
547 ], | 549 ], |
548 }, | 550 }, |
549 { | 551 { |
| 552 'variables': { |
| 553 'src_dirs': [ |
| 554 '<(java_in_dir)/src', |
| 555 '>@(additional_src_dirs)', |
| 556 ], |
| 557 'stamp_path': '<(lint_stamp)', |
| 558 'result_path': '<(lint_result)', |
| 559 }, |
| 560 'inputs': [ |
| 561 '<(compile_stamp)', |
| 562 ], |
| 563 'outputs': [ |
| 564 '<(lint_stamp)', |
| 565 ], |
| 566 'includes': [ 'android/lint_action.gypi' ], |
| 567 }, |
| 568 { |
550 'action_name': 'instr_classes_<(_target_name)', | 569 'action_name': 'instr_classes_<(_target_name)', |
551 'message': 'Instrumenting <(_target_name) classes', | 570 'message': 'Instrumenting <(_target_name) classes', |
552 'variables': { | 571 'variables': { |
553 'input_path': '<(classes_dir)', | 572 'input_path': '<(classes_dir)', |
554 'output_path': '<(classes_final_dir)', | 573 'output_path': '<(classes_final_dir)', |
555 'stamp_path': '<(instr_stamp)', | 574 'stamp_path': '<(instr_stamp)', |
556 'instr_type': 'classes', | 575 'instr_type': 'classes', |
557 }, | 576 }, |
| 577 'inputs': [ |
| 578 '<(lint_stamp)', |
| 579 ], |
558 'outputs': [ | 580 'outputs': [ |
559 '<(instr_stamp)', | 581 '<(instr_stamp)', |
560 ], | 582 ], |
561 'inputs': [ | |
562 '<(compile_stamp)', | |
563 ], | |
564 'includes': [ 'android/instr_action.gypi' ], | 583 'includes': [ 'android/instr_action.gypi' ], |
565 }, | 584 }, |
566 { | 585 { |
567 'action_name': 'jar_<(_target_name)', | 586 'action_name': 'jar_<(_target_name)', |
568 'message': 'Creating <(_target_name) jar', | 587 'message': 'Creating <(_target_name) jar', |
569 'inputs': [ | 588 'inputs': [ |
570 '<(instr_stamp)', | 589 '<(instr_stamp)', |
571 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 590 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
572 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 591 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
573 '<(DEPTH)/build/android/gyp/jar.py', | 592 '<(DEPTH)/build/android/gyp/jar.py', |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 '<(DEPTH)/build/android/ant/apk-package.xml', | 761 '<(DEPTH)/build/android/ant/apk-package.xml', |
743 | 762 |
744 # Add list of inputs to the command line, so if inputs change | 763 # Add list of inputs to the command line, so if inputs change |
745 # (e.g. if a Java file is removed), the command will be re-run. | 764 # (e.g. if a Java file is removed), the command will be re-run. |
746 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 765 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
747 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 766 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
748 ] | 767 ] |
749 }, | 768 }, |
750 ], | 769 ], |
751 } | 770 } |
OLD | NEW |