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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//mojo/public/mojo.gni") | 6 import("//mojo/public/mojo.gni") |
7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//mojo/tools/embed/rules.gni") | 9 import("//mojo/tools/embed/rules.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 26 matching lines...) Expand all Loading... |
37 ] | 37 ] |
38 } | 38 } |
39 | 39 |
40 if (is_android) { | 40 if (is_android) { |
41 import("//build/config/android/config.gni") | 41 import("//build/config/android/config.gni") |
42 import("//build/config/android/rules.gni") | 42 import("//build/config/android/rules.gni") |
43 } | 43 } |
44 | 44 |
45 if (!mojo_use_prebuilt_mojo_shell) { | 45 if (!mojo_use_prebuilt_mojo_shell) { |
46 shell_common_deps = [ | 46 shell_common_deps = [ |
47 ":lib", | 47 ":parent_lib", |
48 "//base", | 48 "//base", |
49 "//base/allocator", | 49 "//base/allocator", |
50 "//build/config/sanitizers:deps", | 50 "//build/config/sanitizers:deps", |
51 "//mojo/common", | 51 "//mojo/common", |
52 "//mojo/environment:chromium", | 52 "//mojo/environment:chromium", |
53 ] | 53 ] |
54 shell_common_data_deps = [ ":mojo_shell_child" ] | 54 shell_common_data_deps = [ ":mojo_shell_child" ] |
55 | 55 |
56 if (is_android) { | 56 if (is_android) { |
57 shared_library("mojo_shell") { | 57 shared_library("mojo_shell") { |
(...skipping 25 matching lines...) Expand all Loading... |
83 data_deps = shell_common_data_deps | 83 data_deps = shell_common_data_deps |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 executable("mojo_shell_child") { | 87 executable("mojo_shell_child") { |
88 sources = [ | 88 sources = [ |
89 "child_main.cc", | 89 "child_main.cc", |
90 ] | 90 ] |
91 | 91 |
92 deps = [ | 92 deps = [ |
93 # TODO(vtl): Reduce these dependencies (probably mostly in :lib). | |
94 ":child_controller_bindings", | 93 ":child_controller_bindings", |
95 ":common_lib", | 94 ":common_lib", |
96 "//base", | 95 "//base", |
97 "//base/allocator", | 96 "//base/allocator", |
98 "//build/config/sanitizers:deps", | 97 "//build/config/sanitizers:deps", |
99 "//mojo/common", | 98 "//mojo/common", |
100 "//mojo/edk/system", | 99 "//mojo/edk/system", |
101 "//mojo/environment:chromium", | 100 "//mojo/environment:chromium", |
102 ] | 101 ] |
103 } | 102 } |
104 } # !mojo_use_prebuilt_mojo_shell | 103 } # !mojo_use_prebuilt_mojo_shell |
105 | 104 |
106 # Files used both by mojo_shell and mojo_shell_child (and tests). | 105 # Files used both by mojo_shell and mojo_shell_child (and tests). |
107 source_set("common_lib") { | 106 source_set("common_lib") { |
108 sources = [ | 107 sources = [ |
| 108 "child_switches.cc", |
| 109 "child_switches.h", |
109 "init.cc", | 110 "init.cc", |
110 "init.h", | 111 "init.h", |
111 ] | 112 ] |
112 | 113 |
113 deps = [ | 114 deps = [ |
114 "//base", | 115 "//base", |
115 ] | 116 ] |
116 | 117 |
117 public_deps = [ | 118 public_deps = [ |
118 ":native_application_support", | 119 ":native_application_support", |
119 ":switches", | |
120 ] | 120 ] |
121 } | 121 } |
122 | 122 |
123 # TODO(vtl): Split this target into parent/child/common libs. | 123 source_set("parent_lib") { |
124 source_set("lib") { | |
125 sources = [ | 124 sources = [ |
126 "background_application_loader.cc", | 125 "background_application_loader.cc", |
127 "background_application_loader.h", | 126 "background_application_loader.h", |
128 "child_process_host.cc", | 127 "child_process_host.cc", |
129 "child_process_host.h", | 128 "child_process_host.h", |
130 "command_line_util.cc", | 129 "command_line_util.cc", |
131 "command_line_util.h", | 130 "command_line_util.h", |
132 "context.cc", | 131 "context.cc", |
133 "context.h", | 132 "context.h", |
134 "filename_util.cc", | 133 "filename_util.cc", |
135 "filename_util.h", | 134 "filename_util.h", |
136 "in_process_native_runner.cc", | 135 "in_process_native_runner.cc", |
137 "in_process_native_runner.h", | 136 "in_process_native_runner.h", |
138 "out_of_process_native_runner.cc", | 137 "out_of_process_native_runner.cc", |
139 "out_of_process_native_runner.h", | 138 "out_of_process_native_runner.h", |
| 139 "switches.cc", |
| 140 "switches.h", |
140 "task_runners.cc", | 141 "task_runners.cc", |
141 "task_runners.h", | 142 "task_runners.h", |
142 "tracer.cc", | 143 "tracer.cc", |
143 "tracer.h", | 144 "tracer.h", |
144 "url_resolver.cc", | 145 "url_resolver.cc", |
145 "url_resolver.h", | 146 "url_resolver.h", |
146 "url_response_disk_cache_loader.cc", | 147 "url_response_disk_cache_loader.cc", |
147 "url_response_disk_cache_loader.h", | 148 "url_response_disk_cache_loader.h", |
148 ] | 149 ] |
149 | 150 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 222 |
222 # This target has to include the public thunk headers, which generally | 223 # This target has to include the public thunk headers, which generally |
223 # shouldn't be included without picking an implementation. We are providing | 224 # shouldn't be included without picking an implementation. We are providing |
224 # the implementation but the thunk header target cannot declare that we are | 225 # the implementation but the thunk header target cannot declare that we are |
225 # permitted to include it since it's in the public SDK and we are not. | 226 # permitted to include it since it's in the public SDK and we are not. |
226 # Suppress include checking so we can still check the rest of the targets in | 227 # Suppress include checking so we can still check the rest of the targets in |
227 # this file. | 228 # this file. |
228 check_includes = false | 229 check_includes = false |
229 } | 230 } |
230 | 231 |
231 # TODO(vtl): This should just be a part of :common_lib, but stuff in | |
232 # application_manager uses it. We should fix that. | |
233 source_set("switches") { | |
234 sources = [ | |
235 "switches.cc", | |
236 "switches.h", | |
237 ] | |
238 | |
239 deps = [ | |
240 "//base", | |
241 ] | |
242 } | |
243 | |
244 if (is_android) { | 232 if (is_android) { |
245 generate_jni("jni_headers") { | 233 generate_jni("jni_headers") { |
246 sources = [ | 234 sources = [ |
247 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", | 235 "android/apk/src/org/chromium/mojo/shell/AndroidHandler.java", |
248 "android/apk/src/org/chromium/mojo/shell/Bootstrap.java", | 236 "android/apk/src/org/chromium/mojo/shell/Bootstrap.java", |
249 "android/apk/src/org/chromium/mojo/shell/IntentReceiverRegistry.java", | 237 "android/apk/src/org/chromium/mojo/shell/IntentReceiverRegistry.java", |
250 "android/apk/src/org/chromium/mojo/shell/Keyboard.java", | 238 "android/apk/src/org/chromium/mojo/shell/Keyboard.java", |
251 "android/apk/src/org/chromium/mojo/shell/ShellMain.java", | 239 "android/apk/src/org/chromium/mojo/shell/ShellMain.java", |
252 "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java", | 240 "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java", |
253 ] | 241 ] |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 "native_runner_unittest.cc", | 376 "native_runner_unittest.cc", |
389 "shell_test_base.cc", | 377 "shell_test_base.cc", |
390 "shell_test_base.h", | 378 "shell_test_base.h", |
391 "shell_test_base_android.cc", | 379 "shell_test_base_android.cc", |
392 "shell_test_base_unittest.cc", | 380 "shell_test_base_unittest.cc", |
393 "shell_test_main.cc", | 381 "shell_test_main.cc", |
394 "url_resolver_unittest.cc", | 382 "url_resolver_unittest.cc", |
395 ] | 383 ] |
396 | 384 |
397 deps = [ | 385 deps = [ |
398 ":lib", | 386 ":parent_lib", |
399 "//base", | 387 "//base", |
400 "//base:i18n", | 388 "//base:i18n", |
401 "//base/test:test_support", | 389 "//base/test:test_support", |
402 "//testing/gtest", | 390 "//testing/gtest", |
403 "//url", | 391 "//url", |
404 "//mojo/common", | 392 "//mojo/common", |
405 "//mojo/edk/system", | 393 "//mojo/edk/system", |
406 "//mojo/environment:chromium", | 394 "//mojo/environment:chromium", |
407 "//mojo/public/cpp/bindings", | 395 "//mojo/public/cpp/bindings", |
408 "//services/test_service:bindings", | 396 "//services/test_service:bindings", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 "//mojo/public/cpp/system:system", | 445 "//mojo/public/cpp/system:system", |
458 "//mojo/services/http_server/public/cpp", | 446 "//mojo/services/http_server/public/cpp", |
459 "//mojo/services/http_server/public/interfaces", | 447 "//mojo/services/http_server/public/interfaces", |
460 "//mojo/services/network/public/interfaces", | 448 "//mojo/services/network/public/interfaces", |
461 "//shell/test:bindings", | 449 "//shell/test:bindings", |
462 ":embed_pingable", | 450 ":embed_pingable", |
463 ] | 451 ] |
464 | 452 |
465 data_deps = [ "//services/http_server:http_server($default_toolchain)" ] | 453 data_deps = [ "//services/http_server:http_server($default_toolchain)" ] |
466 } | 454 } |
OLD | NEW |