| OLD | NEW |
| 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 package prebuilt Java JARs in a consistent manner. | 6 # to package prebuilt Java JARs 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_java', | 10 # 'target_name': 'my-package_java', |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ], | 56 ], |
| 57 }, | 57 }, |
| 58 }, | 58 }, |
| 59 'conditions' : [ | 59 'conditions' : [ |
| 60 ['proguard_preprocess == 1', { | 60 ['proguard_preprocess == 1', { |
| 61 'actions': [ | 61 'actions': [ |
| 62 { | 62 { |
| 63 'action_name': 'proguard_<(_target_name)', | 63 'action_name': 'proguard_<(_target_name)', |
| 64 'message': 'Proguard preprocessing <(_target_name) jar', | 64 'message': 'Proguard preprocessing <(_target_name) jar', |
| 65 'inputs': [ | 65 'inputs': [ |
| 66 '<(android_sdk_root)/tools/proguard/lib/proguard.jar', | 66 '<(DEPTH)/third_party/proguard/lib/proguard.jar', |
| 67 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 67 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 68 '<(DEPTH)/build/android/gyp/proguard.py', | 68 '<(DEPTH)/build/android/gyp/proguard.py', |
| 69 '<(jar_path)', | 69 '<(jar_path)', |
| 70 '<(proguard_config)', | 70 '<(proguard_config)', |
| 71 ], | 71 ], |
| 72 'outputs': [ | 72 'outputs': [ |
| 73 '<(dex_input_jar_path)', | 73 '<(dex_input_jar_path)', |
| 74 ], | 74 ], |
| 75 'action': [ | 75 'action': [ |
| 76 'python', '<(DEPTH)/build/android/gyp/proguard.py', | 76 'python', '<(DEPTH)/build/android/gyp/proguard.py', |
| 77 '--proguard-path=<(android_sdk_root)/tools/proguard/lib/proguard.jar
', | 77 '--proguard-path=<(DEPTH)/third_party/proguard/lib/proguard.jar', |
| 78 '--input-path=<(jar_path)', | 78 '--input-path=<(jar_path)', |
| 79 '--output-path=<(dex_input_jar_path)', | 79 '--output-path=<(dex_input_jar_path)', |
| 80 '--proguard-config=<(proguard_config)', | 80 '--proguard-config=<(proguard_config)', |
| 81 '--classpath=>(input_jars_paths)', | 81 '--classpath=>(input_jars_paths)', |
| 82 ] | 82 ] |
| 83 }, | 83 }, |
| 84 ], | 84 ], |
| 85 }], | 85 }], |
| 86 ['neverlink == 0', { | 86 ['neverlink == 0', { |
| 87 'actions': [ | 87 'actions': [ |
| 88 { | 88 { |
| 89 'action_name': 'dex_<(_target_name)', | 89 'action_name': 'dex_<(_target_name)', |
| 90 'message': 'Dexing <(_target_name) jar', | 90 'message': 'Dexing <(_target_name) jar', |
| 91 'variables': { | 91 'variables': { |
| 92 'dex_input_paths': [ | 92 'dex_input_paths': [ |
| 93 '<(dex_input_jar_path)', | 93 '<(dex_input_jar_path)', |
| 94 ], | 94 ], |
| 95 'output_path': '<(dex_path)', | 95 'output_path': '<(dex_path)', |
| 96 }, | 96 }, |
| 97 'includes': [ 'android/dex_action.gypi' ], | 97 'includes': [ 'android/dex_action.gypi' ], |
| 98 }, | 98 }, |
| 99 ], | 99 ], |
| 100 }], | 100 }], |
| 101 ], | 101 ], |
| 102 } | 102 } |
| OLD | NEW |