OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This file is meant to be included into an action to provide a rule that |
| 6 # generates a list of classes that must be kept in the main dex file. |
| 7 # |
| 8 # To use this, create a gyp target with the following form: |
| 9 # { |
| 10 # 'action_name': 'some name for the action' |
| 11 # 'actions': [ |
| 12 # 'variables': { |
| 13 # 'jar_path': 'path to jar', |
| 14 # 'output_path': 'output path' |
| 15 # }, |
| 16 # 'includes': [ 'relative/path/to/main_dex_action.gypi' ], |
| 17 # ], |
| 18 # }, |
| 19 # |
| 20 |
| 21 { |
| 22 'message': 'Generating main dex classes list for <(jar_path)', |
| 23 'variables': { |
| 24 'jar_path%': '', |
| 25 'output_path%': '', |
| 26 'main_dex_list_script': '<(DEPTH)/build/android/gyp/main_dex_list.py', |
| 27 'main_dex_rules_path': '<(DEPTH)/build/android/main_dex_classes.flags', |
| 28 }, |
| 29 'inputs': [ |
| 30 '<(jar_path)', |
| 31 '<(main_dex_list_script)', |
| 32 '<(main_dex_rules_path)', |
| 33 ], |
| 34 'outputs': [ |
| 35 '<(output_path)', |
| 36 ], |
| 37 'action': [ |
| 38 'python', '<(main_dex_list_script)', |
| 39 '--main-dex-list-path', '<(output_path)', |
| 40 '--android-sdk-tools', '<(android_sdk_tools)', |
| 41 '--main-dex-rules-path', '<(main_dex_rules_path)', |
| 42 '<(jar_path)', |
| 43 ] |
| 44 } |
OLD | NEW |