OLD | NEW |
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", |
(...skipping 15 matching lines...) Expand all Loading... |
26 "desktop/mojo_main.cc" | 26 "desktop/mojo_main.cc" |
27 ] | 27 ] |
28 } | 28 } |
29 source_set("lib") { | 29 source_set("lib") { |
30 deps = [ | 30 deps = [ |
31 ":app_child_process_bindings", | 31 ":app_child_process_bindings", |
32 ":external_service_bindings", | 32 ":external_service_bindings", |
33 "//base", | 33 "//base", |
34 "//base/third_party/dynamic_annotations", | 34 "//base/third_party/dynamic_annotations", |
35 "//base:base_static", | 35 "//base:base_static", |
| 36 "//mojo/application_manager", |
36 "//mojo/common", | 37 "//mojo/common", |
37 "//mojo/gles2", | 38 "//mojo/gles2", |
38 "//mojo/public/cpp/application:chromium", | 39 "//mojo/public/cpp/application:chromium", |
| 40 "//mojo/public/gles2", |
39 "//mojo/public/interfaces/application", | 41 "//mojo/public/interfaces/application", |
40 "//mojo/application_manager", | |
41 "//mojo/services/native_viewport", | 42 "//mojo/services/native_viewport", |
42 "//mojo/services/public/interfaces/native_viewport", | 43 "//mojo/services/public/interfaces/native_viewport", |
43 "//mojo/services/public/interfaces/network", | 44 "//mojo/services/public/interfaces/network", |
44 "//mojo/spy", | 45 "//mojo/spy", |
45 "//mojo/system", | 46 "//mojo/system", |
46 "//net", | 47 "//net", |
47 "//url", | 48 "//url", |
48 ] | 49 ] |
49 | 50 |
50 sources = [ | 51 sources = [ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ] | 96 ] |
96 sources += [ | 97 sources += [ |
97 "network_application_loader.cc", | 98 "network_application_loader.cc", |
98 "network_application_loader.h", | 99 "network_application_loader.h", |
99 ] | 100 ] |
100 } | 101 } |
101 if (use_aura) { | 102 if (use_aura) { |
102 deps += [ | 103 deps += [ |
103 # These are only necessary as long as we hard code use of ViewManager. | 104 # These are only necessary as long as we hard code use of ViewManager. |
104 "//skia", | 105 "//skia", |
105 "//mojo/public/gles2", | |
106 "//mojo/services/view_manager", | 106 "//mojo/services/view_manager", |
107 "//mojo/services/public/interfaces/view_manager", | 107 "//mojo/services/public/interfaces/view_manager", |
108 ] | 108 ] |
109 sources += [ | 109 sources += [ |
110 "view_manager_loader.cc", | 110 "view_manager_loader.cc", |
111 "view_manager_loader.h", | 111 "view_manager_loader.h", |
112 ] | 112 ] |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 mojom("app_child_process_bindings") { | 116 mojom("app_child_process_bindings") { |
117 sources = [ | 117 sources = [ |
118 "app_child_process.mojom" | 118 "app_child_process.mojom" |
119 ] | 119 ] |
120 } | 120 } |
121 | 121 |
122 mojom("external_service_bindings") { | 122 mojom("external_service_bindings") { |
123 sources = [ | 123 sources = [ |
124 "external_service.mojom" | 124 "external_service.mojom" |
125 ] | 125 ] |
126 } | 126 } |
| 127 |
| 128 test("mojo_shell_tests") { |
| 129 deps = [ |
| 130 ":lib", |
| 131 "//base", |
| 132 "//base:i18n", |
| 133 "//base/test:test_support", |
| 134 "//testing/gtest", |
| 135 "//net:test_support", |
| 136 "//url", |
| 137 "//mojo/application_manager", |
| 138 "//mojo/services/test_service:bindings", |
| 139 "//mojo/common", |
| 140 "//mojo/environment:chromium", |
| 141 "//mojo/system", |
| 142 ] |
| 143 |
| 144 datadeps = [ |
| 145 "//mojo/services/test_service:mojo_test_app", |
| 146 "//mojo/services/test_service:mojo_test_request_tracker_app", |
| 147 ] |
| 148 |
| 149 sources = [ |
| 150 "child_process_host_unittest.cc", |
| 151 "dynamic_application_loader_unittest.cc", |
| 152 "in_process_dynamic_service_runner_unittest.cc", |
| 153 "shell_test_base.cc", |
| 154 "shell_test_base.h", |
| 155 "shell_test_base_unittest.cc", |
| 156 "shell_test_main.cc", |
| 157 ] |
| 158 |
| 159 if (is_android) { |
| 160 deps += [ |
| 161 # TODO(GYP): |
| 162 #'../testing/android/native_test.gyp:native_test_native_code', |
| 163 ] |
| 164 } |
| 165 } |
OLD | NEW |