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

Unified Diff: media/media_options.gni

Issue 396793003: Factorize media/audio into new GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing audio deps. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/media_options.gni
diff --git a/media/media_options.gni b/media/media_options.gni
new file mode 100644
index 0000000000000000000000000000000000000000..6bd1f5a6aa0a2dd69a13f3fd3fc47b02bf0ad52d
--- /dev/null
+++ b/media/media_options.gni
@@ -0,0 +1,45 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# These variables need to be args.
+
+# Override to dynamically link the cras (ChromeOS audio) library.
+use_cras = false
+
+# Option e.g. for Linux distributions to link pulseaudio directly
+# (DT_NEEDED) instead of using dlopen. This helps with automated
+# detection of ABI mismatches and prevents silent errors.
+#
+# TODO(ajwong): Why is this prefixed "linux_"?
+linux_link_pulseaudio = false
+
+# TODO(ajwong): Enable libvpx once that's converted.
+media_use_ffmpeg = true
+media_use_libvpx = false
+if (is_android) {
+ # Android doesn't use ffmpeg or libvpx.
+ media_use_ffmpeg = false
+ media_use_libvpx = false
+}
+
+# TODO(ajwong): how to disable embedded?
+# Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1
+use_alsa = false
+use_pulseaudio = false
+if (is_posix && !is_android) {
+ use_alsa = true
+ if (!use_cras) {
+ use_pulseaudio = true
+ }
+}
+
+# TODO(ajwong): is_openbsd should be a platform define.
+is_openbsd = false
+
+# TODO(ajwong): This should be branding controlled?
+proprietary_codecs = false
+
+# TODO(ajwong): Where are these coming from?jk
+enable_mpeg2ts_stream_parser = false
+enable_browser_cdms = is_android
« no previous file with comments | « media/audio/audio_low_latency_input_output_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698