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

Side by Side Diff: build/java_apk.gypi

Issue 12913017: Support multiple proguard flags from java_apk.gypi. Proguard supports multiple proguard configurati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 'variables': { 53 'variables': {
54 'additional_input_paths': [], 54 'additional_input_paths': [],
55 'input_jars_paths': [], 55 'input_jars_paths': [],
56 'library_dexed_jars_paths': [], 56 'library_dexed_jars_paths': [],
57 'additional_src_dirs': [], 57 'additional_src_dirs': [],
58 'generated_src_dirs': [], 58 'generated_src_dirs': [],
59 'app_manifest_version_name%': '<(android_app_version_name)', 59 'app_manifest_version_name%': '<(android_app_version_name)',
60 'app_manifest_version_code%': '<(android_app_version_code)', 60 'app_manifest_version_code%': '<(android_app_version_code)',
61 'proguard_enabled%': 'false', 61 'proguard_enabled%': 'false',
62 'proguard_flags_path%': '<(DEPTH)/build/android/empty_proguard.flags', 62 'proguard_flags_paths%': ['<(DEPTH)/build/android/empty_proguard.flags'],
63 'native_libs_paths': [], 63 'native_libs_paths': [],
64 'jar_name': 'chromium_apk_<(_target_name).jar', 64 'jar_name': 'chromium_apk_<(_target_name).jar',
65 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', 65 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res',
66 'R_package%':'', 66 'R_package%':'',
67 'additional_res_dirs': [], 67 'additional_res_dirs': [],
68 'additional_res_packages': [], 68 'additional_res_packages': [],
69 'is_test_apk%': 0, 69 'is_test_apk%': 0,
70 'java_strings_grd%': '', 70 'java_strings_grd%': '',
71 'library_manifest_paths' : [], 71 'library_manifest_paths' : [],
72 'resource_input_paths': [], 72 'resource_input_paths': [],
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', 261 '--ignore=>!(echo \'>(_inputs)\' | md5sum)',
262 ] 262 ]
263 }, 263 },
264 { 264 {
265 'action_name': 'ant_obfuscate_<(_target_name)', 265 'action_name': 'ant_obfuscate_<(_target_name)',
266 'message': 'Obfuscating <(_target_name)', 266 'message': 'Obfuscating <(_target_name)',
267 'inputs': [ 267 'inputs': [
268 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', 268 '<(DEPTH)/build/android/ant/apk-obfuscate.xml',
269 '<(DEPTH)/build/android/ant/create-test-jar.js', 269 '<(DEPTH)/build/android/ant/create-test-jar.js',
270 '<(compile_stamp)', 270 '<(compile_stamp)',
271 '<(proguard_flags_path)', 271 '>@(proguard_flags_paths)',
272 ], 272 ],
273 'outputs': [ 273 'outputs': [
274 '<(obfuscate_stamp)', 274 '<(obfuscate_stamp)',
275 ], 275 ],
276 'action': [ 276 'action': [
277 'ant', '-quiet', 277 'ant', '-quiet',
278 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', 278 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
279 '-DANDROID_SDK_JAR=<(android_sdk_jar)', 279 '-DANDROID_SDK_JAR=<(android_sdk_jar)',
280 '-DANDROID_SDK_ROOT=<(android_sdk_root)', 280 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
281 '-DANDROID_SDK_VERSION=<(android_sdk_version)', 281 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
282 '-DAPK_NAME=<(apk_name)', 282 '-DAPK_NAME=<(apk_name)',
283 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js', 283 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js',
284 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', 284 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
285 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', 285 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
286 '-DINPUT_JARS_PATHS=>(input_jars_paths)', 286 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
287 '-DIS_TEST_APK=<(is_test_apk)', 287 '-DIS_TEST_APK=<(is_test_apk)',
288 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)', 288 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)',
289 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)', 289 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)',
290 '-DOUT_DIR=<(intermediate_dir)', 290 '-DOUT_DIR=<(intermediate_dir)',
291 '-DPROGUARD_ENABLED=<(proguard_enabled)', 291 '-DPROGUARD_ENABLED=<(proguard_enabled)',
292 '-DPROGUARD_FLAGS=<(proguard_flags_path)', 292 '-DPROGUARD_FLAGS=<(proguard_flags_paths)',
293 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', 293 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar',
294 294
295 '-DSTAMP=<(obfuscate_stamp)', 295 '-DSTAMP=<(obfuscate_stamp)',
296 '-Dbasedir=.', 296 '-Dbasedir=.',
297 '-buildfile', 297 '-buildfile',
298 '<(DEPTH)/build/android/ant/apk-obfuscate.xml', 298 '<(DEPTH)/build/android/ant/apk-obfuscate.xml',
299 299
300 # Add list of inputs to the command line, so if inputs change 300 # Add list of inputs to the command line, so if inputs change
301 # (e.g. if a Java file is removed), the command will be re-run. 301 # (e.g. if a Java file is removed), the command will be re-run.
302 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 302 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 # Add list of inputs to the command line, so if inputs change 390 # Add list of inputs to the command line, so if inputs change
391 # (e.g. if a Java file is removed), the command will be re-run. 391 # (e.g. if a Java file is removed), the command will be re-run.
392 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 392 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
393 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', 393 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)',
394 394
395 ] 395 ]
396 }, 396 },
397 ], 397 ],
398 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698