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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', | 96 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', |
97 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', | 97 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', |
98 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', | 98 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', |
99 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', | 99 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', |
100 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', | 100 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', |
101 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 101 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
102 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 102 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
103 'lint_result': '<(intermediate_dir)/lint_result.xml', | 103 'lint_result': '<(intermediate_dir)/lint_result.xml', |
104 'lint_config': '<(intermediate_dir)/lint_config.xml', | 104 'lint_config': '<(intermediate_dir)/lint_config.xml', |
105 'never_lint%': 0, | 105 'never_lint%': 0, |
106 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | |
107 'run_findbugs%': 1, | |
106 'java_in_dir_suffix%': '/src', | 108 'java_in_dir_suffix%': '/src', |
107 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 109 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
108 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 110 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
109 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 111 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
110 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', | 112 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', |
111 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 113 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
112 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', | 114 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', |
113 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', | 115 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', |
114 'version_stamp': '<(intermediate_dir)/version.stamp', | 116 'version_stamp': '<(intermediate_dir)/version.stamp', |
115 'javac_includes': [], | 117 'javac_includes': [], |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 'dependencies': [ | 553 'dependencies': [ |
552 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', | 554 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', |
553 ], | 555 ], |
554 }], | 556 }], |
555 ['is_test_apk == 1', { | 557 ['is_test_apk == 1', { |
556 'dependencies': [ | 558 'dependencies': [ |
557 '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_comm ands', | 559 '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_comm ands', |
558 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', | 560 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
559 ] | 561 ] |
560 }], | 562 }], |
563 ['run_findbugs == 1', { | |
564 'actions': [ | |
565 { | |
566 'action_name': 'findbugs_<(_target_name)', | |
567 'message': 'Running findbugs on <(_target_name)', | |
568 'inputs': [ | |
569 '<(DEPTH)/build/android/findbugs_diff.py', | |
570 '<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml', | |
571 '<(DEPTH)/build/android/pylib/utils/findbugs.py', | |
572 '>@(input_jars_paths)', | |
573 '<(jar_path)', | |
574 '<(compile_stamp)', | |
575 ], | |
576 'outputs': [ | |
577 '<(findbugs_stamp)', | |
578 ], | |
579 'action': [ | |
580 'python', '<(DEPTH)/build/android/findbugs_diff.py', | |
jbudorick
2015/03/13 19:30:36
Note that this doesn't work yet for cases in which
cjhopman
2015/03/13 19:42:24
I expect that we can just have empty only_analyze/
| |
581 '--auxclasspath-gyp', '>(input_jars_paths)', | |
582 '--stamp', '<(findbugs_stamp)', | |
583 '<(jar_path)', | |
584 ], | |
585 }, | |
586 ], | |
587 }, | |
588 ] | |
561 ], | 589 ], |
562 'dependencies': [ | 590 'dependencies': [ |
563 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', | 591 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', |
564 ], | 592 ], |
565 'actions': [ | 593 'actions': [ |
566 { | 594 { |
567 'action_name': 'process_resources', | 595 'action_name': 'process_resources', |
568 'message': 'processing resources for <(_target_name)', | 596 'message': 'processing resources for <(_target_name)', |
569 'variables': { | 597 'variables': { |
570 # Write the inputs list to a file, so that its mtime is updated when | 598 # Write the inputs list to a file, so that its mtime is updated when |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
926 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 954 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
927 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 955 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
928 | 956 |
929 '-Dbasedir=.', | 957 '-Dbasedir=.', |
930 '-buildfile', | 958 '-buildfile', |
931 '<(DEPTH)/build/android/ant/apk-package.xml', | 959 '<(DEPTH)/build/android/ant/apk-package.xml', |
932 ] | 960 ] |
933 }, | 961 }, |
934 ], | 962 ], |
935 } | 963 } |
OLD | NEW |