Index: media/BUILD.gn |
diff --git a/media/BUILD.gn b/media/BUILD.gn |
index 4445c3281299cfd2a9738f9e70e1365ceaeb6df9..095c9879919135bde1b8c087294c611234e00934 100644 |
--- a/media/BUILD.gn |
+++ b/media/BUILD.gn |
@@ -13,6 +13,12 @@ import("//media/media_options.gni") |
# NOT for exporting. |
config("media_config") { |
defines = [ "MEDIA_IMPLEMENTATION" ] |
+ if (!media_use_libvpx) { |
+ defines += [ "MEDIA_DISABLE_LIBVPX" ] |
+ } |
+ if (!media_use_ffmpeg) { |
+ defines += [ "MEDIA_DISABLE_FFMPEG" ] |
+ } |
if (cpu_arch == "arm" && arm_use_neon) { |
defines += [ "USE_NEON" ] |
} |