Revert of Remove OneClickSigninHelper since it is no longer used. (patchset #5 id...
[chromium-blink-merge.git] / build / android / write_ordered_libraries.gypi
blob1b52e71e4231cb33503188b69a25312fef6f4486
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:
10 #  {
11 #    'actions': [
12 #      'variables': {
13 #        'input_libraries': 'shared library or executable to process',
14 #        'ordered_libraries_file': 'file to generate'
15 #      },
16 #      'includes': [ '../../build/android/write_ordered_libraries.gypi' ],
17 #    ],
18 #  },
22   'action_name': 'ordered_libraries_<(_target_name)<(subtarget)',
23   'message': 'Writing dependency ordered libraries for <(_target_name)',
24   'variables': {
25     'input_libraries%': [],
26     'subtarget%': '',
27   },
28   'inputs': [
29     '<(DEPTH)/build/android/gyp/util/build_utils.py',
30     '<(DEPTH)/build/android/gyp/write_ordered_libraries.py',
31     '<@(input_libraries)',
32   ],
33   'outputs': [
34     '<(ordered_libraries_file)',
35   ],
36   'action': [
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)',
42   ],