OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 action takes an archive (.a) file and unpacks it unto object (.o) files. | 5 # This action takes an archive (.a) file and unpacks it unto object (.o) files. |
6 # The following input gyp variables are required: | 6 # The following input gyp variables are required: |
7 # unpack_lib, the library to unpack. | 7 # unpack_lib, the library to unpack. |
8 # object_file_output_dir, the output directory of extracted object file. | 8 # object_file_output_dir, the output directory of extracted object file. |
9 # object_file_to_extract, the object file to be extracted. | 9 # object_file_to_extract, the object file to be extracted. |
10 # unpack_lib_search_path_list, a list of paths to search for the library. | 10 # unpack_lib_search_path_list, a list of paths to search for the library. |
(...skipping 13 matching lines...) Expand all Loading... |
24 # 'includes': ['unpack_lib_posix.gypi'], | 24 # 'includes': ['unpack_lib_posix.gypi'], |
25 # | 25 # |
26 # It unpacks the first existing library in 'unpack_lib_search_path_list', and | 26 # It unpacks the first existing library in 'unpack_lib_search_path_list', and |
27 # extracts 'offsets.o' to 'output' directory. | 27 # extracts 'offsets.o' to 'output' directory. |
28 | 28 |
29 { | 29 { |
30 'actions': [ | 30 'actions': [ |
31 { | 31 { |
32 'variables' : { | 32 'variables' : { |
33 'ar_cmd': [], | 33 'ar_cmd': [], |
34 » 'conditions': [ | 34 'conditions': [ |
35 ['android_webview_build==1', { | 35 ['android_webview_build==1', { |
36 'ar_cmd': ['-r', '$(abspath $($(gyp_var_prefix)TARGET_AR))'], | 36 'ar_cmd': ['-r', '$(abspath $($(gyp_var_prefix)TARGET_AR))'], |
37 }], | 37 }], |
38 ], | 38 ], |
39 }, | 39 }, |
40 'action_name': 'unpack_lib_posix', | 40 'action_name': 'unpack_lib_posix', |
41 'inputs': [ | 41 'inputs': [ |
42 'unpack_lib_posix.sh', | 42 'unpack_lib_posix.sh', |
43 '<(unpack_lib)', | 43 '<(unpack_lib)', |
44 ], | 44 ], |
45 'outputs': [ | 45 'outputs': [ |
46 '<(object_file_output_dir)/<(object_file_to_extract)', | 46 '<(object_file_output_dir)/<(object_file_to_extract)', |
47 ], | 47 ], |
48 'action': [ | 48 'action': [ |
49 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', | 49 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', |
50 '-d', '<(object_file_output_dir)', | 50 '-d', '<(object_file_output_dir)', |
51 '-f', '<(object_file_to_extract)', | 51 '-f', '<(object_file_to_extract)', |
52 '<@(unpack_lib_search_path_list)', | 52 '<@(unpack_lib_search_path_list)', |
53 '<@(ar_cmd)', | 53 '<@(ar_cmd)', |
54 ], | 54 ], |
55 'process_output_as_sources': 1, | 55 'process_output_as_sources': 1, |
56 }, | 56 }, |
57 ], | 57 ], |
58 } | 58 } |
OLD | NEW |