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

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

Issue 2557213002: Build services as standalone executables (Closed)
Patch Set: remove DCHECKs with side effects -_- Created 4 years 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') | testing/buildbot/chromium.android.json » ('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("//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") 9 import("//services/service_manager/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/ime/test_ime_driver", 16 "//services/ui/ime/test_ime_driver",
17 "//services/ui/test_wm", 17 "//services/ui/test_wm",
18 ] 18 ]
19 } 19 }
20 20
21 service("ui") { 21 service("ui") {
22 sources = [ 22 sources = [
23 "main.cc", 23 "main.cc",
24 ] 24 ]
25 25
26 deps = [ 26 deps = [
27 ":copy_gl_libraries",
27 ":lib", 28 ":lib",
28 ":resources_100", 29 ":resources_100",
29 ":resources_200", 30 ":resources_200",
30 ":resources_strings", 31 ":resources_strings",
31 "//services/service_manager/public/cpp:sources", 32 "//services/service_manager/public/cpp:sources",
32 "//services/tracing/public/interfaces", 33 "//services/tracing/public/interfaces",
33 ] 34 ]
34 35
35 if (is_win) {
36 deps += [ ":copy_gl_libraries" ]
37 }
38
39 data_deps = [ 36 data_deps = [
37 ":copy_gl_libraries",
40 ":manifest", 38 ":manifest",
41 "//services/ui/ime/test_ime_driver", 39 "//services/ui/ime/test_ime_driver",
42 ] 40 ]
43 41
44 resources = [ 42 resources = [
45 "$root_out_dir/mus_app_resources_strings.pak", 43 "$root_out_dir/mus_app_resources_strings.pak",
46 "$root_out_dir/mus_app_resources_100.pak", 44 "$root_out_dir/mus_app_resources_100.pak",
47 "$root_out_dir/mus_app_resources_200.pak", 45 "$root_out_dir/mus_app_resources_200.pak",
48 ] 46 ]
49 } 47 }
50 48
51 service_manifest("manifest") { 49 service_manifest("manifest") {
52 name = "ui" 50 name = "ui"
53 source = "manifest.json" 51 source = "manifest.json"
54 } 52 }
55 53
56 if (is_win) { 54 copy("copy_gl_libraries") {
57 copy("copy_gl_libraries") { 55 deps = [
58 deps = [ 56 "//third_party/mesa:osmesa",
57 ]
58
59 if (is_win) {
60 deps += [
59 "//third_party/angle:libEGL", 61 "//third_party/angle:libEGL",
60 "//third_party/angle:libGLESv2", 62 "//third_party/angle:libGLESv2",
61 ] 63 ]
62 64
63 sources = [ 65 sources = [
64 "$root_shlib_dir/libEGL.dll", 66 "$root_shlib_dir/libEGL.dll",
65 "$root_shlib_dir/libGLESv2.dll", 67 "$root_shlib_dir/libGLESv2.dll",
68 "$root_shlib_dir/osmesa.dll",
66 ] 69 ]
70 } else if (is_android || is_linux) {
71 sources = [
72 "$root_shlib_dir/libosmesa.so",
73 ]
74 } else {
75 sources = []
76 }
67 77
68 outputs = [ 78 outputs = [
69 "$root_out_dir/$packages_directory/ui/{{source_file_part}}", 79 "$root_out_dir/$packages_directory/ui/{{source_file_part}}",
70 ] 80 ]
71 }
72 } 81 }
73 82
74 source_set("lib") { 83 source_set("lib") {
75 sources = [ 84 sources = [
76 "service.cc", 85 "service.cc",
77 "service.h", 86 "service.h",
78 ] 87 ]
79 88
80 public_deps = [ 89 public_deps = [
81 "//services/ui/common:mus_common", 90 "//services/ui/common:mus_common",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 145
137 repack("resources_200") { 146 repack("resources_200") {
138 sources = [ 147 sources = [
139 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", 148 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak",
140 ] 149 ]
141 output = "$root_out_dir/mus_app_resources_200.pak" 150 output = "$root_out_dir/mus_app_resources_200.pak"
142 deps = [ 151 deps = [
143 "//ui/resources", 152 "//ui/resources",
144 ] 153 ]
145 } 154 }
OLDNEW
« no previous file with comments | « services/tracing/BUILD.gn ('k') | testing/buildbot/chromium.android.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698