Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: media/BUILD.gn

Issue 839763002: fix builds with vpx and/or ffmpeg disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add fixups Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
41 if (!media_use_ffmpeg) {
42 defines += [ "MEDIA_DISABLE_FFMPEG" ]
43 }
35 if (is_win) { 44 if (is_win) {
36 ldflags = [ 45 ldflags = [
37 "/DELAYLOAD:mf.dll", 46 "/DELAYLOAD:mf.dll",
38 "/DELAYLOAD:mfplat.dll", 47 "/DELAYLOAD:mfplat.dll",
39 "/DELAYLOAD:mfreadwrite.dll", 48 "/DELAYLOAD:mfreadwrite.dll",
40 ] 49 ]
41 } 50 }
42 } 51 }
43 52
44 if (use_ozone) { 53 if (use_ozone) {
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 deps = [ 759 deps = [
751 ":media", 760 ":media",
752 ":shared_memory_support", 761 ":shared_memory_support",
753 "//base", 762 "//base",
754 "//ui/gl", 763 "//ui/gl",
755 "//ui/gfx", 764 "//ui/gfx",
756 "//ui/gfx/geometry", 765 "//ui/gfx/geometry",
757 ] 766 ]
758 } 767 }
759 } 768 }
OLDNEW
« no previous file with comments | « no previous file | media/filters/default_renderer_factory.cc » ('j') | media/filters/default_renderer_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698