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

Unified Diff: services/ui/demo/BUILD.gn

Issue 2622103004: Mus Demo: Demonstrate external window mode (Closed)
Patch Set: Add description of internal VS external modes ; fix namespace comment Created 3 years, 10 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 | « no previous file | services/ui/demo/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/BUILD.gn
diff --git a/services/ui/demo/BUILD.gn b/services/ui/demo/BUILD.gn
index 837da1fed2aa6bc7a4d608a1e37b13d6f245be00..15b5438089056c20eb39b567f84f08cff6964672 100644
--- a/services/ui/demo/BUILD.gn
+++ b/services/ui/demo/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/ui.gni")
import("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
@@ -12,12 +13,22 @@ source_set("lib") {
sources = [
"mus_demo.cc",
"mus_demo.h",
- "mus_demo_internal.cc",
- "mus_demo_internal.h",
"window_tree_data.cc",
"window_tree_data.h",
]
+ if (use_ozone && !is_chromeos) {
+ sources += [
+ "mus_demo_external.cc",
+ "mus_demo_external.h",
+ ]
+ } else {
+ sources += [
+ "mus_demo_internal.cc",
+ "mus_demo_internal.h",
+ ]
+ }
+
public_deps = [
"//services/service_manager/public/cpp:sources",
"//skia",
@@ -38,9 +49,15 @@ source_set("lib") {
}
service("mus_demo") {
- sources = [
- "main.cc",
- ]
+ if (use_ozone && !is_chromeos) {
+ sources = [
+ "main_external.cc",
+ ]
+ } else {
+ sources = [
+ "main_internal.cc",
+ ]
+ }
deps = [
":lib",
« no previous file with comments | « no previous file | services/ui/demo/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698