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

Side by Side Diff: components/mus/BUILD.gn

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/mus/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
7 import("//mojo/public/mojo_application.gni")
8 import("//mojo/public/mojo_application_manifest.gni")
9 import("//mojo/public/mojo_constants.gni")
10 import("//tools/grit/repack.gni")
11
12 group("all") {
13 testonly = true
14 deps = [
15 ":mus",
16 "//components/mus/test_wm",
17 ]
18 }
19
20 mojo_native_application("mus") {
21 sources = [
22 "main.cc",
23 ]
24
25 deps = [
26 ":lib",
27 ":resources_100",
28 ":resources_200",
29 ":resources_strings",
30 "//services/shell/public/cpp:sources",
31 "//services/tracing/public/interfaces",
32 ]
33
34 if (is_win) {
35 deps += [ ":copy_gl_libraries" ]
36 }
37
38 data_deps = [
39 ":manifest",
40 ]
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 }
48
49 mojo_application_manifest("manifest") {
50 application_name = "mus"
51 source = "manifest.json"
52 }
53
54 if (is_win) {
55 copy("copy_gl_libraries") {
56 deps = [
57 "//third_party/angle:libEGL",
58 "//third_party/angle:libGLESv2",
59 ]
60
61 sources = [
62 "$root_shlib_dir/libEGL.dll",
63 "$root_shlib_dir/libGLESv2.dll",
64 ]
65
66 outputs = [
67 "$root_out_dir/$mojo_application_subdir/mus/{{source_file_part}}",
68 ]
69 }
70 }
71
72 source_set("lib") {
73 sources = [
74 "mus_app.cc",
75 "mus_app.h",
76 ]
77
78 public_deps = [
79 "//components/mus/common:mus_common",
80 ]
81 deps = [
82 "//base",
83 "//cc",
84 "//cc/surfaces",
85 "//components/mus/clipboard:lib",
86 "//components/mus/gles2",
87 "//components/mus/gpu",
88 "//components/mus/gpu/display_compositor",
89 "//components/mus/input_devices",
90 "//components/mus/public/interfaces",
91 "//components/mus/surfaces",
92 "//components/mus/ws:lib",
93 "//components/mus/ws:test_interface",
94 "//mojo/common:common_base",
95 "//services/catalog/public/cpp",
96 "//services/shell/public/cpp",
97 "//services/tracing/public/cpp",
98 "//ui/events",
99 "//ui/events/ozone:events_ozone_layout",
100 "//ui/gl:gl",
101 "//ui/platform_window:platform_impls",
102 "//ui/platform_window:platform_window",
103 ]
104
105 if (use_x11) {
106 public_configs = [ "//build/config/linux:x11" ]
107 public_deps += [ "//ui/events/platform/x11" ]
108 }
109
110 if (use_ozone) {
111 deps += [ "//ui/ozone:ozone" ]
112 }
113 }
114
115 repack("resources_strings") {
116 sources = [
117 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
118 ]
119 output = "$root_out_dir/mus_app_resources_strings.pak"
120 deps = [
121 "//ui/strings",
122 ]
123 }
124
125 repack("resources_100") {
126 sources = [
127 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
128 ]
129 output = "$root_out_dir/mus_app_resources_100.pak"
130 deps = [
131 "//ui/resources",
132 ]
133 }
134
135 repack("resources_200") {
136 sources = [
137 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak",
138 ]
139 output = "$root_out_dir/mus_app_resources_200.pak"
140 deps = [
141 "//ui/resources",
142 ]
143 }
OLDNEW
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698