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

Unified Diff: chromecast/graphics/BUILD.gn

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/chromecast.gni ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/BUILD.gn
diff --git a/chromecast/graphics/BUILD.gn b/chromecast/graphics/BUILD.gn
index f07a87154354163b625be19de5dff4c5ca38b7c9..7ba48c8dab8c1a56696a7aa5327ce36b01e67815 100644
--- a/chromecast/graphics/BUILD.gn
+++ b/chromecast/graphics/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//chromecast/chromecast.gni")
+
source_set("graphics") {
sources = [
"cast_screen.cc",
@@ -14,3 +16,35 @@ source_set("graphics") {
"//ui/gfx/geometry",
]
}
+
+group("libcast_graphics") {
+ if (use_default_cast_graphics) {
+ public_deps = [
+ ":libcast_graphics_default",
+ ]
+ } else {
+ public_deps = [
+ "$libcast_graphics_path:libcast_graphics_1.0",
+ ]
+ }
+}
+
+if (use_default_cast_graphics) {
+ shared_library("libcast_graphics_default") {
+ output_name = "libcast_graphics_1.0"
+
+ sources = [
+ "cast_egl_platform_default.cc",
+ "graphics_properties_default.cc",
+ "osd_plane_default.cc",
+ ]
+
+ public_deps = [
+ "//chromecast/public",
+ ]
+
+ deps = [
+ "//base",
+ ]
+ }
+}
« no previous file with comments | « chromecast/chromecast.gni ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698