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

Side by Side Diff: build/android/dex_action.gypi

Issue 1408383002: Add flag to enable proguard for debug build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | build/android/gyp/apk_obfuscate.py » ('j') | build/java_apk.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 an action to provide a rule that dexes 5 # This file is meant to be included into an action to provide a rule that dexes
6 # compiled java files. If proguard_enabled == "true" and CONFIGURATION_NAME == 6 # compiled java files. If proguard_enabled == "true" and CONFIGURATION_NAME ==
7 # "Release", then it will dex the proguard_enabled_input_path instead of the 7 # "Release", then it will dex the proguard_enabled_input_path instead of the
8 # normal dex_input_paths/dex_generated_input_paths. 8 # normal dex_input_paths/dex_generated_input_paths.
9 # 9 #
10 # To use this, create a gyp target with the following form: 10 # To use this, create a gyp target with the following form:
(...skipping 12 matching lines...) Expand all
23 # ], 23 # ],
24 # }, 24 # },
25 # 25 #
26 26
27 { 27 {
28 'message': 'Creating dex file: <(output_path)', 28 'message': 'Creating dex file: <(output_path)',
29 'variables': { 29 'variables': {
30 'dex_input_paths': [], 30 'dex_input_paths': [],
31 'dex_generated_input_dirs': [], 31 'dex_generated_input_dirs': [],
32 'proguard_enabled%': 'false', 32 'proguard_enabled%': 'false',
33 'debug_build_proguard_enabled%': 'false',
jbudorick 2015/10/19 19:52:15 nit: Please TODO me to remove this once I've finis
michaelbai 2015/10/19 21:09:57 Done.
33 'proguard_enabled_input_path%': '', 34 'proguard_enabled_input_path%': '',
34 'dex_no_locals%': 0, 35 'dex_no_locals%': 0,
35 'dex_additional_options': [], 36 'dex_additional_options': [],
36 }, 37 },
37 'inputs': [ 38 'inputs': [
38 '<(DEPTH)/build/android/gyp/util/build_utils.py', 39 '<(DEPTH)/build/android/gyp/util/build_utils.py',
39 '<(DEPTH)/build/android/gyp/util/md5_check.py', 40 '<(DEPTH)/build/android/gyp/util/md5_check.py',
40 '<(DEPTH)/build/android/gyp/dex.py', 41 '<(DEPTH)/build/android/gyp/dex.py',
41 '>@(dex_input_paths)', 42 '>@(dex_input_paths)',
42 ], 43 ],
43 'outputs': [ 44 'outputs': [
44 '<(output_path)', 45 '<(output_path)',
45 '<(output_path).inputs', 46 '<(output_path).inputs',
46 ], 47 ],
47 'action': [ 48 'action': [
48 'python', '<(DEPTH)/build/android/gyp/dex.py', 49 'python', '<(DEPTH)/build/android/gyp/dex.py',
49 '--dex-path=<(output_path)', 50 '--dex-path=<(output_path)',
50 '--android-sdk-tools=<(android_sdk_tools)', 51 '--android-sdk-tools=<(android_sdk_tools)',
51 '--output-directory=<(PRODUCT_DIR)', 52 '--output-directory=<(PRODUCT_DIR)',
52 '--configuration-name=<(CONFIGURATION_NAME)', 53 '--configuration-name=<(CONFIGURATION_NAME)',
53 '--proguard-enabled=>(proguard_enabled)', 54 '--proguard-enabled=>(proguard_enabled)',
55 '--debug-build-proguard-enabled=>(debug_build_proguard_enabled)',
54 '--proguard-enabled-input-path=<(proguard_enabled_input_path)', 56 '--proguard-enabled-input-path=<(proguard_enabled_input_path)',
55 '--no-locals=>(dex_no_locals)', 57 '--no-locals=>(dex_no_locals)',
56 '>@(dex_additional_options)', 58 '>@(dex_additional_options)',
57 '>@(dex_input_paths)', 59 '>@(dex_input_paths)',
58 '>@(dex_generated_input_dirs)', 60 '>@(dex_generated_input_dirs)',
59 ] 61 ]
60 } 62 }
OLDNEW
« no previous file with comments | « no previous file | build/android/gyp/apk_obfuscate.py » ('j') | build/java_apk.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698