| 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_output_dir, the output directory of extracted object file | 7 # unpack_lib_output_dir, the output directory of extracted object file |
| 8 # unpack_lib_name, the object file to be extracted. | 8 # unpack_lib_name, the object file to be extracted. |
| 9 # unpack_lib_search_path_list, a list of paths to search for the library. | 9 # unpack_lib_search_path_list, a list of paths to search for the library. |
| 10 # it must be ['-a', 'path_name1', '-a', 'path_name2'...] | 10 # it must be ['-a', 'path_name1', '-a', 'path_name2'...] |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 # It unpacks the first existing library in 'unpack_lib_search_path_list', and | 23 # It unpacks the first existing library in 'unpack_lib_search_path_list', and |
| 24 # extracts 'offsets.o' to 'output' directory. | 24 # extracts 'offsets.o' to 'output' directory. |
| 25 | 25 |
| 26 { | 26 { |
| 27 'actions': [ | 27 'actions': [ |
| 28 { | 28 { |
| 29 'variables' : { | 29 'variables' : { |
| 30 'ar_cmd': [], | 30 'ar_cmd': [], |
| 31 'conditions': [ | 31 'conditions': [ |
| 32 ['android_webview_build==1', { | 32 ['android_webview_build==1', { |
| 33 'ar_cmd': ['-r', '<(android_src)/$($(GYP_VAR_PREFIX)TARGET_AR)'], | 33 'ar_cmd': ['-r', '$(realpath $($(GYP_VAR_PREFIX)TARGET_AR))'], |
| 34 }], | 34 }], |
| 35 ], | 35 ], |
| 36 }, | 36 }, |
| 37 'action_name': 'unpack_lib_posix', | 37 'action_name': 'unpack_lib_posix', |
| 38 'inputs': [ | 38 'inputs': [ |
| 39 'unpack_lib_posix.sh', | 39 'unpack_lib_posix.sh', |
| 40 ], | 40 ], |
| 41 'outputs': [ | 41 'outputs': [ |
| 42 '<(unpack_lib_output_dir)/<(unpack_lib_name)', | 42 '<(unpack_lib_output_dir)/<(unpack_lib_name)', |
| 43 ], | 43 ], |
| 44 'action': [ | 44 'action': [ |
| 45 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', | 45 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', |
| 46 '-d', '<(unpack_lib_output_dir)', | 46 '-d', '<(unpack_lib_output_dir)', |
| 47 '-f', '<(unpack_lib_name)', | 47 '-f', '<(unpack_lib_name)', |
| 48 '<@(unpack_lib_search_path_list)', | 48 '<@(unpack_lib_search_path_list)', |
| 49 '<@(ar_cmd)', | 49 '<@(ar_cmd)', |
| 50 ], | 50 ], |
| 51 'process_output_as_sources': 1, | 51 'process_output_as_sources': 1, |
| 52 }, | 52 }, |
| 53 ], | 53 ], |
| 54 } | 54 } |
| OLD | NEW |