Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: build/java_apk.gypi

Issue 86313004: [Android] Add lint as a gyp action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 # By default, the package given in AndroidManifest.xml will be used. 46 # By default, the package given in AndroidManifest.xml will be used.
47 # java_strings_grd - The name of the grd file from which to generate localized 47 # java_strings_grd - The name of the grd file from which to generate localized
48 # strings.xml files, if any. 48 # strings.xml files, if any.
49 # library_manifest_paths'- Paths to additional AndroidManifest.xml files from 49 # library_manifest_paths'- Paths to additional AndroidManifest.xml files from
50 # libraries. 50 # libraries.
51 # use_content_linker - Enable the content dynamic linker that allows sharing th e 51 # use_content_linker - Enable the content dynamic linker that allows sharing th e
52 # RELRO section of the native libraries between the different processes. 52 # RELRO section of the native libraries between the different processes.
53 # enable_content_linker_tests - Enable the content dynamic linker test support 53 # enable_content_linker_tests - Enable the content dynamic linker test support
54 # code. This allows a test APK to inject a Linker.TestRunner instance at 54 # code. This allows a test APK to inject a Linker.TestRunner instance at
55 # runtime. Should only be used by the content_linker_test_apk target!! 55 # runtime. Should only be used by the content_linker_test_apk target!!
56 # never_lint - Set to 1 to not run lint on this target.
56 { 57 {
57 'variables': { 58 'variables': {
58 'additional_input_paths': [], 59 'additional_input_paths': [],
59 'input_jars_paths': [], 60 'input_jars_paths': [],
60 'library_dexed_jars_paths': [], 61 'library_dexed_jars_paths': [],
61 'additional_src_dirs': [], 62 'additional_src_dirs': [],
62 'generated_src_dirs': [], 63 'generated_src_dirs': [],
63 'app_manifest_version_name%': '<(android_app_version_name)', 64 'app_manifest_version_name%': '<(android_app_version_name)',
64 'app_manifest_version_code%': '<(android_app_version_code)', 65 'app_manifest_version_code%': '<(android_app_version_code)',
65 'proguard_enabled%': 'false', 66 'proguard_enabled%': 'false',
(...skipping 18 matching lines...) Expand all
84 # nativelibraries template should be moved out of content/ (to base/?). 85 # nativelibraries template should be moved out of content/ (to base/?).
85 # http://crbug.com/225101 86 # http://crbug.com/225101
86 'native_libraries_template': '<(DEPTH)/content/public/android/java/templates /NativeLibraries.template', 87 'native_libraries_template': '<(DEPTH)/content/public/android/java/templates /NativeLibraries.template',
87 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', 88 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/',
88 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', 89 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java',
89 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', 90 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp',
90 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', 91 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ',
91 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', 92 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h',
92 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', 93 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h',
93 'compile_stamp': '<(intermediate_dir)/compile.stamp', 94 'compile_stamp': '<(intermediate_dir)/compile.stamp',
95 'lint_stamp': '<(intermediate_dir)/lint.stamp',
96 'lint_result': '<(intermediate_dir)/lint_result.xml',
97 'lint_config': '<(intermediate_dir)/lint_config.xml',
98 'never_lint%': 0,
94 'instr_stamp': '<(intermediate_dir)/instr.stamp', 99 'instr_stamp': '<(intermediate_dir)/instr.stamp',
95 'jar_stamp': '<(intermediate_dir)/jar.stamp', 100 'jar_stamp': '<(intermediate_dir)/jar.stamp',
96 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', 101 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp',
97 'strip_stamp': '<(intermediate_dir)/strip.stamp', 102 'strip_stamp': '<(intermediate_dir)/strip.stamp',
98 'classes_dir': '<(intermediate_dir)/classes', 103 'classes_dir': '<(intermediate_dir)/classes',
99 'classes_final_dir': '<(intermediate_dir)/classes_instr', 104 'classes_final_dir': '<(intermediate_dir)/classes_instr',
100 'javac_includes': [], 105 'javac_includes': [],
101 'jar_excluded_classes': [], 106 'jar_excluded_classes': [],
102 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 107 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
103 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', 108 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar',
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 '--src-dirs=>(all_src_dirs)', 550 '--src-dirs=>(all_src_dirs)',
546 '--javac-includes=<(javac_includes)', 551 '--javac-includes=<(javac_includes)',
547 '--chromium-code=<(chromium_code)', 552 '--chromium-code=<(chromium_code)',
548 '--stamp=<(compile_stamp)', 553 '--stamp=<(compile_stamp)',
549 554
550 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja . 555 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja .
551 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', 556 '--ignore=>!(echo \'>(_inputs)\' | md5sum)',
552 ], 557 ],
553 }, 558 },
554 { 559 {
560 'variables': {
561 'src_dirs': [
562 '<(java_in_dir)/src',
563 '>@(additional_src_dirs)',
564 ],
565 'stamp_path': '<(lint_stamp)',
566 'result_path': '<(lint_result)',
567 'config_path': '<(lint_config)',
568 },
569 'inputs': [
570 '<(compile_stamp)',
571 ],
572 'outputs': [
573 '<(lint_stamp)',
574 ],
575 'includes': [ 'android/lint_action.gypi' ],
576 },
577 {
555 'action_name': 'instr_classes_<(_target_name)', 578 'action_name': 'instr_classes_<(_target_name)',
556 'message': 'Instrumenting <(_target_name) classes', 579 'message': 'Instrumenting <(_target_name) classes',
557 'variables': { 580 'variables': {
558 'input_path': '<(classes_dir)', 581 'input_path': '<(classes_dir)',
559 'output_path': '<(classes_final_dir)', 582 'output_path': '<(classes_final_dir)',
560 'stamp_path': '<(instr_stamp)', 583 'stamp_path': '<(instr_stamp)',
561 'instr_type': 'classes', 584 'instr_type': 'classes',
562 }, 585 },
586 'inputs': [
587 '<(compile_stamp)',
588 ],
563 'outputs': [ 589 'outputs': [
564 '<(instr_stamp)', 590 '<(instr_stamp)',
565 ], 591 ],
566 'inputs': [
567 '<(compile_stamp)',
568 ],
569 'includes': [ 'android/instr_action.gypi' ], 592 'includes': [ 'android/instr_action.gypi' ],
570 }, 593 },
571 { 594 {
572 'action_name': 'jar_<(_target_name)', 595 'action_name': 'jar_<(_target_name)',
573 'message': 'Creating <(_target_name) jar', 596 'message': 'Creating <(_target_name) jar',
574 'inputs': [ 597 'inputs': [
575 '<(instr_stamp)', 598 '<(instr_stamp)',
576 '<(DEPTH)/build/android/gyp/util/build_utils.py', 599 '<(DEPTH)/build/android/gyp/util/build_utils.py',
577 '<(DEPTH)/build/android/gyp/util/md5_check.py', 600 '<(DEPTH)/build/android/gyp/util/md5_check.py',
578 '<(DEPTH)/build/android/gyp/jar.py', 601 '<(DEPTH)/build/android/gyp/jar.py',
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 '<(DEPTH)/build/android/ant/apk-package.xml', 770 '<(DEPTH)/build/android/ant/apk-package.xml',
748 771
749 # 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
750 # (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.
751 # 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.
752 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', 775 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)',
753 ] 776 ]
754 }, 777 },
755 ], 778 ],
756 } 779 }
OLDNEW
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698