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", |
28 ] | 29 ] |
29 } | 30 } |
30 | 31 |
31 if (proprietary_codecs && media_use_ffmpeg) { | 32 if (proprietary_codecs && media_use_ffmpeg) { |
32 assert( | 33 assert( |
33 ffmpeg_branding != "Chromium", | 34 ffmpeg_branding != "Chromium", |
34 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") | 35 "proprietary codecs and ffmpeg_branding set to Chromium are incompatible") |
35 } | 36 } |
36 | 37 |
37 # Common configuration for targets in the media directory. | 38 # Common configuration for targets in the media directory. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 "//build/config/compiler:no_size_t_to_int_warning", | 268 "//build/config/compiler:no_size_t_to_int_warning", |
268 ] | 269 ] |
269 all_dependent_configs = [ ":media_dependent_config" ] | 270 all_dependent_configs = [ ":media_dependent_config" ] |
270 | 271 |
271 allow_circular_includes_from = [] | 272 allow_circular_includes_from = [] |
272 cflags = [] | 273 cflags = [] |
273 libs = [] | 274 libs = [] |
274 defines = [] | 275 defines = [] |
275 deps = [ | 276 deps = [ |
276 ":cdm_api", | 277 ":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", |
277 ] | 293 ] |
278 | 294 |
279 public_configs = [ "//third_party/libwebm:libwebm_config" ] | 295 public_configs = [ "//third_party/libwebm:libwebm_config" ] |
280 public_deps = [ | 296 public_deps = [ |
281 ":filters_common", | 297 ":filters_common", |
| 298 ":media_features", |
| 299 ":shared_memory_support", |
| 300 "//media/audio", |
| 301 "//media/base", |
282 ] | 302 ] |
283 | 303 |
284 include_dirs = [ "." ] | 304 include_dirs = [ "." ] |
285 if (media_use_ffmpeg) { | 305 if (media_use_ffmpeg) { |
286 public_deps += [ "//media/ffmpeg" ] | 306 public_deps += [ "//media/ffmpeg" ] |
287 deps += [ | 307 deps += [ |
288 "//third_party/ffmpeg", | 308 "//third_party/ffmpeg", |
289 "//third_party/opus", | 309 "//third_party/opus", |
290 ] | 310 ] |
291 sources += [ | 311 sources += [ |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 ] | 509 ] |
490 } | 510 } |
491 | 511 |
492 if (use_udev) { | 512 if (use_udev) { |
493 deps += [ "//device/udev_linux" ] | 513 deps += [ "//device/udev_linux" ] |
494 sources += [ | 514 sources += [ |
495 "device_monitors/device_monitor_udev.cc", | 515 "device_monitors/device_monitor_udev.cc", |
496 "device_monitors/device_monitor_udev.h", | 516 "device_monitors/device_monitor_udev.h", |
497 ] | 517 ] |
498 } | 518 } |
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 ] | |
524 } | 519 } |
525 | 520 |
526 static_library("cdm_paths") { | 521 static_library("cdm_paths") { |
527 sources = [ | 522 sources = [ |
528 "cdm/cdm_paths.cc", | 523 "cdm/cdm_paths.cc", |
529 "cdm/cdm_paths.h", | 524 "cdm/cdm_paths.h", |
530 ] | 525 ] |
531 deps = [ | 526 deps = [ |
532 "//base", | 527 "//base", |
533 ] | 528 ] |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 953 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
959 sources = [ | 954 sources = [ |
960 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 955 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
961 ] | 956 ] |
962 deps = [ | 957 deps = [ |
963 ":media", | 958 ":media", |
964 "//base", | 959 "//base", |
965 ] | 960 ] |
966 } | 961 } |
967 } | 962 } |
OLD | NEW |