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/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 | 8 |
9 # We don't support building in the component build since mojo apps are | 9 # We don't support building in the component build since mojo apps are |
10 # inherently components. | 10 # inherently components. |
11 assert(!is_component_build) | 11 assert(!is_component_build) |
12 | 12 |
13 if (is_android) { | 13 if (is_android) { |
14 import("//build/config/android/config.gni") | 14 import("//build/config/android/config.gni") |
15 import("//build/config/android/rules.gni") | 15 import("//build/config/android/rules.gni") |
16 } | 16 } |
17 | 17 |
18 if (!use_prebuilt_mojo_shell) { | 18 if (!use_prebuilt_mojo_shell) { |
19 | 19 |
20 executable("mojo_shell") { | 20 executable("mojo_shell") { |
21 sources = [ | 21 sources = [ |
22 "desktop/mojo_main.cc" | 22 "desktop/mojo_main.cc" |
23 ] | 23 ] |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 ":lib", | 26 ":init", |
| 27 ":lib", |
27 "//base", | 28 "//base", |
28 "//build/config/sanitizers:deps", | 29 "//build/config/sanitizers:deps", |
29 "//mojo/common", | 30 "//mojo/common", |
30 "//mojo/environment:chromium", | 31 "//mojo/environment:chromium", |
31 ] | 32 ] |
32 } | 33 } |
33 | 34 |
34 } # !use_prebuilt_mojo_shell | 35 } # !use_prebuilt_mojo_shell |
35 | 36 |
36 executable("mojo_launcher") { | 37 executable("mojo_launcher") { |
37 sources = [ | 38 sources = [ |
38 "launcher_main.cc" | 39 "launcher_main.cc" |
39 ] | 40 ] |
40 | 41 |
41 deps = [ | 42 deps = [ |
42 ":external_application_registrar_bindings", | 43 ":external_application_registrar_bindings", |
43 ":external_application_registrar_connection", | 44 ":external_application_registrar_connection", |
| 45 ":init", |
44 ":in_process_dynamic_service_runner", | 46 ":in_process_dynamic_service_runner", |
45 "//base", | 47 "//base", |
46 "//build/config/sanitizers:deps", | 48 "//build/config/sanitizers:deps", |
47 "//mojo/common", | 49 "//mojo/common", |
48 "//mojo/edk/system", | 50 "//mojo/edk/system", |
49 "//mojo/environment:chromium", | 51 "//mojo/environment:chromium", |
50 "//url", | 52 "//url", |
51 ] | 53 ] |
52 } | 54 } |
53 | 55 |
| 56 source_set("init") { |
| 57 sources = [ |
| 58 "init.cc", |
| 59 "init.h", |
| 60 ] |
| 61 |
| 62 deps = [ |
| 63 "//base", |
| 64 ] |
| 65 } |
| 66 |
54 source_set("in_process_dynamic_service_runner") { | 67 source_set("in_process_dynamic_service_runner") { |
55 sources = [ | 68 sources = [ |
56 "dynamic_service_runner.cc", | 69 "dynamic_service_runner.cc", |
57 "dynamic_service_runner.h", | 70 "dynamic_service_runner.h", |
58 "in_process_dynamic_service_runner.cc", | 71 "in_process_dynamic_service_runner.cc", |
59 "in_process_dynamic_service_runner.h", | 72 "in_process_dynamic_service_runner.h", |
60 ] | 73 ] |
61 | 74 |
62 deps = [ | 75 deps = [ |
63 "//base", | 76 "//base", |
(...skipping 26 matching lines...) Expand all Loading... |
90 "data_pipe_peek.h", | 103 "data_pipe_peek.h", |
91 "dynamic_application_loader.cc", | 104 "dynamic_application_loader.cc", |
92 "dynamic_application_loader.h", | 105 "dynamic_application_loader.h", |
93 "external_application_listener.h", | 106 "external_application_listener.h", |
94 "external_application_listener_posix.cc", | 107 "external_application_listener_posix.cc", |
95 "external_application_listener_win.cc", | 108 "external_application_listener_win.cc", |
96 "filename_util.cc", | 109 "filename_util.cc", |
97 "filename_util.h", | 110 "filename_util.h", |
98 "incoming_connection_listener_posix.cc", | 111 "incoming_connection_listener_posix.cc", |
99 "incoming_connection_listener_posix.h", | 112 "incoming_connection_listener_posix.h", |
100 "init.cc", | |
101 "init.h", | |
102 "mojo_url_resolver.cc", | 113 "mojo_url_resolver.cc", |
103 "mojo_url_resolver.h", | 114 "mojo_url_resolver.h", |
104 "out_of_process_dynamic_service_runner.cc", | 115 "out_of_process_dynamic_service_runner.cc", |
105 "out_of_process_dynamic_service_runner.h", | 116 "out_of_process_dynamic_service_runner.h", |
106 "switches.cc", | 117 "switches.cc", |
107 "switches.h", | 118 "switches.h", |
108 "task_runners.cc", | 119 "task_runners.cc", |
109 "task_runners.h", | 120 "task_runners.h", |
110 "test_child_process.cc", | 121 "test_child_process.cc", |
111 "test_child_process.h", | 122 "test_child_process.h", |
112 "ui_application_loader_android.cc", | 123 "ui_application_loader_android.cc", |
113 "ui_application_loader_android.h", | 124 "ui_application_loader_android.h", |
114 ] | 125 ] |
115 | 126 |
116 deps = [ | 127 deps = [ |
117 ":app_child_process_bindings", | 128 ":app_child_process_bindings", |
118 ":external_application_registrar_bindings", | 129 ":external_application_registrar_bindings", |
| 130 ":init", |
119 ":in_process_dynamic_service_runner", | 131 ":in_process_dynamic_service_runner", |
120 "//base", | 132 "//base", |
121 "//base/third_party/dynamic_annotations", | 133 "//base/third_party/dynamic_annotations", |
122 "//base:base_static", | 134 "//base:base_static", |
123 "//mojo/application", | 135 "//mojo/application", |
124 "//mojo/application_manager", | 136 "//mojo/application_manager", |
125 "//mojo/common", | 137 "//mojo/common", |
126 "//mojo/edk/system", | 138 "//mojo/edk/system", |
127 "//mojo/public/cpp/bindings", | 139 "//mojo/public/cpp/bindings", |
128 "//mojo/public/interfaces/application", | 140 "//mojo/public/interfaces/application", |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 361 } |
350 | 362 |
351 # GYP version: mojo/mojo.gyp:mojo_shell_test_support | 363 # GYP version: mojo/mojo.gyp:mojo_shell_test_support |
352 source_set("test_support") { | 364 source_set("test_support") { |
353 sources = [ | 365 sources = [ |
354 "shell_test_helper.cc", | 366 "shell_test_helper.cc", |
355 "shell_test_helper.h", | 367 "shell_test_helper.h", |
356 ] | 368 ] |
357 | 369 |
358 deps = [ | 370 deps = [ |
| 371 ":init", |
359 ":lib", | 372 ":lib", |
360 "//base", | 373 "//base", |
361 "//mojo/application_manager", | 374 "//mojo/application_manager", |
362 "//mojo/edk/system", | 375 "//mojo/edk/system", |
363 ] | 376 ] |
364 } | 377 } |
365 | 378 |
366 test("external_application_unittests") { | 379 test("external_application_unittests") { |
367 sources = [ | 380 sources = [ |
368 "incoming_connection_listener_unittest.cc", | 381 "incoming_connection_listener_unittest.cc", |
(...skipping 26 matching lines...) Expand all Loading... |
395 | 408 |
396 deps -= [ | 409 deps -= [ |
397 ":lib", | 410 ":lib", |
398 ":external_application_registrar_connection", | 411 ":external_application_registrar_connection", |
399 ":external_application_registrar_bindings", | 412 ":external_application_registrar_bindings", |
400 "//mojo/shell/domain_socket", | 413 "//mojo/shell/domain_socket", |
401 "//mojo/shell/domain_socket:tests", | 414 "//mojo/shell/domain_socket:tests", |
402 ] | 415 ] |
403 } | 416 } |
404 } | 417 } |
OLD | NEW |