| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| 11 import("//media/media_options.gni") | 11 import("//media/media_options.gni") |
| 12 import("//ppapi/features/features.gni") | 12 import("//ppapi/features/features.gni") |
| 13 import("//testing/libfuzzer/fuzzer_test.gni") | 13 import("//testing/libfuzzer/fuzzer_test.gni") |
| 14 import("//testing/test.gni") | 14 import("//testing/test.gni") |
| 15 import("//third_party/ffmpeg/ffmpeg_options.gni") | 15 import("//third_party/ffmpeg/ffmpeg_options.gni") |
| 16 | 16 |
| 17 buildflag_header("media_features") { | 17 buildflag_header("media_features") { |
| 18 header = "media_features.h" | 18 header = "media_features.h" |
| 19 | 19 |
| 20 flags = [ | 20 flags = [ |
| 21 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", | 21 "ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing", |
| 22 "ENABLE_CBCS_ENCRYPTION_SCHEME=$enable_cbcs_encryption_scheme", | 22 "ENABLE_CBCS_ENCRYPTION_SCHEME=$enable_cbcs_encryption_scheme", |
| 23 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", | 23 "ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing", |
| 24 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", | 24 "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes", |
| 25 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", | 25 "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser", |
| 26 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", | 26 "ENABLE_MEDIA_REMOTING=$enable_media_remoting", |
| 27 "ENABLE_WEBRTC=$enable_webrtc", | 27 "ENABLE_WEBRTC=$enable_webrtc", |
| 28 "USE_PROPRIETARY_CODECS=$proprietary_codecs", | |
| 29 ] | 28 ] |
| 30 } | 29 } |
| 31 | 30 |
| 32 if (proprietary_codecs && media_use_ffmpeg) { | 31 if (proprietary_codecs && media_use_ffmpeg) { |
| 33 assert( | 32 assert( |
| 34 ffmpeg_branding != "Chromium", | 33 ffmpeg_branding != "Chromium", |
| 35 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") | 34 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") |
| 36 } | 35 } |
| 37 | 36 |
| 38 # Common configuration for targets in the media directory. | 37 # Common configuration for targets in the media directory. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 "//build/config/compiler:no_size_t_to_int_warning", | 267 "//build/config/compiler:no_size_t_to_int_warning", |
| 269 ] | 268 ] |
| 270 all_dependent_configs = [ ":media_dependent_config" ] | 269 all_dependent_configs = [ ":media_dependent_config" ] |
| 271 | 270 |
| 272 allow_circular_includes_from = [] | 271 allow_circular_includes_from = [] |
| 273 cflags = [] | 272 cflags = [] |
| 274 libs = [] | 273 libs = [] |
| 275 defines = [] | 274 defines = [] |
| 276 deps = [ | 275 deps = [ |
| 277 ":cdm_api", | 276 ":cdm_api", |
| 278 "//base", | |
| 279 "//base:i18n", | |
| 280 "//base/third_party/dynamic_annotations", | |
| 281 "//crypto", | |
| 282 "//crypto:platform", | |
| 283 "//gpu/command_buffer/client:gles2_interface", | |
| 284 "//gpu/command_buffer/common", | |
| 285 "//skia", | |
| 286 "//third_party/libwebm", | |
| 287 "//third_party/libyuv", | |
| 288 "//ui/events:events_base", | |
| 289 "//ui/gfx", | |
| 290 "//ui/gfx/geometry", | |
| 291 "//ui/gl:gl", | |
| 292 "//url", | |
| 293 ] | 277 ] |
| 294 | 278 |
| 295 public_configs = [ "//third_party/libwebm:libwebm_config" ] | 279 public_configs = [ "//third_party/libwebm:libwebm_config" ] |
| 296 public_deps = [ | 280 public_deps = [ |
| 297 ":filters_common", | 281 ":filters_common", |
| 298 ":media_features", | |
| 299 ":shared_memory_support", | |
| 300 "//media/audio", | |
| 301 "//media/base", | |
| 302 ] | 282 ] |
| 303 | 283 |
| 304 include_dirs = [ "." ] | 284 include_dirs = [ "." ] |
| 305 if (media_use_ffmpeg) { | 285 if (media_use_ffmpeg) { |
| 306 public_deps += [ "//media/ffmpeg" ] | 286 public_deps += [ "//media/ffmpeg" ] |
| 307 deps += [ | 287 deps += [ |
| 308 "//third_party/ffmpeg", | 288 "//third_party/ffmpeg", |
| 309 "//third_party/opus", | 289 "//third_party/opus", |
| 310 ] | 290 ] |
| 311 sources += [ | 291 sources += [ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 ] | 489 ] |
| 510 } | 490 } |
| 511 | 491 |
| 512 if (use_udev) { | 492 if (use_udev) { |
| 513 deps += [ "//device/udev_linux" ] | 493 deps += [ "//device/udev_linux" ] |
| 514 sources += [ | 494 sources += [ |
| 515 "device_monitors/device_monitor_udev.cc", | 495 "device_monitors/device_monitor_udev.cc", |
| 516 "device_monitors/device_monitor_udev.h", | 496 "device_monitors/device_monitor_udev.h", |
| 517 ] | 497 ] |
| 518 } | 498 } |
| 499 |
| 500 public_deps += [ |
| 501 ":media_features", |
| 502 ":shared_memory_support", |
| 503 "//media/audio", |
| 504 "//media/base", |
| 505 ] |
| 506 |
| 507 deps += [ |
| 508 "//base", |
| 509 "//base:i18n", |
| 510 "//base/third_party/dynamic_annotations", |
| 511 "//crypto", |
| 512 "//crypto:platform", |
| 513 "//gpu/command_buffer/client:gles2_interface", |
| 514 "//gpu/command_buffer/common", |
| 515 "//skia", |
| 516 "//third_party/libwebm", |
| 517 "//third_party/libyuv", |
| 518 "//ui/events:events_base", |
| 519 "//ui/gfx", |
| 520 "//ui/gfx/geometry", |
| 521 "//ui/gl:gl", |
| 522 "//url", |
| 523 ] |
| 519 } | 524 } |
| 520 | 525 |
| 521 static_library("cdm_paths") { | 526 static_library("cdm_paths") { |
| 522 sources = [ | 527 sources = [ |
| 523 "cdm/cdm_paths.cc", | 528 "cdm/cdm_paths.cc", |
| 524 "cdm/cdm_paths.h", | 529 "cdm/cdm_paths.h", |
| 525 ] | 530 ] |
| 526 deps = [ | 531 deps = [ |
| 527 "//base", | 532 "//base", |
| 528 ] | 533 ] |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 958 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 954 sources = [ | 959 sources = [ |
| 955 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 960 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 956 ] | 961 ] |
| 957 deps = [ | 962 deps = [ |
| 958 ":media", | 963 ":media", |
| 959 "//base", | 964 "//base", |
| 960 ] | 965 ] |
| 961 } | 966 } |
| 962 } | 967 } |
| OLD | NEW |