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

Side by Side Diff: build/java_apk.gypi

Issue 212943003: android: Stop passing defines to apk-obfuscate.xml which it ignores. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 'emma_instrument': '<(emma_instrument)', 146 'emma_instrument': '<(emma_instrument)',
147 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 147 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
148 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 148 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
149 'extra_native_libs': [], 149 'extra_native_libs': [],
150 }, 150 },
151 # Pass the jar path to the apk's "fake" jar target. This would be better as 151 # Pass the jar path to the apk's "fake" jar target. This would be better as
152 # direct_dependent_settings, but a variable set by a direct_dependent_settings 152 # direct_dependent_settings, but a variable set by a direct_dependent_settings
153 # cannot be lifted in a dependent to all_dependent_settings. 153 # cannot be lifted in a dependent to all_dependent_settings.
154 'all_dependent_settings': { 154 'all_dependent_settings': {
155 'variables': { 155 'variables': {
156 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 156 'apk_output_jar_path': '<(jar_path)',
Nico 2014/03/29 04:10:33 (jar_path is set to '<(PRODUCT_DIR)/lib.java/<(jar
157 }, 157 },
158 }, 158 },
159 'conditions': [ 159 'conditions': [
160 ['resource_dir!=""', { 160 ['resource_dir!=""', {
161 'variables': { 161 'variables': {
162 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ] 162 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ]
163 }, 163 },
164 }], 164 }],
165 ['R_package != ""', { 165 ['R_package != ""', {
166 'variables': { 166 'variables': {
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 '<(instr_stamp)', 622 '<(instr_stamp)',
623 ], 623 ],
624 'outputs': [ 624 'outputs': [
625 # This lists obfuscate_stamp instead of obfuscated_jar_path because 625 # This lists obfuscate_stamp instead of obfuscated_jar_path because
626 # ant only writes the latter if the md5 of the inputs changes. 626 # ant only writes the latter if the md5 of the inputs changes.
627 '<(obfuscate_stamp)', 627 '<(obfuscate_stamp)',
628 ], 628 ],
629 'action': [ 629 'action': [
630 'python', '<(DEPTH)/build/android/gyp/ant.py', 630 'python', '<(DEPTH)/build/android/gyp/ant.py',
631 '-quiet', 631 '-quiet',
632 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
633 '-DANDROID_MANIFEST=<(android_manifest_path)', 632 '-DANDROID_MANIFEST=<(android_manifest_path)',
634 '-DANDROID_SDK_JAR=<(android_sdk_jar)', 633 '-DANDROID_SDK_JAR=<(android_sdk_jar)',
635 '-DANDROID_SDK_ROOT=<(android_sdk_root)', 634 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
636 '-DANDROID_SDK_VERSION=<(android_sdk_version)', 635 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
637 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', 636 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
638 '-DAPK_NAME=<(apk_name)', 637 '-DAPK_NAME=<(apk_name)',
639 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js',
640 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', 638 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
641 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
642 '-DINPUT_JARS_PATHS=>(input_jars_paths)', 639 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
643 '-DIS_TEST_APK=<(is_test_apk)', 640 '-DIS_TEST_APK=<(is_test_apk)',
644 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)',
645 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)', 641 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)',
646 '-DOUT_DIR=<(intermediate_dir)', 642 '-DOUT_DIR=<(intermediate_dir)',
647 '-DPROGUARD_ENABLED=<(proguard_enabled)', 643 '-DPROGUARD_ENABLED=<(proguard_enabled)',
648 '-DPROGUARD_FLAGS=<(proguard_flags_paths)', 644 '-DPROGUARD_FLAGS=<(proguard_flags_paths)',
649 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', 645 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar',
650 646
651 '-DSTAMP=<(obfuscate_stamp)', 647 '-DSTAMP=<(obfuscate_stamp)',
652 '-Dbasedir=.', 648 '-Dbasedir=.',
653 '-buildfile', 649 '-buildfile',
654 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', 650 '<(DEPTH)/build/android/ant/apk-obfuscate.xml',
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 '-DEMMA_INSTRUMENT=<(emma_instrument)', 756 '-DEMMA_INSTRUMENT=<(emma_instrument)',
761 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 757 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
762 758
763 '-Dbasedir=.', 759 '-Dbasedir=.',
764 '-buildfile', 760 '-buildfile',
765 '<(DEPTH)/build/android/ant/apk-package.xml', 761 '<(DEPTH)/build/android/ant/apk-package.xml',
766 ] 762 ]
767 }, 763 },
768 ], 764 ],
769 } 765 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698