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