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

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

Issue 1419293003: Allow mojo_runner to connect to arbitrary executables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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 | « mojo/fetcher/url_resolver.cc ('k') | mojo/runner/child/BUILD.gn » ('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 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/generate_mojo_shell_assets_list.gni") 5 import("//mojo/generate_mojo_shell_assets_list.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 9
10 # We don't support building in the component build since mojo apps are 10 # We don't support building in the component build since mojo apps are
11 # inherently components. 11 # inherently components.
12 assert(!is_component_build) 12 assert(!is_component_build)
13 13
14 group("runner") { 14 group("runner") {
15 testonly = true 15 testonly = true
16 16
17 deps = [ 17 deps = [
18 ":mojo_runner", 18 ":mojo_runner",
19 "//mojo/runner/child",
19 ] 20 ]
20 } 21 }
21 22
22 if (is_android) { 23 if (is_android) {
23 import("//build/config/android/config.gni") 24 import("//build/config/android/config.gni")
24 import("//build/config/android/rules.gni") 25 import("//build/config/android/rules.gni")
25 } 26 }
26 27
27 source_set("register_local_aliases_fwd") { 28 source_set("register_local_aliases_fwd") {
28 sources = [ 29 sources = [
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ":register_local_aliases_fwd", 88 ":register_local_aliases_fwd",
88 "//third_party/mojo/src/mojo/edk/system", 89 "//third_party/mojo/src/mojo/edk/system",
89 ] 90 ]
90 91
91 # On android, the executable is also the native library used by the apk. 92 # On android, the executable is also the native library used by the apk.
92 # It means dynamic symbols must be preserved and exported. 93 # It means dynamic symbols must be preserved and exported.
93 ldflags = [ "-Wl,--export-dynamic" ] 94 ldflags = [ "-Wl,--export-dynamic" ]
94 } 95 }
95 } 96 }
96 97
97 source_set("in_process_native_runner") { 98 source_set("init") {
98 sources = [ 99 sources = [
99 "in_process_native_runner.cc", 100 "init.cc",
100 "in_process_native_runner.h", 101 "init.h",
101 ]
102
103 public_deps = [
104 ":native_application_support",
105 "//mojo/shell",
106 ] 102 ]
107 103
108 deps = [ 104 deps = [
105 ":switches",
109 "//base", 106 "//base",
110 ] 107 ]
111 } 108 }
112 109
113 source_set("lib") { 110 source_set("lib") {
114 sources = [ 111 sources = [
115 "child_process.cc", 112 "child_process.cc",
116 "child_process.h", 113 "child_process.h",
117 "child_process_host.cc", 114 "child_process_host.cc",
118 "child_process_host.h", 115 "child_process_host.h",
119 "context.cc", 116 "context.cc",
120 "context.h", 117 "context.h",
121 "init.cc", 118 "in_process_native_runner.cc",
122 "init.h", 119 "in_process_native_runner.h",
123 "out_of_process_native_runner.cc", 120 "out_of_process_native_runner.cc",
124 "out_of_process_native_runner.h", 121 "out_of_process_native_runner.h",
125 "scoped_user_data_dir.cc", 122 "scoped_user_data_dir.cc",
126 "scoped_user_data_dir.h", 123 "scoped_user_data_dir.h",
127 "task_runners.cc", 124 "task_runners.cc",
128 "task_runners.h", 125 "task_runners.h",
129 "tracer.cc", 126 "tracer.cc",
130 "tracer.h", 127 "tracer.h",
131 ] 128 ]
132 129
133 deps = [ 130 deps = [
134 ":child_process_bindings", 131 ":init",
135 ":in_process_native_runner",
136 ":native_application_support", 132 ":native_application_support",
137 "//base", 133 "//base",
138 "//base/third_party/dynamic_annotations", 134 "//base/third_party/dynamic_annotations",
139 "//base:base_static", 135 "//base:base_static",
140 "//components/devtools_service/public/cpp", 136 "//components/devtools_service/public/cpp",
141 "//components/devtools_service/public/interfaces", 137 "//components/devtools_service/public/interfaces",
142 "//mojo/application/public/cpp", 138 "//mojo/application/public/cpp",
143 "//mojo/message_pump", 139 "//mojo/message_pump",
144 "//mojo/package_manager", 140 "//mojo/package_manager",
141 "//mojo/runner/child:interfaces",
145 "//mojo/services/network/public/interfaces", 142 "//mojo/services/network/public/interfaces",
146 "//mojo/services/tracing/public/cpp", 143 "//mojo/services/tracing/public/cpp",
147 "//mojo/services/tracing/public/interfaces", 144 "//mojo/services/tracing/public/interfaces",
148 "//mojo/shell", 145 "//mojo/shell",
149 "//mojo/util:filename_util", 146 "//mojo/util:filename_util",
150 "//third_party/mojo/src/mojo/edk/system", 147 "//third_party/mojo/src/mojo/edk/system",
151 "//ui/gl", 148 "//ui/gl",
152 "//url", 149 "//url",
153 ] 150 ]
154 151
155 if (is_linux && !is_android) { 152 if (is_linux && !is_android) {
156 sources += [ 153 sources += [
157 "linux_sandbox.cc", 154 "linux_sandbox.cc",
158 "linux_sandbox.h", 155 "linux_sandbox.h",
159 ] 156 ]
160 157
161 deps += [ 158 deps += [
162 "//sandbox/linux:sandbox", 159 "//sandbox/linux:sandbox",
163 "//sandbox/linux:sandbox_services", 160 "//sandbox/linux:sandbox_services",
164 ] 161 ]
165 } 162 }
166 163
167 public_deps = [ 164 public_deps = [
165 ":init",
168 ":switches", 166 ":switches",
169 ] 167 ]
170 168
171 data_deps = [ 169 data_deps = [
172 "//components/devtools_service", 170 "//components/devtools_service",
173 "//mojo/services/tracing", 171 "//mojo/services/tracing",
174 ] 172 ]
175 173
176 if (is_android) { 174 if (is_android) {
177 sources += [ 175 sources += [
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 java_files = 410 java_files =
413 [ "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java" ] 411 [ "android/tests/src/org/chromium/mojo/shell/ShellTestBase.java" ]
414 412
415 deps = [ 413 deps = [
416 ":java", 414 ":java",
417 "//base:base_java", 415 "//base:base_java",
418 ] 416 ]
419 } 417 }
420 } 418 }
421 419
422 mojom("child_process_bindings") {
423 sources = [
424 "child_process.mojom",
425 ]
426
427 deps = [
428 "//mojo/application/public/interfaces",
429 ]
430
431 import_dirs = [ "//mojo/services" ]
432 }
433
434 test("mojo_runner_unittests") { 420 test("mojo_runner_unittests") {
435 sources = [ 421 sources = [
436 "../fetcher/about_fetcher_unittest.cc", 422 "../fetcher/about_fetcher_unittest.cc",
437 "../fetcher/data_fetcher_unittest.cc", 423 "../fetcher/data_fetcher_unittest.cc",
438 "../fetcher/network_fetcher_unittest.cc", 424 "../fetcher/network_fetcher_unittest.cc",
439 "../fetcher/url_resolver_unittest.cc", 425 "../fetcher/url_resolver_unittest.cc",
440 "child_process_host_unittest.cc", 426 "child_process_host_unittest.cc",
441 "data_pipe_peek_unittest.cc", 427 "data_pipe_peek_unittest.cc",
442 "in_process_native_runner_unittest.cc", 428 "in_process_native_runner_unittest.cc",
443 "native_runner_unittest.cc", 429 "native_runner_unittest.cc",
444 "register_local_aliases.cc", 430 "register_local_aliases.cc",
445 "register_local_aliases.h", 431 "register_local_aliases.h",
446 "shell_test_base.cc", 432 "shell_test_base.cc",
447 "shell_test_base.h", 433 "shell_test_base.h",
448 "shell_test_base_android.cc", 434 "shell_test_base_android.cc",
449 "shell_test_base_unittest.cc", 435 "shell_test_base_unittest.cc",
450 "shell_test_main.cc", 436 "shell_test_main.cc",
451 ] 437 ]
452 438
453 deps = [ 439 deps = [
454 ":in_process_native_runner",
455 ":lib", 440 ":lib",
456 "//base", 441 "//base",
457 "//base:i18n", 442 "//base:i18n",
458 "//base/test:test_support", 443 "//base/test:test_support",
459 "//mojo/application/public/cpp", 444 "//mojo/application/public/cpp",
460 "//mojo/common", 445 "//mojo/common",
461 "//mojo/environment:chromium", 446 "//mojo/environment:chromium",
462 "//mojo/fetcher", 447 "//mojo/fetcher",
463 "//mojo/message_pump", 448 "//mojo/message_pump",
464 "//mojo/package_manager", 449 "//mojo/package_manager",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 ] 486 ]
502 487
503 deps = [ 488 deps = [
504 "//base", 489 "//base",
505 "//mojo/application/public/cpp:test_support", 490 "//mojo/application/public/cpp:test_support",
506 "//mojo/runner/test:bindings", 491 "//mojo/runner/test:bindings",
507 "//mojo/services/network/public/interfaces", 492 "//mojo/services/network/public/interfaces",
508 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", 493 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
509 ] 494 ]
510 } 495 }
OLDNEW
« no previous file with comments | « mojo/fetcher/url_resolver.cc ('k') | mojo/runner/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698