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

Side by Side Diff: media/media_gpu.gypi

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « media/media.gyp ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 'variables': {
3 'use_v4lplugin%': 0,
4 'use_v4l2_codec%': 0,
5 },
6 'defines': [
7 'MEDIA_GPU_IMPLEMENTATION'
8 ],
9 'dependencies': [
10 '../base/base.gyp:base',
11 '../gpu/gpu.gyp:gpu',
12 '../media/media.gyp:media',
13 '../ui/display/display.gyp:display_types',
14 '../ui/gfx/gfx.gyp:gfx_geometry',
15 '../ui/gl/gl.gyp:gl',
16 '../ui/platform_window/platform_window.gyp:platform_window',
17 ],
18 'sources': [
19 'gpu/fake_video_decode_accelerator.cc',
20 'gpu/fake_video_decode_accelerator.h',
21 'gpu/gpu_video_accelerator_util.cc',
22 'gpu/gpu_video_accelerator_util.h',
23 'gpu/gpu_video_decode_accelerator_factory_impl.cc',
24 'gpu/gpu_video_decode_accelerator_factory_impl.h',
25 'gpu/gpu_video_decode_accelerator_helpers.h',
26 'gpu/shared_memory_region.cc',
27 'gpu/shared_memory_region.h',
28 ],
29 'include_dirs': [
30 '..',
31 ],
32 'conditions': [
33 ['OS=="mac"', {
34 'dependencies': [
35 '../media/media.gyp:media',
36 '../content/app/resources/content_resources.gyp:content_resources',
37 '../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_wid get_mac'
38 ],
39 'sources': [
40 'gpu/vt_mac.h',
41 'gpu/vt_video_decode_accelerator_mac.cc',
42 'gpu/vt_video_decode_accelerator_mac.h',
43 'gpu/vt_video_encode_accelerator_mac.cc',
44 'gpu/vt_video_encode_accelerator_mac.h',
45 ],
46 'link_settings': {
47 'libraries': [
48 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
49 '$(SDKROOT)/System/Library/Frameworks/CoreMedia.framework',
50 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
51 '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
52 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
53 '$(SDKROOT)/usr/lib/libsandbox.dylib',
54 ],
55 },
56 'variables': {
57 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
58 'extra_header': 'gpu/vt_stubs_header.fragment',
59 'sig_files': ['gpu/vt.sig'],
60 'outfile_type': 'posix_stubs',
61 'stubs_filename_root': 'vt_stubs',
62 'project_path': 'media/gpu',
63 'intermediate_dir': '<(INTERMEDIATE_DIR)',
64 'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
65 },
66 'include_dirs': [
67 '<(output_root)',
68 ],
69 'actions': [
70 {
71 'action_name': 'generate_stubs',
72 'inputs': [
73 '<(generate_stubs_script)',
74 '<(extra_header)',
75 '<@(sig_files)',
76 ],
77 'outputs': [
78 '<(intermediate_dir)/<(stubs_filename_root).cc',
79 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
80 ],
81 'action': ['python',
82 '<(generate_stubs_script)',
83 '-i', '<(intermediate_dir)',
84 '-o', '<(output_root)/<(project_path)',
85 '-t', '<(outfile_type)',
86 '-e', '<(extra_header)',
87 '-s', '<(stubs_filename_root)',
88 '-p', '<(project_path)',
89 '<@(_inputs)',
90 ],
91 'process_outputs_as_sources': 1,
92 'message': 'Generating VideoToolbox stubs for dynamic loading',
93 },
94 ],
95 }],
96 ['OS=="android"', {
97 'dependencies': [
98 '../media/media.gyp:media',
99 ],
100 'sources': [
101 'gpu/android_copying_backing_strategy.cc',
102 'gpu/android_copying_backing_strategy.h',
103 'gpu/android_deferred_rendering_backing_strategy.cc',
104 'gpu/android_deferred_rendering_backing_strategy.h',
105 'gpu/android_video_decode_accelerator.cc',
106 'gpu/android_video_decode_accelerator.h',
107 'gpu/avda_codec_image.cc',
108 'gpu/avda_codec_image.h',
109 'gpu/avda_return_on_failure.h',
110 'gpu/avda_shared_state.cc',
111 'gpu/avda_shared_state.h',
112 'gpu/avda_state_provider.h',
113 'gpu/avda_surface_tracker.h',
114 'gpu/avda_surface_tracker.cc',
115 ],
116 }],
117 ['OS=="android" and enable_webrtc==1', {
118 'dependencies': [
119 '../third_party/libyuv/libyuv.gyp:libyuv',
120 ],
121 'sources': [
122 'gpu/android_video_encode_accelerator.cc',
123 'gpu/android_video_encode_accelerator.h',
124 ],
125 }],
126 ['use_v4lplugin==1 and chromeos==1', {
127 'defines': [
128 'USE_LIBV4L2'
129 ],
130 'variables': {
131 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
132 'extra_header': 'gpu/v4l2_stub_header.fragment',
133 'sig_files': ['gpu/v4l2.sig'],
134 'outfile_type': 'posix_stubs',
135 'stubs_filename_root': 'v4l2_stubs',
136 'project_path': 'media/gpu',
137 'intermediate_dir': '<(INTERMEDIATE_DIR)',
138 'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
139 },
140 'include_dirs': [
141 '<(output_root)',
142 ],
143 'actions': [
144 {
145 'action_name': 'generate_stubs',
146 'inputs': [
147 '<(generate_stubs_script)',
148 '<(extra_header)',
149 '<@(sig_files)',
150 ],
151 'outputs': [
152 '<(intermediate_dir)/<(stubs_filename_root).cc',
153 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
154 ],
155 'action': ['python',
156 '<(generate_stubs_script)',
157 '-i', '<(intermediate_dir)',
158 '-o', '<(output_root)/<(project_path)',
159 '-t', '<(outfile_type)',
160 '-e', '<(extra_header)',
161 '-s', '<(stubs_filename_root)',
162 '-p', '<(project_path)',
163 '<@(_inputs)',
164 ],
165 'process_outputs_as_sources': 1,
166 'message': 'Generating libv4l2 stubs for dynamic loading',
167 },
168 ],
169 }],
170 ['chromeos==1', {
171 'sources': [
172 'gpu/accelerated_video_decoder.h',
173 'gpu/h264_decoder.cc',
174 'gpu/h264_decoder.h',
175 'gpu/h264_dpb.cc',
176 'gpu/h264_dpb.h',
177 'gpu/vp8_decoder.cc',
178 'gpu/vp8_decoder.h',
179 'gpu/vp8_picture.cc',
180 'gpu/vp8_picture.h',
181 'gpu/vp9_decoder.cc',
182 'gpu/vp9_decoder.h',
183 'gpu/vp9_picture.cc',
184 'gpu/vp9_picture.h',
185 ],
186 }],
187 ['chromeos==1 and use_v4l2_codec==1', {
188 'direct_dependent_settings': {
189 'defines': [
190 'USE_V4L2_CODEC'
191 ],
192 },
193 'defines': [
194 'USE_V4L2_CODEC'
195 ],
196 'dependencies': [
197 '../media/media.gyp:media',
198 '../third_party/libyuv/libyuv.gyp:libyuv',
199 ],
200 'sources': [
201 'gpu/generic_v4l2_device.cc',
202 'gpu/generic_v4l2_device.h',
203 'gpu/v4l2_device.cc',
204 'gpu/v4l2_device.h',
205 'gpu/v4l2_image_processor.cc',
206 'gpu/v4l2_image_processor.h',
207 'gpu/v4l2_jpeg_decode_accelerator.cc',
208 'gpu/v4l2_jpeg_decode_accelerator.h',
209 'gpu/v4l2_slice_video_decode_accelerator.cc',
210 'gpu/v4l2_slice_video_decode_accelerator.h',
211 'gpu/v4l2_video_decode_accelerator.cc',
212 'gpu/v4l2_video_decode_accelerator.h',
213 'gpu/v4l2_video_encode_accelerator.cc',
214 'gpu/v4l2_video_encode_accelerator.h',
215 ],
216 'include_dirs': [
217 '<(DEPTH)/third_party/khronos',
218 ],
219 }],
220 ['target_arch == "arm" and chromeos == 1', {
221 'sources': [
222 'gpu/tegra_v4l2_device.cc',
223 'gpu/tegra_v4l2_device.h',
224 ],
225 }],
226 ['target_arch != "arm" and chromeos == 1', {
227 'dependencies': [
228 '../media/media.gyp:media',
229 '../third_party/libyuv/libyuv.gyp:libyuv',
230 ],
231 'sources': [
232 'gpu/va_surface.h',
233 'gpu/vaapi_jpeg_decode_accelerator.cc',
234 'gpu/vaapi_jpeg_decode_accelerator.h',
235 'gpu/vaapi_jpeg_decoder.cc',
236 'gpu/vaapi_jpeg_decoder.h',
237 'gpu/vaapi_picture.cc',
238 'gpu/vaapi_picture.h',
239 'gpu/vaapi_video_decode_accelerator.cc',
240 'gpu/vaapi_video_decode_accelerator.h',
241 'gpu/vaapi_video_encode_accelerator.cc',
242 'gpu/vaapi_video_encode_accelerator.h',
243 'gpu/vaapi_wrapper.cc',
244 'gpu/vaapi_wrapper.h',
245 ],
246 'conditions': [
247 ['use_x11 == 1', {
248 'variables': {
249 'sig_files': [
250 'gpu/va.sigs',
251 'gpu/va_x11.sigs',
252 ],
253 },
254 'sources': [
255 'gpu/vaapi_tfp_picture.cc',
256 'gpu/vaapi_tfp_picture.h',
257 ],
258 }, {
259 'variables': {
260 'sig_files': [
261 'gpu/va.sigs',
262 'gpu/va_drm.sigs',
263 ],
264 },
265 'sources': [
266 'gpu/vaapi_drm_picture.cc',
267 'gpu/vaapi_drm_picture.h',
268 ],
269 }],
270 ],
271 'variables': {
272 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
273 'extra_header': 'gpu/va_stub_header.fragment',
274 'outfile_type': 'posix_stubs',
275 'stubs_filename_root': 'va_stubs',
276 'project_path': 'media/gpu',
277 'intermediate_dir': '<(INTERMEDIATE_DIR)',
278 'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
279 },
280 'include_dirs': [
281 '<(DEPTH)/third_party/libva',
282 '<(DEPTH)/third_party/libyuv',
283 '<(output_root)',
284 ],
285 'actions': [
286 {
287 'action_name': 'generate_stubs',
288 'inputs': [
289 '<(generate_stubs_script)',
290 '<(extra_header)',
291 '<@(sig_files)',
292 ],
293 'outputs': [
294 '<(intermediate_dir)/<(stubs_filename_root).cc',
295 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
296 ],
297 'action': ['python',
298 '<(generate_stubs_script)',
299 '-i', '<(intermediate_dir)',
300 '-o', '<(output_root)/<(project_path)',
301 '-t', '<(outfile_type)',
302 '-e', '<(extra_header)',
303 '-s', '<(stubs_filename_root)',
304 '-p', '<(project_path)',
305 '<@(_inputs)',
306 ],
307 'process_outputs_as_sources': 1,
308 'message': 'Generating libva stubs for dynamic loading',
309 },
310 ]
311 }],
312 ['OS=="win"', {
313 'dependencies': [
314 '../media/media.gyp:media',
315 '../ui/gl/gl.gyp:gl',
316 ],
317 'link_settings': {
318 'libraries': [
319 '-ld3d9.lib',
320 '-ld3d11.lib',
321 '-ldxva2.lib',
322 '-lstrmiids.lib',
323 '-lmf.lib',
324 '-lmfplat.lib',
325 '-lmfuuid.lib',
326 ],
327 'msvs_settings': {
328 'VCLinkerTool': {
329 'DelayLoadDLLs': [
330 'd3d9.dll',
331 'd3d11.dll',
332 'dxva2.dll',
333 'mf.dll',
334 'mfplat.dll',
335 ],
336 },
337 },
338 },
339 'sources': [
340 'gpu/dxva_video_decode_accelerator_win.cc',
341 'gpu/dxva_video_decode_accelerator_win.h',
342 ],
343 'include_dirs': [
344 '<(DEPTH)/third_party/khronos',
345 ],
346 }],
347 ['OS == "win" and target_arch == "x64"', {
348 'msvs_settings': {
349 'VCCLCompilerTool': {
350 'AdditionalOptions': [
351 '/wd4267', # Conversion from 'size_t' to 'type', possible loss of da ta
352 ],
353 },
354 },
355 }],
356 ],
357 }
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698