Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: unpack_lib_posix.gypi

Issue 295313002: libvpx: Fix generated asm offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « libvpx.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, the library to unpack.
8 # unpack_lib_name, the object file to be extracted. 8 # object_file_output_dir, the output directory of extracted object file.
9 # object_file_to_extract, the object file to be extracted.
9 # 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.
10 # it must be ['-a', 'path_name1', '-a', 'path_name2'...] 11 # it must be ['-a', 'path_name1', '-a', 'path_name2'...]
12 # TODO(fgalligan): Change unpack_lib_posix.sh to expect only one input
13 # library to unpack.
11 # 14 #
12 # For example: 15 # For example:
13 # 'variables': { 16 # 'variables': {
14 # 'unpack_lib_search_path_list': [ 17 # 'unpack_lib_search_path_list': [
15 # '-a', '/a/lib.a', 18 # '-a', '/a/lib.a',
16 # '-a', 'b/lib.a', 19 # '-a', 'b/lib.a',
17 # ], 20 # ],
18 # 'unpack_lib_output_dir':'ouput', 21 # 'object_file_output_dir':'output',
19 # 'unpack_lib_name':'offsets.o' 22 # 'object_file_to_extract':'offsets.o'
20 # }, 23 # },
21 # 'includes': ['unpack_lib_posix.gypi'], 24 # 'includes': ['unpack_lib_posix.gypi'],
22 # 25 #
23 # 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
24 # extracts 'offsets.o' to 'output' directory. 27 # extracts 'offsets.o' to 'output' directory.
25 28
26 { 29 {
27 'actions': [ 30 'actions': [
28 { 31 {
29 'variables' : { 32 'variables' : {
30 'ar_cmd': [], 33 'ar_cmd': [],
31 » 'conditions': [ 34 » 'conditions': [
32 ['android_webview_build==1', { 35 ['android_webview_build==1', {
33 'ar_cmd': ['-r', '$(abspath $($(gyp_var_prefix)TARGET_AR))'], 36 'ar_cmd': ['-r', '$(abspath $($(gyp_var_prefix)TARGET_AR))'],
34 }], 37 }],
35 ], 38 ],
36 }, 39 },
37 'action_name': 'unpack_lib_posix', 40 'action_name': 'unpack_lib_posix',
38 'inputs': [ 41 'inputs': [
39 'unpack_lib_posix.sh', 42 '<(unpack_lib)',
michaelbai 2014/05/24 00:29:10 I believe the unpack_lib_posix.sh should also be h
fgalligan1 2014/05/24 00:48:11 OK I will add this back.
40 ], 43 ],
41 'outputs': [ 44 'outputs': [
42 '<(unpack_lib_output_dir)/<(unpack_lib_name)', 45 '<(object_file_output_dir)/<(object_file_to_extract)',
43 ], 46 ],
44 'action': [ 47 'action': [
45 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh', 48 '<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh',
46 '-d', '<(unpack_lib_output_dir)', 49 '-d', '<(object_file_output_dir)',
47 '-f', '<(unpack_lib_name)', 50 '-f', '<(object_file_to_extract)',
48 '<@(unpack_lib_search_path_list)', 51 '<@(unpack_lib_search_path_list)',
49 '<@(ar_cmd)', 52 '<@(ar_cmd)',
50 ], 53 ],
51 'process_output_as_sources': 1, 54 'process_output_as_sources': 1,
52 }, 55 },
53 ], 56 ],
54 } 57 }
OLDNEW
« no previous file with comments | « libvpx.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698