| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 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 'proguard_enabled_input_path%': '', | 33 'proguard_enabled_input_path%': '', |
| 34 'dex_no_locals%': 0, | 34 'dex_no_locals%': 0, |
| 35 'dex_additional_options': [], |
| 35 }, | 36 }, |
| 36 'inputs': [ | 37 'inputs': [ |
| 37 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 38 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 38 '<(DEPTH)/build/android/gyp/util/md5_check.py', | 39 '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 39 '<(DEPTH)/build/android/gyp/dex.py', | 40 '<(DEPTH)/build/android/gyp/dex.py', |
| 40 '>@(dex_input_paths)', | 41 '>@(dex_input_paths)', |
| 41 ], | 42 ], |
| 42 'outputs': [ | 43 'outputs': [ |
| 43 '<(output_path)', | 44 '<(output_path)', |
| 45 '<(output_path).inputs', |
| 44 ], | 46 ], |
| 45 'action': [ | 47 'action': [ |
| 46 'python', '<(DEPTH)/build/android/gyp/dex.py', | 48 'python', '<(DEPTH)/build/android/gyp/dex.py', |
| 47 '--dex-path=<(output_path)', | 49 '--dex-path=<(output_path)', |
| 48 '--android-sdk-tools=<(android_sdk_tools)', | 50 '--android-sdk-tools=<(android_sdk_tools)', |
| 49 '--configuration-name=<(CONFIGURATION_NAME)', | 51 '--configuration-name=<(CONFIGURATION_NAME)', |
| 50 '--proguard-enabled=<(proguard_enabled)', | 52 '--proguard-enabled=<(proguard_enabled)', |
| 51 '--proguard-enabled-input-path=<(proguard_enabled_input_path)', | 53 '--proguard-enabled-input-path=<(proguard_enabled_input_path)', |
| 52 '--no-locals=<(dex_no_locals)', | 54 '--no-locals=>(dex_no_locals)', |
| 55 '>@(dex_additional_options)', |
| 53 '>@(dex_input_paths)', | 56 '>@(dex_input_paths)', |
| 54 '>@(dex_generated_input_dirs)', | 57 '>@(dex_generated_input_dirs)', |
| 55 ] | 58 ] |
| 56 } | 59 } |
| OLD | NEW |