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.
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.
8 # To use this, create a gyp target with the following form:
10 # 'action_name': 'some name for the action'
13 # 'jar_path': 'path to jar',
14 # 'output_path': 'output path'
16 # 'includes': [ 'relative/path/to/main_dex_action.gypi' ],
22 'message': 'Generating main dex classes list for <(jar_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',
31 '<(main_dex_list_script)',
32 '<(main_dex_rules_path)',
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)',