OLD | NEW |
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("//build/config/ui.gni") |
5 import("//services/catalog/public/tools/catalog.gni") | 6 import("//services/catalog/public/tools/catalog.gni") |
6 import("//services/service_manager/public/cpp/service.gni") | 7 import("//services/service_manager/public/cpp/service.gni") |
7 import("//services/service_manager/public/service_manifest.gni") | 8 import("//services/service_manager/public/service_manifest.gni") |
8 import("//services/service_manager/public/tools/test/service_test.gni") | 9 import("//services/service_manager/public/tools/test/service_test.gni") |
9 import("//testing/test.gni") | 10 import("//testing/test.gni") |
10 | 11 |
11 source_set("lib") { | 12 source_set("lib") { |
12 sources = [ | 13 sources = [ |
13 "mus_demo.cc", | 14 "mus_demo.cc", |
14 "mus_demo.h", | 15 "mus_demo.h", |
15 "mus_demo_internal.cc", | |
16 "mus_demo_internal.h", | |
17 "window_tree_data.cc", | 16 "window_tree_data.cc", |
18 "window_tree_data.h", | 17 "window_tree_data.h", |
19 ] | 18 ] |
20 | 19 |
| 20 if (use_ozone && !is_chromeos) { |
| 21 sources += [ |
| 22 "mus_demo_external.cc", |
| 23 "mus_demo_external.h", |
| 24 ] |
| 25 } else { |
| 26 sources += [ |
| 27 "mus_demo_internal.cc", |
| 28 "mus_demo_internal.h", |
| 29 ] |
| 30 } |
| 31 |
21 public_deps = [ | 32 public_deps = [ |
22 "//services/service_manager/public/cpp:sources", | 33 "//services/service_manager/public/cpp:sources", |
23 "//skia", | 34 "//skia", |
24 ] | 35 ] |
25 | 36 |
26 deps = [ | 37 deps = [ |
27 "//base", | 38 "//base", |
28 "//mojo/public/cpp/bindings", | 39 "//mojo/public/cpp/bindings", |
29 "//services/service_manager/public/cpp", | 40 "//services/service_manager/public/cpp", |
30 "//services/ui/public/cpp", | 41 "//services/ui/public/cpp", |
31 "//services/ui/public/cpp:internal", | 42 "//services/ui/public/cpp:internal", |
32 "//services/ui/public/interfaces", | 43 "//services/ui/public/interfaces", |
33 "//ui/aura", | 44 "//ui/aura", |
34 "//ui/aura_extra", | 45 "//ui/aura_extra", |
35 "//ui/gfx/geometry", | 46 "//ui/gfx/geometry", |
36 "//ui/wm", | 47 "//ui/wm", |
37 ] | 48 ] |
38 } | 49 } |
39 | 50 |
40 service("mus_demo") { | 51 service("mus_demo") { |
41 sources = [ | 52 if (use_ozone && !is_chromeos) { |
42 "main.cc", | 53 sources = [ |
43 ] | 54 "main_external.cc", |
| 55 ] |
| 56 } else { |
| 57 sources = [ |
| 58 "main_internal.cc", |
| 59 ] |
| 60 } |
44 | 61 |
45 deps = [ | 62 deps = [ |
46 ":lib", | 63 ":lib", |
47 ] | 64 ] |
48 | 65 |
49 data_deps = [ | 66 data_deps = [ |
50 "//services/ui", | 67 "//services/ui", |
51 ] | 68 ] |
52 } | 69 } |
53 | 70 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 108 } |
92 | 109 |
93 catalog("mus_demo_unittests_catalog") { | 110 catalog("mus_demo_unittests_catalog") { |
94 embedded_services = [ ":test_manifest" ] | 111 embedded_services = [ ":test_manifest" ] |
95 | 112 |
96 standalone_services = [ | 113 standalone_services = [ |
97 ":manifest", | 114 ":manifest", |
98 "//services/ui:manifest", | 115 "//services/ui:manifest", |
99 ] | 116 ] |
100 } | 117 } |
OLD | NEW |