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/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
12 | 12 |
13 # Common configuration for targets in the media directory. | 13 # Common configuration for targets in the media directory. |
14 # NOT for exporting. | 14 # NOT for exporting. |
15 config("media_config") { | 15 config("media_config") { |
16 defines = [] | 16 defines = [] |
17 if (!media_use_libvpx) { | 17 if (!media_use_libvpx) { |
18 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 18 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
19 } | 19 } |
20 if (!media_use_ffmpeg) { | 20 if (!media_use_ffmpeg) { |
21 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 21 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
22 } | 22 } |
| 23 if (!media_use_libwebm) { |
| 24 defines += [ "MEDIA_DISABLE_LIBWEBM" ] |
| 25 } |
23 if (current_cpu == "arm" && arm_use_neon) { | 26 if (current_cpu == "arm" && arm_use_neon) { |
24 defines += [ "USE_NEON" ] | 27 defines += [ "USE_NEON" ] |
25 } | 28 } |
26 if (use_pulseaudio) { | 29 if (use_pulseaudio) { |
27 defines += [ "USE_PULSEAUDIO" ] | 30 defines += [ "USE_PULSEAUDIO" ] |
28 if (!link_pulseaudio) { | 31 if (!link_pulseaudio) { |
29 defines += [ "DLOPEN_PULSEAUDIO" ] | 32 defines += [ "DLOPEN_PULSEAUDIO" ] |
30 } | 33 } |
31 } | 34 } |
32 if (use_cras) { | 35 if (use_cras) { |
33 defines += [ "USE_CRAS" ] | 36 defines += [ "USE_CRAS" ] |
34 } | 37 } |
35 if (proprietary_codecs && enable_hevc_demuxing) { | 38 if (proprietary_codecs && enable_hevc_demuxing) { |
36 defines += [ "ENABLE_HEVC_DEMUXING" ] | 39 defines += [ "ENABLE_HEVC_DEMUXING" ] |
37 } | 40 } |
38 } | 41 } |
39 | 42 |
40 config("media_implementation") { | 43 config("media_implementation") { |
41 defines = [ "MEDIA_IMPLEMENTATION" ] | 44 defines = [ "MEDIA_IMPLEMENTATION" ] |
42 } | 45 } |
43 | 46 |
44 config("media_dependent_config") { | 47 config("media_dependent_config") { |
45 defines = [] | 48 defines = [] |
46 if (!media_use_libvpx) { | 49 if (!media_use_libvpx) { |
47 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 50 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
48 } | 51 } |
49 if (!media_use_ffmpeg) { | 52 if (!media_use_ffmpeg) { |
50 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 53 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
51 } | 54 } |
| 55 if (!media_use_libwebm) { |
| 56 defines += [ "MEDIA_DISABLE_LIBWEBM" ] |
| 57 } |
52 if (is_win) { | 58 if (is_win) { |
53 ldflags = [ | 59 ldflags = [ |
54 "/DELAYLOAD:mf.dll", | 60 "/DELAYLOAD:mf.dll", |
55 "/DELAYLOAD:mfplat.dll", | 61 "/DELAYLOAD:mfplat.dll", |
56 "/DELAYLOAD:mfreadwrite.dll", | 62 "/DELAYLOAD:mfreadwrite.dll", |
57 ] | 63 ] |
58 } | 64 } |
59 if (media_use_ffmpeg && is_android) { | 65 if (media_use_ffmpeg && is_android) { |
60 defines += [ | 66 defines += [ |
61 "ENABLE_MEDIA_PIPELINE_ON_ANDROID", | 67 "ENABLE_MEDIA_PIPELINE_ON_ANDROID", |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 "//media/base:test_support", | 889 "//media/base:test_support", |
884 "//media/test:pipeline_integration_tests", | 890 "//media/test:pipeline_integration_tests", |
885 "//testing/gmock", | 891 "//testing/gmock", |
886 "//testing/gtest", | 892 "//testing/gtest", |
887 "//third_party/ffmpeg", | 893 "//third_party/ffmpeg", |
888 "//ui/gfx/geometry", | 894 "//ui/gfx/geometry", |
889 "//ui/gfx:test_support", | 895 "//ui/gfx:test_support", |
890 ] | 896 ] |
891 } | 897 } |
892 } | 898 } |
OLD | NEW |