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

Unified Diff: chromecast/chromecast.gni

Issue 1345013002: Add is_chromecast to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase + ui changes. Created 5 years, 3 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 | « chromecast/build/args.gn ('k') | chromecast/graphics/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/chromecast.gni
diff --git a/chromecast/chromecast.gni b/chromecast/chromecast.gni
index 610b179aeb94553483e92a4547f52b135ff87514..5fe8adb4893f8b828a6a543b6d92f16b57ce20bb 100644
--- a/chromecast/chromecast.gni
+++ b/chromecast/chromecast.gni
@@ -2,10 +2,35 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# This args block should contain arguments used within the //chromecast
+# directory. Arguments which are used in other Chrome components should
+# be instead declared in //build/config/chromecast_build.gni.
declare_args() {
- # chromecast_branding is used to indicate build version. Set it to
- # "public" for Chromium build.
+ # chromecast_branding is used to include or exclude Google-branded components.
+ # Set it to "public" for a Chromium build.
chromecast_branding = "public"
+ # True if Chromecast build is targetted for linux desktop.
+ is_chromecast_desktop_build = is_linux && target_cpu != "arm"
+
+ # Use the stub graphics lib in //chromecast/graphics. If this is true, the
+ # value of |libcast_graphics_path| is ignored.
+ use_default_cast_graphics =
+ chromecast_branding == "public" || is_chromecast_desktop_build
+
+ # The path to the cast_graphics shared library. Any target pointed to must
+ # be named "libcast_graphics_1.0".
+ libcast_graphics_path = ""
+
+ # Use the stub media library in //chromecast/media. If this is true, the
+ # value of |libcast_media_path| is ignored.
+ use_default_cast_media =
+ chromecast_branding == "public" || is_chromecast_desktop_build
+
+ # The path to the cast_media shared library. Any target pointed to must be
+ # named "libcast_media_1.0".
+ libcast_media_path = ""
+
+ # Use Playready CDMs.
use_playready = false
}
« no previous file with comments | « chromecast/build/args.gn ('k') | chromecast/graphics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698