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

Side by Side Diff: mojo/shell/BUILD.gn

Issue 477923004: Create native_viewport_service, don't build it into mojo_shell unless Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try to get gn build working again Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//mojo/public/tools/bindings/mojom.gni") 5 import("//mojo/public/tools/bindings/mojom.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 executable("mojo_shell") { 8 executable("mojo_shell") {
9 deps = [ 9 deps = [
10 ":lib", 10 ":lib",
11 "//base", 11 "//base",
12 "//mojo/common", 12 "//mojo/common",
13 "//mojo/environment:chromium", 13 "//mojo/environment:chromium",
14 "//mojo/application_manager", 14 "//mojo/application_manager",
15 "//mojo/system",
16 "//third_party/icu",
17 "//ui/gl",
18 "//url",
19 ] 15 ]
20 16
21 if (use_ozone) { 17 if (use_ozone) {
22 deps += [ "//ui/ozone" ] 18 deps += [ "//ui/ozone" ]
23 } 19 }
24 20
25 sources = [ 21 sources = [
26 "desktop/mojo_main.cc" 22 "desktop/mojo_main.cc"
27 ] 23 ]
28 } 24 }
29 25
30 # GYP version: mojo/mojo.gyp:mojo_shell_lib 26 # GYP version: mojo/mojo.gyp:mojo_shell_lib
31 source_set("lib") { 27 source_set("lib") {
32 deps = [ 28 deps = [
33 ":app_child_process_bindings", 29 ":app_child_process_bindings",
34 ":external_service_bindings", 30 ":external_service_bindings",
35 "//base", 31 "//base",
36 "//base/third_party/dynamic_annotations", 32 "//base/third_party/dynamic_annotations",
37 "//base:base_static", 33 "//base:base_static",
38 "//mojo/application", 34 "//mojo/application",
39 "//mojo/application_manager", 35 "//mojo/application_manager",
40 "//mojo/common", 36 "//mojo/common",
41 "//mojo/gles2", 37 "//mojo/gles2",
42 "//mojo/public/interfaces/application", 38 "//mojo/public/interfaces/application",
43 "//mojo/services/native_viewport",
44 "//mojo/services/public/interfaces/native_viewport",
45 "//mojo/services/public/interfaces/network", 39 "//mojo/services/public/interfaces/network",
46 "//mojo/spy", 40 "//mojo/spy",
47 "//mojo/system", 41 "//mojo/system",
48 "//net",
49 "//url",
50 ] 42 ]
51 43
52 sources = [ 44 sources = [
53 "app_child_process.cc", 45 "app_child_process.cc",
54 "app_child_process.h", 46 "app_child_process.h",
55 "app_child_process_host.cc", 47 "app_child_process_host.cc",
56 "app_child_process_host.h", 48 "app_child_process_host.h",
57 "child_process.cc", 49 "child_process.cc",
58 "child_process.h", 50 "child_process.h",
59 "child_process_host.cc", 51 "child_process_host.cc",
(...skipping 22 matching lines...) Expand all
82 "ui_application_loader_android.cc", 74 "ui_application_loader_android.cc",
83 "ui_application_loader_android.h", 75 "ui_application_loader_android.h",
84 ] 76 ]
85 77
86 if (is_linux) { 78 if (is_linux) {
87 deps += [ 79 deps += [
88 "//dbus" 80 "//dbus"
89 ] 81 ]
90 } else if (is_android) { 82 } else if (is_android) {
91 deps += [ 83 deps += [
84 "//mojo/services/native_viewport:lib",
92 "//mojo/services/network:lib", 85 "//mojo/services/network:lib",
93 ] 86 ]
94 sources += [ 87 sources += [
95 "network_application_loader.cc", 88 "network_application_loader.cc",
96 "network_application_loader.h", 89 "network_application_loader.h",
97 ] 90 ]
98 } 91 }
99 if (use_aura) {
100 deps += [
101 # These are only necessary as long as we hard code use of ViewManager.
102 "//skia",
103 "//mojo/services/view_manager",
104 "//mojo/services/public/interfaces/view_manager",
105 ]
106 sources += [
107 "view_manager_loader.cc",
108 "view_manager_loader.h",
109 ]
110 }
111 } 92 }
112 93
113 mojom("app_child_process_bindings") { 94 mojom("app_child_process_bindings") {
114 sources = [ 95 sources = [
115 "app_child_process.mojom" 96 "app_child_process.mojom"
116 ] 97 ]
117 } 98 }
118 99
119 mojom("external_service_bindings") { 100 mojom("external_service_bindings") {
120 sources = [ 101 sources = [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 151
171 deps = [ 152 deps = [
172 ":lib", 153 ":lib",
173 "//base", 154 "//base",
174 "//base:base_static", 155 "//base:base_static",
175 "//mojo/application_manager", 156 "//mojo/application_manager",
176 "//mojo/system", 157 "//mojo/system",
177 "//url", 158 "//url",
178 ] 159 ]
179 } 160 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698