Chromium Code Reviews| 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 | 11 |
| 12 # Common configuration for targets in the media directory. | 12 # Common configuration for targets in the media directory. |
| 13 # NOT for exporting. | 13 # NOT for exporting. |
| 14 config("media_config") { | 14 config("media_config") { |
| 15 defines = [ "MEDIA_IMPLEMENTATION" ] | 15 defines = [ "MEDIA_IMPLEMENTATION" ] |
| 16 if (!media_use_libvpx) { | |
| 17 defines += [ "MEDIA_DISABLE_LIBVPX" ] | |
| 18 } | |
| 19 if (!media_use_ffmpeg) { | |
| 20 defines += [ "MEDIA_DISABLE_FFMPEG" ] | |
| 21 } | |
| 16 if (cpu_arch == "arm" && arm_use_neon) { | 22 if (cpu_arch == "arm" && arm_use_neon) { |
| 17 defines += [ "USE_NEON" ] | 23 defines += [ "USE_NEON" ] |
| 18 } | 24 } |
| 19 if (use_pulseaudio) { | 25 if (use_pulseaudio) { |
| 20 defines += [ "USE_PULSEAUDIO" ] | 26 defines += [ "USE_PULSEAUDIO" ] |
| 21 if (!link_pulseaudio) { | 27 if (!link_pulseaudio) { |
| 22 defines += [ "DLOPEN_PULSEAUDIO" ] | 28 defines += [ "DLOPEN_PULSEAUDIO" ] |
| 23 } | 29 } |
| 24 } | 30 } |
| 25 if (use_cras) { | 31 if (use_cras) { |
| 26 defines += [ "USE_CRAS" ] | 32 defines += [ "USE_CRAS" ] |
| 27 } | 33 } |
| 28 } | 34 } |
| 29 | 35 |
| 30 config("media_dependent_config") { | 36 config("media_dependent_config") { |
| 31 defines = [] | 37 defines = [] |
| 32 if (!media_use_libvpx) { | 38 if (!media_use_libvpx) { |
| 33 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 39 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
| 34 } | 40 } |
|
xhwang
2015/01/07 17:12:30
Add MEDIA_DISABLE_FFMPEG here? See comments below
Mostyn Bramley-Moore
2015/01/07 19:29:53
Done.
| |
| 35 if (is_win) { | 41 if (is_win) { |
| 36 ldflags = [ | 42 ldflags = [ |
| 37 "/DELAYLOAD:mf.dll", | 43 "/DELAYLOAD:mf.dll", |
| 38 "/DELAYLOAD:mfplat.dll", | 44 "/DELAYLOAD:mfplat.dll", |
| 39 "/DELAYLOAD:mfreadwrite.dll", | 45 "/DELAYLOAD:mfreadwrite.dll", |
| 40 ] | 46 ] |
| 41 } | 47 } |
| 42 } | 48 } |
| 43 | 49 |
| 44 if (use_ozone) { | 50 if (use_ozone) { |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 750 deps = [ | 756 deps = [ |
| 751 ":media", | 757 ":media", |
| 752 ":shared_memory_support", | 758 ":shared_memory_support", |
| 753 "//base", | 759 "//base", |
| 754 "//ui/gl", | 760 "//ui/gl", |
| 755 "//ui/gfx", | 761 "//ui/gfx", |
| 756 "//ui/gfx/geometry", | 762 "//ui/gfx/geometry", |
| 757 ] | 763 ] |
| 758 } | 764 } |
| 759 } | 765 } |
| OLD | NEW |