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

Side by Side Diff: services/ui/demo/BUILD.gn

Issue 2622103004: Mus Demo: Demonstrate external window mode (Closed)
Patch Set: Add MusDemoExternal 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//services/catalog/public/tools/catalog.gni") 5 import("//services/catalog/public/tools/catalog.gni")
6 import("//services/service_manager/public/cpp/service.gni") 6 import("//services/service_manager/public/cpp/service.gni")
7 import("//services/service_manager/public/service_manifest.gni") 7 import("//services/service_manager/public/service_manifest.gni")
8 import("//services/service_manager/public/tools/test/service_test.gni") 8 import("//services/service_manager/public/tools/test/service_test.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
11 source_set("lib") { 11 source_set("lib") {
12 sources = [ 12 sources = [
13 "mus_demo.cc", 13 "mus_demo.cc",
14 "mus_demo.h", 14 "mus_demo.h",
15 "mus_demo_external.cc",
16 "mus_demo_external.h",
15 "mus_demo_internal.cc", 17 "mus_demo_internal.cc",
16 "mus_demo_internal.h", 18 "mus_demo_internal.h",
17 ] 19 ]
18 20
19 public_deps = [ 21 public_deps = [
20 "//services/service_manager/public/cpp:sources", 22 "//services/service_manager/public/cpp:sources",
21 "//skia", 23 "//skia",
22 ] 24 ]
23 25
24 deps = [ 26 deps = [
25 "//base", 27 "//base",
26 "//mojo/public/cpp/bindings", 28 "//mojo/public/cpp/bindings",
27 "//services/service_manager/public/cpp", 29 "//services/service_manager/public/cpp",
28 "//services/ui/public/cpp", 30 "//services/ui/public/cpp",
29 "//services/ui/public/cpp:internal", 31 "//services/ui/public/cpp:internal",
30 "//services/ui/public/interfaces", 32 "//services/ui/public/interfaces",
31 "//ui/aura", 33 "//ui/aura",
32 "//ui/aura_extra", 34 "//ui/aura_extra",
33 "//ui/gfx/geometry", 35 "//ui/gfx/geometry",
34 "//ui/wm", 36 "//ui/wm",
35 ] 37 ]
36 } 38 }
37 39
40 service("mus_demo_external") {
41 sources = [
42 "main_external.cc",
43 ]
44
45 deps = [
46 ":lib",
47 ]
48
49 data_deps = [
50 "//services/ui",
51 ]
52 }
53
38 service("mus_demo_internal") { 54 service("mus_demo_internal") {
39 sources = [ 55 sources = [
40 "main_internal.cc", 56 "main_internal.cc",
41 ] 57 ]
42 58
43 deps = [ 59 deps = [
44 ":lib", 60 ":lib",
45 ] 61 ]
46 62
47 data_deps = [ 63 data_deps = [
48 "//services/ui", 64 "//services/ui",
49 ] 65 ]
50 } 66 }
51 67
68 service_manifest("manifest_external") {
69 name = "mus_demo_external"
70 source = "manifest_external.json"
71 }
72
52 service_manifest("manifest_internal") { 73 service_manifest("manifest_internal") {
53 name = "mus_demo_internal" 74 name = "mus_demo_internal"
54 source = "manifest_internal.json" 75 source = "manifest_internal.json"
55 } 76 }
56 77
57 service_manifest("test_manifest") { 78 service_manifest("test_manifest") {
58 name = "mus_demo_unittests" 79 name = "mus_demo_unittests"
59 source = "test_manifest.json" 80 source = "test_manifest.json"
60 } 81 }
61 82
62 service_test("mus_demo_unittests") { 83 service_test("mus_demo_unittests") {
63 testonly = true 84 testonly = true
64 85
65 sources = [ 86 sources = [
66 "mus_demo_unittests.cc", 87 "mus_demo_unittests.cc",
67 ] 88 ]
68 89
69 catalog = ":mus_demo_unittests_catalog" 90 catalog = ":mus_demo_unittests_catalog"
70 91
71 deps = [ 92 deps = [
72 ":demo", 93 ":demo",
73 "//base", 94 "//base",
74 "//services/service_manager/public/cpp", 95 "//services/service_manager/public/cpp",
75 "//services/service_manager/public/cpp:service_test_support", 96 "//services/service_manager/public/cpp:service_test_support",
76 "//services/ui/public/interfaces", 97 "//services/ui/public/interfaces",
77 "//testing/gtest", 98 "//testing/gtest",
78 ] 99 ]
79 100
80 data_deps = [ 101 data_deps = [
102 ":mus_demo_external",
81 ":mus_demo_internal", 103 ":mus_demo_internal",
82 ] 104 ]
83 } 105 }
84 106
85 group("demo") { 107 group("demo") {
86 deps = [ 108 deps = [
109 ":mus_demo_external",
87 ":mus_demo_internal", 110 ":mus_demo_internal",
88 ] 111 ]
89 } 112 }
90 113
91 catalog("mus_demo_unittests_catalog") { 114 catalog("mus_demo_unittests_catalog") {
92 embedded_services = [ ":test_manifest" ] 115 embedded_services = [ ":test_manifest" ]
93 116
94 standalone_services = [ 117 standalone_services = [
118 ":manifest_external",
95 ":manifest_internal", 119 ":manifest_internal",
96 "//services/ui:manifest", 120 "//services/ui:manifest",
97 ] 121 ]
98 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698