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

Side by Side Diff: obj_int_extract.gypi

Issue 130563008: Refactoring unpack_lib_posix and obj_int_extract. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/libvpx
Patch Set: Address comments Created 6 years, 10 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
OLDNEW
(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 # Rule to extract integer values for each symbol from an object file.
6 # The output file name is the input file name with extension replaced with
7 # asm or h.
8 # The following gyp variables must be set before includes this gypi:
Tom Finegan 2014/01/27 22:57:18 s/includes/including/
michaelbai 2014/01/27 23:09:58 It seemed I missed this one in previous patch
9 # output_format, the output format of integer value.
10 # output_dir, the full path where the output file should be created.
11 #
12 # For example:
13 #
14 # 'sources': ['a.o', 'b.o'],
15 # 'variables': {
16 # 'output_format': 'cheader',
17 # 'output_dir': 'output',
18 # },
19 # 'includes': ['obj_int_extract.gypi'],
20 #
21 # This extracts the symbol from a.o and b.o, and outputs them to a.h and b.h
22 # in output directory.
23 {
24 'variables': {
25 'conditions': [
26 ['os_posix==1', {
27 'asm_obj_extension': 'o',
28 }],
29 ['OS=="win"', {
30 'asm_obj_extension': 'obj',
31 }],
32 ['output_format=="cheader"', {
33 'output_extension': 'h',
34 }, {
35 'output_extension': 'asm',
36 }],
37 ],
38 },
39 'rules': [
40 {
41 'rule_name': 'obj_int_extract',
42 'extension': '<(asm_obj_extension)',
43 'inputs': [
44 '<(PRODUCT_DIR)/libvpx_obj_int_extract',
45 'obj_int_extract.py',
46 ],
47 'outputs': [
48 '<(output_dir)/<(RULE_INPUT_ROOT).<(output_extension)',
49 ],
50 'action': [
51 '<(DEPTH)/third_party/libvpx/obj_int_extract.py',
52 '-e', '<(PRODUCT_DIR)/libvpx_obj_int_extract',
53 '-f', '<(output_format)',
54 '-b', '<(RULE_INPUT_PATH)',
55 '-o', '<(output_dir)/<(RULE_INPUT_ROOT).<(output_extension)',
56 ],
57 'message': 'Generate assembly offsets <(RULE_INPUT_PATH)',
58 },
59 ],
60 }
OLDNEW
« no previous file with comments | « libvpx.gyp ('k') | unpack_lib_posix.gypi » ('j') | unpack_lib_posix.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698