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

Side by Side Diff: services/service_manager/runner/host/BUILD.gn

Issue 2566663004: Revert of Build services as standalone executables (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//services/service_manager/public/cpp/service.gni") 5 import("//services/service_manager/public/cpp/service.gni")
6 import("//services/service_manager/public/service_manifest.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
8 import("//testing/test.gni") 7 import("//testing/test.gni")
9 8
10 group("host") { 9 group("host") {
11 testonly = true 10 testonly = true
12 11
13 deps = [ 12 deps = [
14 ":lib", 13 ":lib",
15 ":mojo_runner_host_unittests", 14 ":mojo_runner_host_unittests",
16 ] 15 ]
17 } 16 }
18 17
18 source_set("native_library_runner") {
19 sources = [
20 "native_library_runner.cc",
21 "native_library_runner.h",
22 ]
23
24 deps = [
25 "//base",
26 "//mojo/edk/system",
27 "//services/service_manager",
28 ]
29
30 # This target has to include the public thunk headers, which generally
31 # shouldn't be included without picking an implementation. We are providing
32 # the implementation but the thunk header target cannot declare that we are
33 # permitted to include it since it's in the public SDK and we are not.
34 # Suppress include checking so we can still check the rest of the targets in
35 # this file.
36 check_includes = false
37 }
38
39 source_set("child_process_base") {
40 sources = [
41 "child_process_base.cc",
42 "child_process_base.h",
43 ]
44
45 deps = [
46 "//base",
47 "//mojo/edk/system",
48 "//services/service_manager",
49 "//services/service_manager/public/interfaces",
50 "//services/service_manager/runner:init",
51 "//services/service_manager/runner/common",
52 ]
53
54 if (is_linux && !is_android) {
55 sources += [
56 "linux_sandbox.cc",
57 "linux_sandbox.h",
58 ]
59
60 deps += [
61 "//sandbox/linux:sandbox",
62 "//sandbox/linux:sandbox_services",
63 "//sandbox/linux:seccomp_bpf",
64 ]
65 }
66
67 if (is_mac) {
68 sources += [
69 "mach_broker.cc",
70 "mach_broker.h",
71 ]
72 }
73 }
74
19 source_set("lib") { 75 source_set("lib") {
20 sources = [ 76 sources = [
77 "child_process.cc",
78 "child_process.h",
21 "child_process_host.cc", 79 "child_process_host.cc",
22 "child_process_host.h", 80 "child_process_host.h",
81 "in_process_native_runner.cc",
82 "in_process_native_runner.h",
23 "out_of_process_native_runner.cc", 83 "out_of_process_native_runner.cc",
24 "out_of_process_native_runner.h", 84 "out_of_process_native_runner.h",
25 ] 85 ]
26 86
27 deps = [ 87 deps = [
88 ":child_process_base",
89 ":native_library_runner",
28 "//base:base_static", 90 "//base:base_static",
29 "//base:i18n", 91 "//base:i18n",
30 "//services/service_manager/public/cpp:sources", 92 "//services/service_manager/public/cpp:sources",
31 "//services/service_manager/public/cpp/standalone_service",
32 "//services/service_manager/runner:init", 93 "//services/service_manager/runner:init",
33 "//services/service_manager/runner/common", 94 "//services/service_manager/runner/common",
34 ] 95 ]
35 96
36 public_deps = [ 97 public_deps = [
37 "//base", 98 "//base",
38 "//mojo/edk/system", 99 "//mojo/edk/system",
39 "//mojo/public/cpp/system", 100 "//mojo/public/cpp/system",
40 "//services/service_manager", 101 "//services/service_manager",
41 "//services/service_manager/public/interfaces", 102 "//services/service_manager/public/interfaces",
42 ] 103 ]
43 104
44 if (is_linux && !is_android) { 105 if (is_linux && !is_android) {
45 deps += [ "//sandbox/linux:sandbox_services" ] 106 deps += [ "//sandbox/linux:sandbox_services" ]
46 } 107 }
47 } 108 }
48 109
49 test("mojo_runner_host_unittests") { 110 test("mojo_runner_host_unittests") {
50 sources = [ 111 sources = [
51 "child_process_host_unittest.cc", 112 "child_process_host_unittest.cc",
52 "host_unittests.cc", 113 "host_unittests.cc",
114 "in_process_native_runner_unittest.cc",
53 ] 115 ]
54 116
55 deps = [ 117 deps = [
56 ":lib", 118 ":lib",
57 "//base", 119 "//base",
58 "//base/test:test_support", 120 "//base/test:test_support",
59 "//mojo/edk/system", 121 "//mojo/edk/system",
60 "//services/service_manager", 122 "//services/service_manager",
61 "//services/service_manager/runner:init", 123 "//services/service_manager/runner:init",
62 "//services/service_manager/runner/common", 124 "//services/service_manager/runner/common",
63 "//testing/gtest", 125 "//testing/gtest",
64 ] 126 ]
65
66 data_deps = [
67 ":host_test_service",
68 ]
69 } 127 }
70
71 service("host_test_service") {
72 sources = [
73 "host_test_service_main.cc",
74 ]
75
76 deps = [
77 "//mojo/public/cpp/system",
78 "//services/service_manager/public/cpp/standalone_service:main",
79 ]
80
81 data_deps = [
82 ":host_test_service_manifest",
83 ]
84 }
85
86 service_manifest("host_test_service_manifest") {
87 name = "host_test_service"
88 source = "host_test_service_manifest.json"
89 }
OLDNEW
« no previous file with comments | « services/service_manager/runner/child/test_native_main.cc ('k') | services/service_manager/runner/host/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698