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 "//ui/gfx:color_space", | 302 "//ui/gfx:color_space", |
283 ] | 303 ] |
284 | 304 |
285 include_dirs = [ "." ] | 305 include_dirs = [ "." ] |
286 if (media_use_ffmpeg) { | 306 if (media_use_ffmpeg) { |
287 public_deps += [ "//media/ffmpeg" ] | 307 public_deps += [ "//media/ffmpeg" ] |
288 deps += [ | 308 deps += [ |
289 "//third_party/ffmpeg", | 309 "//third_party/ffmpeg", |
290 "//third_party/opus", | 310 "//third_party/opus", |
291 ] | 311 ] |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 ] | 510 ] |
491 } | 511 } |
492 | 512 |
493 if (use_udev) { | 513 if (use_udev) { |
494 deps += [ "//device/udev_linux" ] | 514 deps += [ "//device/udev_linux" ] |
495 sources += [ | 515 sources += [ |
496 "device_monitors/device_monitor_udev.cc", | 516 "device_monitors/device_monitor_udev.cc", |
497 "device_monitors/device_monitor_udev.h", | 517 "device_monitors/device_monitor_udev.h", |
498 ] | 518 ] |
499 } | 519 } |
500 | |
501 public_deps += [ | |
502 ":media_features", | |
503 ":shared_memory_support", | |
504 "//media/audio", | |
505 "//media/base", | |
506 ] | |
507 | |
508 deps += [ | |
509 "//base", | |
510 "//base:i18n", | |
511 "//base/third_party/dynamic_annotations", | |
512 "//crypto", | |
513 "//crypto:platform", | |
514 "//gpu/command_buffer/client:gles2_interface", | |
515 "//gpu/command_buffer/common", | |
516 "//skia", | |
517 "//third_party/libwebm", | |
518 "//third_party/libyuv", | |
519 "//ui/events:events_base", | |
520 "//ui/gfx", | |
521 "//ui/gfx/geometry", | |
522 "//ui/gl:gl", | |
523 "//url", | |
524 ] | |
525 } | 520 } |
526 | 521 |
527 static_library("cdm_paths") { | 522 static_library("cdm_paths") { |
528 sources = [ | 523 sources = [ |
529 "cdm/cdm_paths.cc", | 524 "cdm/cdm_paths.cc", |
530 "cdm/cdm_paths.h", | 525 "cdm/cdm_paths.h", |
531 ] | 526 ] |
532 deps = [ | 527 deps = [ |
533 "//base", | 528 "//base", |
534 ] | 529 ] |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 968 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
974 sources = [ | 969 sources = [ |
975 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 970 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
976 ] | 971 ] |
977 deps = [ | 972 deps = [ |
978 ":media", | 973 ":media", |
979 "//base", | 974 "//base", |
980 ] | 975 ] |
981 } | 976 } |
982 } | 977 } |
OLD | NEW |