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