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

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

Issue 2164503006: Rename mojo_application GN templates to service* (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 | « services/tracing/BUILD.gn ('k') | services/ui/clipboard/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//mojo/public/mojo_application.gni") 7 import("//services/shell/public/cpp/service.gni")
8 import("//mojo/public/mojo_application_manifest.gni") 8 import("//services/shell/public/service_manifest.gni")
9 import("//mojo/public/mojo_constants.gni") 9 import("//services/shell/public/constants.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
11 11
12 group("all") { 12 group("all") {
13 testonly = true 13 testonly = true
14 deps = [ 14 deps = [
15 ":ui", 15 ":ui",
16 "//services/ui/test_wm", 16 "//services/ui/test_wm",
17 ] 17 ]
18 } 18 }
19 19
20 mojo_native_application("ui") { 20 service("ui") {
21 sources = [ 21 sources = [
22 "main.cc", 22 "main.cc",
23 ] 23 ]
24 24
25 deps = [ 25 deps = [
26 ":lib", 26 ":lib",
27 ":resources_100", 27 ":resources_100",
28 ":resources_200", 28 ":resources_200",
29 ":resources_strings", 29 ":resources_strings",
30 "//services/shell/public/cpp:sources", 30 "//services/shell/public/cpp:sources",
31 "//services/tracing/public/interfaces", 31 "//services/tracing/public/interfaces",
32 ] 32 ]
33 33
34 if (is_win) { 34 if (is_win) {
35 deps += [ ":copy_gl_libraries" ] 35 deps += [ ":copy_gl_libraries" ]
36 } 36 }
37 37
38 data_deps = [ 38 data_deps = [
39 ":manifest", 39 ":manifest",
40 ] 40 ]
41 41
42 resources = [ 42 resources = [
43 "$root_out_dir/mus_app_resources_strings.pak", 43 "$root_out_dir/mus_app_resources_strings.pak",
44 "$root_out_dir/mus_app_resources_100.pak", 44 "$root_out_dir/mus_app_resources_100.pak",
45 "$root_out_dir/mus_app_resources_200.pak", 45 "$root_out_dir/mus_app_resources_200.pak",
46 ] 46 ]
47 } 47 }
48 48
49 mojo_application_manifest("manifest") { 49 service_manifest("manifest") {
50 application_name = "ui" 50 name = "ui"
51 source = "manifest.json" 51 source = "manifest.json"
52 } 52 }
53 53
54 if (is_win) { 54 if (is_win) {
55 copy("copy_gl_libraries") { 55 copy("copy_gl_libraries") {
56 deps = [ 56 deps = [
57 "//third_party/angle:libEGL", 57 "//third_party/angle:libEGL",
58 "//third_party/angle:libGLESv2", 58 "//third_party/angle:libGLESv2",
59 ] 59 ]
60 60
61 sources = [ 61 sources = [
62 "$root_shlib_dir/libEGL.dll", 62 "$root_shlib_dir/libEGL.dll",
63 "$root_shlib_dir/libGLESv2.dll", 63 "$root_shlib_dir/libGLESv2.dll",
64 ] 64 ]
65 65
66 outputs = [ 66 outputs = [
67 "$root_out_dir/$mojo_application_subdir/ui/{{source_file_part}}", 67 "$root_out_dir/$packages_directory/ui/{{source_file_part}}",
68 ] 68 ]
69 } 69 }
70 } 70 }
71 71
72 source_set("lib") { 72 source_set("lib") {
73 sources = [ 73 sources = [
74 "service.cc", 74 "service.cc",
75 "service.h", 75 "service.h",
76 ] 76 ]
77 77
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 repack("resources_200") { 135 repack("resources_200") {
136 sources = [ 136 sources = [
137 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", 137 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak",
138 ] 138 ]
139 output = "$root_out_dir/mus_app_resources_200.pak" 139 output = "$root_out_dir/mus_app_resources_200.pak"
140 deps = [ 140 deps = [
141 "//ui/resources", 141 "//ui/resources",
142 ] 142 ]
143 } 143 }
OLDNEW
« no previous file with comments | « services/tracing/BUILD.gn ('k') | services/ui/clipboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698