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/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
11 # Common configuration for targets in the media directory. | 11 # Common configuration for targets in the media directory. |
12 # NOT for exporting. | 12 # NOT for exporting. |
13 config("media_config") { | 13 config("media_config") { |
14 defines = [ "MEDIA_IMPLEMENTATION" ] | 14 defines = [ "MEDIA_IMPLEMENTATION" ] |
15 if (cpu_arch == "arm" && arm_use_neon) { | 15 if (cpu_arch == "arm" && arm_use_neon) { |
16 defines += [ "USE_NEON" ] | 16 defines += [ "USE_NEON" ] |
17 } | 17 } |
18 if (!media_use_libvpx) { | |
19 defines += [ "MEDIA_DISABLE_LIBVPX" ] | |
20 } | |
21 if (use_pulseaudio) { | 18 if (use_pulseaudio) { |
22 defines += [ "USE_PULSEAUDIO" ] | 19 defines += [ "USE_PULSEAUDIO" ] |
23 if (linux_link_pulseaudio) { | 20 if (linux_link_pulseaudio) { |
24 defines += [ "DLOPEN_PULSEAUDIO" ] | 21 defines += [ "DLOPEN_PULSEAUDIO" ] |
25 } | 22 } |
26 } | 23 } |
27 if (use_cras) { | 24 if (use_cras) { |
28 defines = [ "USE_CRAS" ] | 25 defines = [ "USE_CRAS" ] |
29 } | 26 } |
30 if (enable_mpeg2ts_stream_parser) { | 27 if (enable_mpeg2ts_stream_parser) { |
31 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] | 28 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] |
32 } | 29 } |
33 } | 30 } |
34 | 31 |
35 config("media_dependent_config") { | 32 config("media_dependent_config") { |
| 33 if (!media_use_libvpx) { |
| 34 defines = [ "MEDIA_DISABLE_LIBVPX" ] |
| 35 } |
36 if (is_win) { | 36 if (is_win) { |
37 ldflags = [ | 37 ldflags = [ |
38 "/DELAYLOAD:mf.dll", | 38 "/DELAYLOAD:mf.dll", |
39 "/DELAYLOAD:mfplat.dll", | 39 "/DELAYLOAD:mfplat.dll", |
40 "/DELAYLOAD:mfreadwrite.dll", | 40 "/DELAYLOAD:mfreadwrite.dll", |
41 ] | 41 ] |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 if (use_ozone) { | 45 if (use_ozone) { |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1179 "base/android/java/src/org/chromium/media/ImageFormat.template", |
1180 ] | 1180 ] |
1181 inputs = [ | 1181 inputs = [ |
1182 "video/capture/android/imageformat_list.h" | 1182 "video/capture/android/imageformat_list.h" |
1183 ] | 1183 ] |
1184 package_name = "org/chromium/media" | 1184 package_name = "org/chromium/media" |
1185 } | 1185 } |
1186 | 1186 |
1187 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1187 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
1188 } | 1188 } |
OLD | NEW |