Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # This action takes archived .a file and unpack it unto .o files. | |
|
Tom Finegan
2014/01/27 21:56:48
s/archived .a/an archive (.a)/
s/unpack/unpacks/
s
michaelbai
2014/01/27 22:46:35
Done.
| |
| 6 # input gyp variables are: | |
|
Tom Finegan
2014/01/27 21:56:48
Optional or required?
michaelbai
2014/01/27 22:46:35
Done.
| |
| 7 # unpack_lib_output_dir, the output directory of extrated object file | |
|
Tom Finegan
2014/01/27 21:56:48
Ditto on variable name indent comment from last fi
michaelbai
2014/01/27 22:46:35
Done.
| |
| 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. | |
| 10 # it must be ['-a', 'path_name1', '-a', 'path_name2'...] | |
| 11 # | |
| 12 # For example: | |
| 13 # 'variables': { | |
| 14 # 'unpack_lib_search_path_list': [ | |
| 15 # '-a', '/a/lib.a', | |
| 16 # '-a', 'b/lib.a', | |
| 17 # ], | |
| 18 # 'unpack_lib_output_dir':'ouput', | |
| 19 # 'unpack_lib_name':'offsets.o' | |
| 20 # }, | |
| 21 # 'includes': ['unpack_lib_posix.gypi'], | |
| 22 # | |
| 23 # It unpacks the first existing library in 'unpack_lib_search_path_list', and | |
| 24 # extracts 'offsets.o' to 'output' directory. | |
| 25 | |
| 26 { | |
| 27 'actions': [ | |
| 28 { | |
| 29 'action_name': 'unpack_lib_posix', | |
| 30 'inputs': [ | |
| 31 'unpack_lib_posix.sh', | |
| 32 ], | |
| 33 'outputs': [ | |
| 34 '<(unpack_lib_output_dir)/<(unpack_lib_name)', | |
| 35 ], | |
| 36 'action': [ | |
| 37 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', | |
| 38 '-d', '<(unpack_lib_output_dir)', | |
| 39 '-f', '<(unpack_lib_name)', | |
| 40 '<@(unpack_lib_search_path_list)', | |
| 41 ], | |
| 42 'process_output_as_sources': 1, | |
| 43 }, | |
| 44 ], | |
| 45 } | |
| OLD | NEW |