OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//services/service_manager/public/cpp/service.gni") | 7 import("//services/service_manager/public/cpp/service.gni") |
8 import("//services/service_manager/public/service_manifest.gni") | 8 import("//services/service_manager/public/service_manifest.gni") |
9 import("//services/service_manager/public/constants.gni") | |
10 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
11 | 10 |
12 group("all") { | 11 group("all") { |
13 testonly = true | 12 testonly = true |
14 deps = [ | 13 deps = [ |
15 ":ui", | 14 ":ui", |
16 "//services/ui/ime/test_ime_driver", | 15 "//services/ui/ime/test_ime_driver", |
17 "//services/ui/test_wm", | 16 "//services/ui/test_wm", |
18 ] | 17 ] |
19 } | 18 } |
20 | 19 |
21 service("ui") { | 20 service("ui") { |
22 sources = [ | 21 sources = [ |
23 "main.cc", | 22 "main.cc", |
24 ] | 23 ] |
25 | 24 |
26 deps = [ | 25 deps = [ |
27 ":copy_gl_libraries", | |
28 ":lib", | 26 ":lib", |
29 ":resources_100", | |
30 ":resources_200", | |
31 ":resources_strings", | |
32 "//services/service_manager/public/cpp:sources", | 27 "//services/service_manager/public/cpp:sources", |
33 "//services/tracing/public/interfaces", | 28 "//services/tracing/public/interfaces", |
34 ] | 29 ] |
35 | 30 |
36 data_deps = [ | 31 data_deps = [ |
37 ":copy_gl_libraries", | 32 ":resources_100", |
38 ":manifest", | 33 ":resources_200", |
| 34 ":resources_strings", |
39 "//services/ui/ime/test_ime_driver", | 35 "//services/ui/ime/test_ime_driver", |
40 ] | 36 ] |
41 | |
42 resources = [ | |
43 "$root_out_dir/mus_app_resources_strings.pak", | |
44 "$root_out_dir/mus_app_resources_100.pak", | |
45 "$root_out_dir/mus_app_resources_200.pak", | |
46 ] | |
47 } | 37 } |
48 | 38 |
49 service_manifest("manifest") { | 39 service_manifest("manifest") { |
50 name = "ui" | 40 name = "ui" |
51 source = "manifest.json" | 41 source = "manifest.json" |
52 } | 42 } |
53 | 43 |
54 copy("copy_gl_libraries") { | |
55 deps = [ | |
56 "//third_party/mesa:osmesa", | |
57 ] | |
58 | |
59 if (is_win) { | |
60 deps += [ | |
61 "//third_party/angle:libEGL", | |
62 "//third_party/angle:libGLESv2", | |
63 ] | |
64 | |
65 sources = [ | |
66 "$root_shlib_dir/libEGL.dll", | |
67 "$root_shlib_dir/libGLESv2.dll", | |
68 "$root_shlib_dir/osmesa.dll", | |
69 ] | |
70 } else if (is_android || is_linux) { | |
71 sources = [ | |
72 "$root_shlib_dir/libosmesa.so", | |
73 ] | |
74 } else { | |
75 sources = [] | |
76 } | |
77 | |
78 outputs = [ | |
79 "$root_out_dir/$packages_directory/ui/{{source_file_part}}", | |
80 ] | |
81 } | |
82 | |
83 source_set("lib") { | 44 source_set("lib") { |
84 sources = [ | 45 sources = [ |
85 "service.cc", | 46 "service.cc", |
86 "service.h", | 47 "service.h", |
87 ] | 48 ] |
88 | 49 |
89 public_deps = [ | 50 public_deps = [ |
90 "//services/ui/common:mus_common", | 51 "//services/ui/common:mus_common", |
91 ] | 52 ] |
92 deps = [ | 53 deps = [ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 109 |
149 repack("resources_200") { | 110 repack("resources_200") { |
150 sources = [ | 111 sources = [ |
151 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", | 112 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", |
152 ] | 113 ] |
153 output = "$root_out_dir/mus_app_resources_200.pak" | 114 output = "$root_out_dir/mus_app_resources_200.pak" |
154 deps = [ | 115 deps = [ |
155 "//ui/resources", | 116 "//ui/resources", |
156 ] | 117 ] |
157 } | 118 } |
OLD | NEW |