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

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: more Created 6 years, 8 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/android/ant/create-test-jar.js ('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 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)',
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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 '--jar-path=<(jar_path)', 607 '--jar-path=<(jar_path)',
608 '--excluded-classes=<(jar_excluded_classes)', 608 '--excluded-classes=<(jar_excluded_classes)',
609 '--stamp=<(jar_stamp)', 609 '--stamp=<(jar_stamp)',
610 ] 610 ]
611 }, 611 },
612 { 612 {
613 'action_name': 'ant_obfuscate_<(_target_name)', 613 'action_name': 'ant_obfuscate_<(_target_name)',
614 'message': 'Obfuscating <(_target_name)', 614 'message': 'Obfuscating <(_target_name)',
615 'inputs': [ 615 'inputs': [
616 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', 616 '<(DEPTH)/build/android/ant/apk-obfuscate.xml',
617 '<(DEPTH)/build/android/ant/create-test-jar.js',
618 '<(DEPTH)/build/android/gyp/util/build_utils.py', 617 '<(DEPTH)/build/android/gyp/util/build_utils.py',
619 '<(DEPTH)/build/android/gyp/ant.py', 618 '<(DEPTH)/build/android/gyp/ant.py',
620 '<(android_manifest_path)', 619 '<(android_manifest_path)',
621 '>@(proguard_flags_paths)', 620 '>@(proguard_flags_paths)',
622 '<(instr_stamp)', 621 '<(instr_stamp)',
623 ], 622 ],
624 'outputs': [ 623 'outputs': [
625 # This lists obfuscate_stamp instead of obfuscated_jar_path because 624 # This lists obfuscate_stamp instead of obfuscated_jar_path because
626 # ant only writes the latter if the md5 of the inputs changes. 625 # ant only writes the latter if the md5 of the inputs changes.
627 '<(obfuscate_stamp)', 626 '<(obfuscate_stamp)',
628 ], 627 ],
629 'action': [ 628 'action': [
630 'python', '<(DEPTH)/build/android/gyp/ant.py', 629 'python', '<(DEPTH)/build/android/gyp/ant.py',
631 '-quiet', 630 '-quiet',
632 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
633 '-DANDROID_MANIFEST=<(android_manifest_path)', 631 '-DANDROID_MANIFEST=<(android_manifest_path)',
634 '-DANDROID_SDK_JAR=<(android_sdk_jar)', 632 '-DANDROID_SDK_JAR=<(android_sdk_jar)',
635 '-DANDROID_SDK_ROOT=<(android_sdk_root)', 633 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
636 '-DANDROID_SDK_VERSION=<(android_sdk_version)', 634 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
637 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', 635 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
638 '-DAPK_NAME=<(apk_name)', 636 '-DAPK_NAME=<(apk_name)',
639 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js',
640 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', 637 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
641 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
642 '-DINPUT_JARS_PATHS=>(input_jars_paths)', 638 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
643 '-DIS_TEST_APK=<(is_test_apk)', 639 '-DIS_TEST_APK=<(is_test_apk)',
644 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)',
645 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)', 640 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)',
646 '-DOUT_DIR=<(intermediate_dir)', 641 '-DOUT_DIR=<(intermediate_dir)',
647 '-DPROGUARD_ENABLED=<(proguard_enabled)', 642 '-DPROGUARD_ENABLED=<(proguard_enabled)',
648 '-DPROGUARD_FLAGS=<(proguard_flags_paths)', 643 '-DPROGUARD_FLAGS=<(proguard_flags_paths)',
649 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', 644 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar',
650 645
651 '-DSTAMP=<(obfuscate_stamp)', 646 '-DSTAMP=<(obfuscate_stamp)',
652 '-Dbasedir=.', 647 '-Dbasedir=.',
653 '-buildfile', 648 '-buildfile',
654 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', 649 '<(DEPTH)/build/android/ant/apk-obfuscate.xml',
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 '-DEMMA_INSTRUMENT=<(emma_instrument)', 755 '-DEMMA_INSTRUMENT=<(emma_instrument)',
761 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 756 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
762 757
763 '-Dbasedir=.', 758 '-Dbasedir=.',
764 '-buildfile', 759 '-buildfile',
765 '<(DEPTH)/build/android/ant/apk-package.xml', 760 '<(DEPTH)/build/android/ant/apk-package.xml',
766 ] 761 ]
767 }, 762 },
768 ], 763 ],
769 } 764 }
OLDNEW
« no previous file with comments | « build/android/ant/create-test-jar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698