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
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 json file with the list of dependent libraries needed for a given
7 # shared library or executable.
9 # To use this, create a gyp target with the following form:
13 # 'input_libraries': 'shared library or executable to process',
14 # 'ordered_libraries_file': 'file to generate'
16 # 'includes': [ '../../build/android/write_ordered_libraries.gypi' ],
22 'action_name': 'ordered_libraries_<(_target_name)<(subtarget)',
23 'message': 'Writing dependency ordered libraries for <(_target_name)',
25 'input_libraries%': [],
29 '<(DEPTH)/build/android/gyp/util/build_utils.py',
30 '<(DEPTH)/build/android/gyp/write_ordered_libraries.py',
31 '<@(input_libraries)',
34 '<(ordered_libraries_file)',
37 'python', '<(DEPTH)/build/android/gyp/write_ordered_libraries.py',
38 '--input-libraries=<(input_libraries)',
39 '--libraries-dir=<(SHARED_LIB_DIR),<(PRODUCT_DIR)',
40 '--readelf=<(android_readelf)',
41 '--output=<(ordered_libraries_file)',