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

Side by Side Diff: media/media_gpu.gypi

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Squash and rebase 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
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 ],
114 }],
115 ['OS=="android" and enable_webrtc==1', {
116 'dependencies': [
117 '../third_party/libyuv/libyuv.gyp:libyuv',
118 ],
119 'sources': [
120 'gpu/android_video_encode_accelerator.cc',
121 'gpu/android_video_encode_accelerator.h',
122 ],
123 }],
124 ['use_v4lplugin==1 and chromeos==1', {
125 'defines': [
126 'USE_LIBV4L2'
127 ],
128 'variables': {
129 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
130 'extra_header': 'gpu/v4l2_stub_header.fragment',
131 'sig_files': ['gpu/v4l2.sig'],
132 'outfile_type': 'posix_stubs',
133 'stubs_filename_root': 'v4l2_stubs',
134 'project_path': 'media/gpu',
135 'intermediate_dir': '<(INTERMEDIATE_DIR)',
136 'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
137 },
138 'include_dirs': [
139 '<(output_root)',
140 ],
141 'actions': [
142 {
143 'action_name': 'generate_stubs',
144 'inputs': [
145 '<(generate_stubs_script)',
146 '<(extra_header)',
147 '<@(sig_files)',
148 ],
149 'outputs': [
150 '<(intermediate_dir)/<(stubs_filename_root).cc',
151 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
152 ],
153 'action': ['python',
154 '<(generate_stubs_script)',
155 '-i', '<(intermediate_dir)',
156 '-o', '<(output_root)/<(project_path)',
157 '-t', '<(outfile_type)',
158 '-e', '<(extra_header)',
159 '-s', '<(stubs_filename_root)',
160 '-p', '<(project_path)',
161 '<@(_inputs)',
162 ],
163 'process_outputs_as_sources': 1,
164 'message': 'Generating libv4l2 stubs for dynamic loading',
165 },
166 ],
167 }],
168 ['chromeos==1', {
169 'sources': [
170 'gpu/accelerated_video_decoder.h',
171 'gpu/h264_decoder.cc',
172 'gpu/h264_decoder.h',
173 'gpu/h264_dpb.cc',
174 'gpu/h264_dpb.h',
175 'gpu/vp8_decoder.cc',
176 'gpu/vp8_decoder.h',
177 'gpu/vp8_picture.cc',
178 'gpu/vp8_picture.h',
179 'gpu/vp9_decoder.cc',
180 'gpu/vp9_decoder.h',
181 'gpu/vp9_picture.cc',
182 'gpu/vp9_picture.h',
183 ],
184 }],
185 ['chromeos==1 and use_v4l2_codec==1', {
186 'direct_dependent_settings': {
187 'defines': [
188 'USE_V4L2_CODEC'
189 ],
190 },
191 'defines': [
192 'USE_V4L2_CODEC'
193 ],
194 'dependencies': [
195 '../media/media.gyp:media',
196 '../third_party/libyuv/libyuv.gyp:libyuv',
197 ],
198 'sources': [
199 'gpu/generic_v4l2_device.cc',
200 'gpu/generic_v4l2_device.h',
201 'gpu/v4l2_device.cc',
202 'gpu/v4l2_device.h',
203 'gpu/v4l2_image_processor.cc',
204 'gpu/v4l2_image_processor.h',
205 'gpu/v4l2_jpeg_decode_accelerator.cc',
206 'gpu/v4l2_jpeg_decode_accelerator.h',
207 'gpu/v4l2_slice_video_decode_accelerator.cc',
208 'gpu/v4l2_slice_video_decode_accelerator.h',
209 'gpu/v4l2_video_decode_accelerator.cc',
210 'gpu/v4l2_video_decode_accelerator.h',
211 'gpu/v4l2_video_encode_accelerator.cc',
212 'gpu/v4l2_video_encode_accelerator.h',
213 ],
214 'include_dirs': [
215 '<(DEPTH)/third_party/khronos',
216 ],
217 }],
218 ['target_arch == "arm" and chromeos == 1', {
219 'sources': [
220 'gpu/tegra_v4l2_device.cc',
221 'gpu/tegra_v4l2_device.h',
222 ],
223 }],
224 ['target_arch != "arm" and chromeos == 1', {
225 'dependencies': [
226 '../media/media.gyp:media',
227 '../third_party/libyuv/libyuv.gyp:libyuv',
228 ],
229 'sources': [
230 'gpu/va_surface.h',
231 'gpu/vaapi_jpeg_decode_accelerator.cc',
232 'gpu/vaapi_jpeg_decode_accelerator.h',
233 'gpu/vaapi_jpeg_decoder.cc',
234 'gpu/vaapi_jpeg_decoder.h',
235 'gpu/vaapi_picture.cc',
236 'gpu/vaapi_picture.h',
237 'gpu/vaapi_video_decode_accelerator.cc',
238 'gpu/vaapi_video_decode_accelerator.h',
239 'gpu/vaapi_video_encode_accelerator.cc',
240 'gpu/vaapi_video_encode_accelerator.h',
241 'gpu/vaapi_wrapper.cc',
242 'gpu/vaapi_wrapper.h',
243 ],
244 'conditions': [
245 ['use_x11 == 1', {
246 'variables': {
247 'sig_files': [
248 'gpu/va.sigs',
249 'gpu/va_x11.sigs',
250 ],
251 },
252 'sources': [
253 'gpu/vaapi_tfp_picture.cc',
254 'gpu/vaapi_tfp_picture.h',
255 ],
256 }, {
257 'variables': {
258 'sig_files': [
259 'gpu/va.sigs',
260 'gpu/va_drm.sigs',
261 ],
262 },
263 'sources': [
264 'gpu/vaapi_drm_picture.cc',
265 'gpu/vaapi_drm_picture.h',
266 ],
267 }],
268 ],
269 'variables': {
270 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
271 'extra_header': 'gpu/va_stub_header.fragment',
272 'outfile_type': 'posix_stubs',
273 'stubs_filename_root': 'va_stubs',
274 'project_path': 'media/gpu',
275 'intermediate_dir': '<(INTERMEDIATE_DIR)',
276 'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
277 },
278 'include_dirs': [
279 '<(DEPTH)/third_party/libva',
280 '<(DEPTH)/third_party/libyuv',
281 '<(output_root)',
282 ],
283 'actions': [
284 {
285 'action_name': 'generate_stubs',
286 'inputs': [
287 '<(generate_stubs_script)',
288 '<(extra_header)',
289 '<@(sig_files)',
290 ],
291 'outputs': [
292 '<(intermediate_dir)/<(stubs_filename_root).cc',
293 '<(output_root)/<(project_path)/<(stubs_filename_root).h',
294 ],
295 'action': ['python',
296 '<(generate_stubs_script)',
297 '-i', '<(intermediate_dir)',
298 '-o', '<(output_root)/<(project_path)',
299 '-t', '<(outfile_type)',
300 '-e', '<(extra_header)',
301 '-s', '<(stubs_filename_root)',
302 '-p', '<(project_path)',
303 '<@(_inputs)',
304 ],
305 'process_outputs_as_sources': 1,
306 'message': 'Generating libva stubs for dynamic loading',
307 },
308 ]
309 }],
310 ['OS=="win"', {
311 'dependencies': [
312 '../media/media.gyp:media',
313 '../ui/gl/gl.gyp:gl',
314 ],
315 'link_settings': {
316 'libraries': [
317 '-ld3d9.lib',
318 '-ld3d11.lib',
319 '-ldxva2.lib',
320 '-lstrmiids.lib',
321 '-lmf.lib',
322 '-lmfplat.lib',
323 '-lmfuuid.lib',
324 ],
325 'msvs_settings': {
326 'VCLinkerTool': {
327 'DelayLoadDLLs': [
328 'd3d9.dll',
329 'd3d11.dll',
330 'dxva2.dll',
331 'mf.dll',
332 'mfplat.dll',
333 ],
334 },
335 },
336 },
337 'sources': [
338 'gpu/dxva_video_decode_accelerator_win.cc',
339 'gpu/dxva_video_decode_accelerator_win.h',
340 ],
341 'include_dirs': [
342 '<(DEPTH)/third_party/khronos',
343 ],
344 }],
345 ['OS == "win" and target_arch == "x64"', {
346 'msvs_settings': {
347 'VCCLCompilerTool': {
348 'AdditionalOptions': [
349 '/wd4267', # Conversion from 'size_t' to 'type', possible loss of da ta
350 ],
351 },
352 },
353 }],
354 ],
355 }
OLDNEW
« content/DEPS ('K') | « media/media.gyp ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698