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

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: Update DEPS Created 6 years, 3 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
« no previous file with comments | « build/all.gyp ('k') | third_party/android_webview_glue/LICENSE » ('j') | 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.
60 # app_manifest_version_name - set the apps 'human readable' version number.
61 # app_manifest_version_code - set the apps version number.
59 { 62 {
60 'variables': { 63 'variables': {
61 'tested_apk_obfuscated_jar_path%': '/', 64 'tested_apk_obfuscated_jar_path%': '/',
62 'tested_apk_dex_path%': '/', 65 'tested_apk_dex_path%': '/',
63 'additional_input_paths': [], 66 'additional_input_paths': [],
64 'input_jars_paths': [], 67 'input_jars_paths': [],
65 'library_dexed_jars_paths': [], 68 'library_dexed_jars_paths': [],
66 'additional_src_dirs': [], 69 'additional_src_dirs': [],
67 'generated_src_dirs': [], 70 'generated_src_dirs': [],
68 'app_manifest_version_name%': '<(android_app_version_name)', 71 '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', 95 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java',
93 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', 96 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp',
94 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', 97 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ',
95 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', 98 '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', 99 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h',
97 'compile_stamp': '<(intermediate_dir)/compile.stamp', 100 'compile_stamp': '<(intermediate_dir)/compile.stamp',
98 'lint_stamp': '<(intermediate_dir)/lint.stamp', 101 'lint_stamp': '<(intermediate_dir)/lint.stamp',
99 'lint_result': '<(intermediate_dir)/lint_result.xml', 102 'lint_result': '<(intermediate_dir)/lint_result.xml',
100 'lint_config': '<(intermediate_dir)/lint_config.xml', 103 'lint_config': '<(intermediate_dir)/lint_config.xml',
101 'never_lint%': 0, 104 'never_lint%': 0,
105 'java_in_dir_suffix%': '/src',
102 'instr_stamp': '<(intermediate_dir)/instr.stamp', 106 'instr_stamp': '<(intermediate_dir)/instr.stamp',
103 'jar_stamp': '<(intermediate_dir)/jar.stamp', 107 'jar_stamp': '<(intermediate_dir)/jar.stamp',
104 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', 108 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp',
105 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', 109 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p',
106 'strip_stamp': '<(intermediate_dir)/strip.stamp', 110 'strip_stamp': '<(intermediate_dir)/strip.stamp',
107 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', 111 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries',
108 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', 112 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp',
109 'javac_includes': [], 113 'javac_includes': [],
110 'jar_excluded_classes': [], 114 'jar_excluded_classes': [],
111 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', 115 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar',
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 # If there is a separate find for additional_src_dirs, it will find the 602 # If there is a separate find for additional_src_dirs, it will find the
599 # wrong .java files when additional_src_dirs is empty. 603 # wrong .java files when additional_src_dirs is empty.
600 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and 604 # TODO(thakis): Gyp caches >! evaluation by command. Both java.gypi and
601 # java_apk.gypi evaluate the same command, and at the moment two targets 605 # java_apk.gypi evaluate the same command, and at the moment two targets
602 # set java_in_dir to "java". Add a dummy comment here to make sure 606 # set java_in_dir to "java". Add a dummy comment here to make sure
603 # that the two targets (one uses java.gypi, the other java_apk.gypi) 607 # that the two targets (one uses java.gypi, the other java_apk.gypi)
604 # get distinct source lists. Medium-term, make targets list all their 608 # get distinct source lists. Medium-term, make targets list all their
605 # Java files instead of using find. (As is, this will be broken if two 609 # Java files instead of using find. (As is, this will be broken if two
606 # targets use the same java_in_dir and both use java_apk.gypi or 610 # targets use the same java_in_dir and both use java_apk.gypi or
607 # both use java.gypi.) 611 # both use java.gypi.)
608 'java_sources': ['>!@(find >(java_in_dir)/src >(additional_src_dirs) -na me "*.java" # apk)'], 612 'java_sources': ['>!@(find >(java_in_dir)>(java_in_dir_suffix) >(additio nal_src_dirs) -name "*.java" # apk)'],
609 613
610 }, 614 },
611 'inputs': [ 615 'inputs': [
612 '<(DEPTH)/build/android/gyp/util/build_utils.py', 616 '<(DEPTH)/build/android/gyp/util/build_utils.py',
613 '<(DEPTH)/build/android/gyp/javac.py', 617 '<(DEPTH)/build/android/gyp/javac.py',
614 '>@(java_sources)', 618 '>@(java_sources)',
615 '>@(input_jars_paths)', 619 '>@(input_jars_paths)',
616 '<(codegen_stamp)', 620 '<(codegen_stamp)',
617 ], 621 ],
618 'conditions': [ 622 'conditions': [
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 '<(jar_path)', 654 '<(jar_path)',
651 ], 655 ],
652 'inputs': [ 656 'inputs': [
653 '<(javac_jar_path)', 657 '<(javac_jar_path)',
654 ], 658 ],
655 'includes': [ 'android/instr_action.gypi' ], 659 'includes': [ 'android/instr_action.gypi' ],
656 }, 660 },
657 { 661 {
658 'variables': { 662 'variables': {
659 'src_dirs': [ 663 'src_dirs': [
660 '<(java_in_dir)/src', 664 '<(java_in_dir)<(java_in_dir_suffix)',
661 '>@(additional_src_dirs)', 665 '>@(additional_src_dirs)',
662 ], 666 ],
663 'lint_jar_path': '<(jar_path)', 667 'lint_jar_path': '<(jar_path)',
664 'stamp_path': '<(lint_stamp)', 668 'stamp_path': '<(lint_stamp)',
665 'result_path': '<(lint_result)', 669 'result_path': '<(lint_result)',
666 'config_path': '<(lint_config)', 670 'config_path': '<(lint_config)',
667 }, 671 },
668 'outputs': [ 672 'outputs': [
669 '<(lint_stamp)', 673 '<(lint_stamp)',
670 ], 674 ],
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 '-DEMMA_INSTRUMENT=<(emma_instrument)', 883 '-DEMMA_INSTRUMENT=<(emma_instrument)',
880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 884 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
881 885
882 '-Dbasedir=.', 886 '-Dbasedir=.',
883 '-buildfile', 887 '-buildfile',
884 '<(DEPTH)/build/android/ant/apk-package.xml', 888 '<(DEPTH)/build/android/ant/apk-package.xml',
885 ] 889 ]
886 }, 890 },
887 ], 891 ],
888 } 892 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | third_party/android_webview_glue/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698