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

Side by Side Diff: build/java_apk.gypi

Issue 477903003: Make the WebView apk build in the Chrome tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change package_name Created 6 years, 4 months 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
« android_webview/android_webview_glue.gypi ('K') | « build/all.gyp ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 # use_chromium_linker - Enable the content dynamic linker that allows sharing t he 49 # use_chromium_linker - Enable the content dynamic linker that allows sharing t he
50 # RELRO section of the native libraries between the different processes. 50 # RELRO section of the native libraries between the different processes.
51 # load_library_from_zip_file - When using the dynamic linker, load the library 51 # load_library_from_zip_file - When using the dynamic linker, load the library
52 # directly out of the zip file. 52 # directly out of the zip file.
53 # use_relocation_packer - Enable relocation packing. Relies on the chromium 53 # use_relocation_packer - Enable relocation packing. Relies on the chromium
54 # linker, so use_chromium_linker must also be enabled. 54 # linker, so use_chromium_linker must also be enabled.
55 # enable_chromium_linker_tests - Enable the content dynamic linker test support 55 # enable_chromium_linker_tests - Enable the content dynamic linker test support
56 # code. This allows a test APK to inject a Linker.TestRunner instance at 56 # code. This allows a test APK to inject a Linker.TestRunner instance at
57 # runtime. Should only be used by the chromium_linker_test_apk target!! 57 # runtime. Should only be used by the chromium_linker_test_apk target!!
58 # never_lint - Set to 1 to not run lint on this target. 58 # never_lint - Set to 1 to not run lint on this target.
59 # java_in_dir_suffix - To override the /src suffix on java_in_dir.
59 { 60 {
60 'variables': { 61 'variables': {
61 'tested_apk_obfuscated_jar_path%': '/', 62 'tested_apk_obfuscated_jar_path%': '/',
62 'tested_apk_dex_path%': '/', 63 'tested_apk_dex_path%': '/',
63 'additional_input_paths': [], 64 'additional_input_paths': [],
64 'input_jars_paths': [], 65 'input_jars_paths': [],
65 'library_dexed_jars_paths': [], 66 'library_dexed_jars_paths': [],
66 'additional_src_dirs': [], 67 'additional_src_dirs': [],
67 'generated_src_dirs': [], 68 'generated_src_dirs': [],
68 'app_manifest_version_name%': '<(android_app_version_name)', 69 'app_manifest_version_name%': '<(android_app_version_name)',
(...skipping 23 matching lines...) Expand all
92 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', 93 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java',
93 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', 94 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp',
94 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', 95 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ',
95 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', 96 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h',
96 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', 97 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h',
97 'compile_stamp': '<(intermediate_dir)/compile.stamp', 98 'compile_stamp': '<(intermediate_dir)/compile.stamp',
98 'lint_stamp': '<(intermediate_dir)/lint.stamp', 99 'lint_stamp': '<(intermediate_dir)/lint.stamp',
99 'lint_result': '<(intermediate_dir)/lint_result.xml', 100 'lint_result': '<(intermediate_dir)/lint_result.xml',
100 'lint_config': '<(intermediate_dir)/lint_config.xml', 101 'lint_config': '<(intermediate_dir)/lint_config.xml',
101 'never_lint%': 0, 102 'never_lint%': 0,
103 'java_in_dir_suffix%': '/src',
102 'instr_stamp': '<(intermediate_dir)/instr.stamp', 104 'instr_stamp': '<(intermediate_dir)/instr.stamp',
103 'jar_stamp': '<(intermediate_dir)/jar.stamp', 105 'jar_stamp': '<(intermediate_dir)/jar.stamp',
104 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', 106 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp',
105 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', 107 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p',
106 'strip_stamp': '<(intermediate_dir)/strip.stamp', 108 'strip_stamp': '<(intermediate_dir)/strip.stamp',
107 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', 109 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries',
108 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', 110 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp',
109 'javac_includes': [], 111 'javac_includes': [],
110 'jar_excluded_classes': [], 112 'jar_excluded_classes': [],
111 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', 113 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar',
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 # If there is a separate find for additional_src_dirs, it will find the 619 # If there is a separate find for additional_src_dirs, it will find the
618 # wrong .java files when additional_src_dirs is empty. 620 # wrong .java files when additional_src_dirs is empty.
619 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and 621 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and
620 # java_apk.gypi evaluate the same command, and at the moment two targets 622 # java_apk.gypi evaluate the same command, and at the moment two targets
621 # set java_in_dir to "java". Add a dummy comment here to make sure 623 # set java_in_dir to "java". Add a dummy comment here to make sure
622 # that the two targets (one uses java.gypi, the other java_apk.gypi) 624 # that the two targets (one uses java.gypi, the other java_apk.gypi)
623 # get distinct source lists. Medium-term, make targets list all their 625 # get distinct source lists. Medium-term, make targets list all their
624 # Java files instead of using find. (As is, this will be broken if two 626 # Java files instead of using find. (As is, this will be broken if two
625 # targets use the same java_in_dir and both use java_apk.gypi or 627 # targets use the same java_in_dir and both use java_apk.gypi or
626 # both use java.gypi.) 628 # both use java.gypi.)
627 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java" # apk)'], 629 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio nal_src_dirs) -name "*.java" # apk)'],
628 630
629 }, 631 },
630 'inputs': [ 632 'inputs': [
631 '<(DEPTH)/build/android/gyp/util/build_utils.py', 633 '<(DEPTH)/build/android/gyp/util/build_utils.py',
632 '<(DEPTH)/build/android/gyp/javac.py', 634 '<(DEPTH)/build/android/gyp/javac.py',
633 '>@(java_sources)', 635 '>@(java_sources)',
634 '>@(input_jars_paths)', 636 '>@(input_jars_paths)',
635 '<(codegen_stamp)', 637 '<(codegen_stamp)',
636 ], 638 ],
637 'conditions': [ 639 'conditions': [
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 '<(jar_path)', 671 '<(jar_path)',
670 ], 672 ],
671 'inputs': [ 673 'inputs': [
672 '<(javac_jar_path)', 674 '<(javac_jar_path)',
673 ], 675 ],
674 'includes': [ 'android/instr_action.gypi' ], 676 'includes': [ 'android/instr_action.gypi' ],
675 }, 677 },
676 { 678 {
677 'variables': { 679 'variables': {
678 'src_dirs': [ 680 'src_dirs': [
679 '<(java_in_dir)/src', 681 '<(java_in_dir)<(java_in_dir_suffix)',
680 '>@(additional_src_dirs)', 682 '>@(additional_src_dirs)',
681 ], 683 ],
682 'lint_jar_path': '<(jar_path)', 684 'lint_jar_path': '<(jar_path)',
683 'stamp_path': '<(lint_stamp)', 685 'stamp_path': '<(lint_stamp)',
684 'result_path': '<(lint_result)', 686 'result_path': '<(lint_result)',
685 'config_path': '<(lint_config)', 687 'config_path': '<(lint_config)',
686 }, 688 },
687 'outputs': [ 689 'outputs': [
688 '<(lint_stamp)', 690 '<(lint_stamp)',
689 ], 691 ],
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 '-DEMMA_INSTRUMENT=<(emma_instrument)', 900 '-DEMMA_INSTRUMENT=<(emma_instrument)',
899 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 901 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
900 902
901 '-Dbasedir=.', 903 '-Dbasedir=.',
902 '-buildfile', 904 '-buildfile',
903 '<(DEPTH)/build/android/ant/apk-package.xml', 905 '<(DEPTH)/build/android/ant/apk-package.xml',
904 ] 906 ]
905 }, 907 },
906 ], 908 ],
907 } 909 }
OLDNEW
« android_webview/android_webview_glue.gypi ('K') | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698