OLD | NEW |
| (Empty) |
1 # Copyright (c) 2010 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 { | |
6 'variables': { | |
7 'openmax_type%': 'stub', | |
8 }, | |
9 'targets': [ | |
10 { | |
11 # OpenMAX IL level of API. | |
12 'target_name': 'il', | |
13 'sources': [ | |
14 'il/OMX_Audio.h', | |
15 'il/OMX_Component.h', | |
16 'il/OMX_ContentPipe.h', | |
17 'il/OMX_Core.h', | |
18 'il/OMX_Image.h', | |
19 'il/OMX_Index.h', | |
20 'il/OMX_IVCommon.h', | |
21 'il/OMX_Other.h', | |
22 'il/OMX_Types.h', | |
23 'il/OMX_Video.h', | |
24 ], | |
25 'direct_dependent_settings': { | |
26 'include_dirs': [ | |
27 'il', | |
28 ], | |
29 'defines': [ | |
30 '__OMX_EXPORTS', | |
31 ], | |
32 }, | |
33 'conditions': [ | |
34 ['OS!="linux"', { | |
35 'type': 'static_library', | |
36 'dependencies': [ | |
37 '../../base/base.gyp:base', | |
38 ], | |
39 'sources': [ | |
40 'omx_stub.cc', | |
41 ], | |
42 'include_dirs': [ | |
43 'il', | |
44 ], | |
45 'defines': [ | |
46 '__OMX_EXPORTS', | |
47 ], | |
48 }], | |
49 ['OS=="linux"', { | |
50 'variables': { | |
51 'generate_stubs_script': '../../tools/generate_stubs/generate_stubs.
py', | |
52 'sig_files': [ | |
53 'il.sigs', | |
54 ], | |
55 'extra_header': 'il_stub_headers.fragment', | |
56 'outfile_type': 'posix_stubs', | |
57 'stubs_filename_root': 'il_stubs', | |
58 'project_path': 'third_party/openmax', | |
59 'intermediate_dir': '<(INTERMEDIATE_DIR)', | |
60 'output_root': '<(SHARED_INTERMEDIATE_DIR)/openmax', | |
61 }, | |
62 'type': 'static_library', | |
63 'dependencies': [ | |
64 '../../base/base.gyp:base', | |
65 ], | |
66 'defines': [ | |
67 '__OMX_EXPORTS', | |
68 ], | |
69 'include_dirs': [ | |
70 'il', | |
71 '<(output_root)', | |
72 '../..', # The chromium 'src' directory. | |
73 ], | |
74 'hard_dependency': 1, | |
75 'direct_dependent_settings': { | |
76 'include_dirs': [ | |
77 '<(output_root)', | |
78 '../..', # The chromium 'src' directory. | |
79 ], | |
80 }, | |
81 'actions': [ | |
82 { | |
83 'action_name': 'generate_stubs', | |
84 'inputs': [ | |
85 '<(generate_stubs_script)', | |
86 '<(extra_header)', | |
87 '<@(sig_files)', | |
88 ], | |
89 'outputs': [ | |
90 '<(intermediate_dir)/<(stubs_filename_root).cc', | |
91 '<(output_root)/<(project_path)/<(stubs_filename_root).h', | |
92 ], | |
93 'action': ['python', | |
94 '<(generate_stubs_script)', | |
95 '-i', '<(intermediate_dir)', | |
96 '-o', '<(output_root)/<(project_path)', | |
97 '-t', '<(outfile_type)', | |
98 '-e', '<(extra_header)', | |
99 '-s', '<(stubs_filename_root)', | |
100 '-p', '<(project_path)', | |
101 '<@(_inputs)', | |
102 ], | |
103 'process_outputs_as_sources': 1, | |
104 'message': 'Generating OpenMAX IL stubs for dynamic loading.', | |
105 }, | |
106 ], | |
107 }], | |
108 ], | |
109 }, | |
110 ], | |
111 } | |
OLD | NEW |