| OLD | NEW |
| 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") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 group("host") { | |
| 11 testonly = true | |
| 12 | |
| 13 deps = [ | |
| 14 ":lib", | |
| 15 ":mojo_runner_host_unittests", | |
| 16 ] | |
| 17 } | |
| 18 | |
| 19 source_set("lib") { | 10 source_set("lib") { |
| 20 sources = [ | 11 sources = [ |
| 21 "child_process_host.cc", | 12 "service_process_launcher.cc", |
| 22 "child_process_host.h", | 13 "service_process_launcher.h", |
| 23 "out_of_process_native_runner.cc", | |
| 24 "out_of_process_native_runner.h", | |
| 25 ] | 14 ] |
| 26 | 15 |
| 27 deps = [ | 16 deps = [ |
| 28 "//base:base_static", | 17 "//base:base_static", |
| 29 "//base:i18n", | 18 "//base:i18n", |
| 30 "//services/service_manager/public/cpp:sources", | 19 "//services/service_manager/public/cpp:sources", |
| 31 "//services/service_manager/public/cpp/standalone_service", | 20 "//services/service_manager/public/cpp/standalone_service", |
| 32 "//services/service_manager/runner:init", | 21 "//services/service_manager/runner:init", |
| 33 "//services/service_manager/runner/common", | 22 "//services/service_manager/runner/common", |
| 34 ] | 23 ] |
| 35 | 24 |
| 36 public_deps = [ | 25 public_deps = [ |
| 37 "//base", | 26 "//base", |
| 38 "//mojo/edk/system", | 27 "//mojo/edk/system", |
| 39 "//mojo/public/cpp/system", | 28 "//mojo/public/cpp/system", |
| 40 "//services/service_manager", | |
| 41 "//services/service_manager/public/interfaces", | |
| 42 ] | 29 ] |
| 43 | 30 |
| 44 if (is_linux && !is_android) { | 31 if (is_linux && !is_android) { |
| 45 deps += [ "//sandbox/linux:sandbox_services" ] | 32 deps += [ "//sandbox/linux:sandbox_services" ] |
| 46 } | 33 } |
| 47 } | 34 } |
| 48 | 35 |
| 49 test("mojo_runner_host_unittests") { | 36 source_set("unittests") { |
| 37 testonly = true |
| 50 sources = [ | 38 sources = [ |
| 51 "child_process_host_unittest.cc", | 39 "service_process_launcher_unittest.cc", |
| 52 "host_unittests.cc", | |
| 53 ] | 40 ] |
| 54 | 41 |
| 55 deps = [ | 42 deps = [ |
| 56 ":lib", | 43 ":lib", |
| 57 "//base", | 44 "//base", |
| 58 "//base/test:test_support", | 45 "//base/test:test_support", |
| 59 "//mojo/edk/system", | 46 "//mojo/edk/system", |
| 60 "//services/service_manager", | 47 "//services/service_manager", |
| 61 "//services/service_manager/runner:init", | 48 "//services/service_manager/runner:init", |
| 62 "//services/service_manager/runner/common", | 49 "//services/service_manager/runner/common", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 | 67 |
| 81 data_deps = [ | 68 data_deps = [ |
| 82 ":host_test_service_manifest", | 69 ":host_test_service_manifest", |
| 83 ] | 70 ] |
| 84 } | 71 } |
| 85 | 72 |
| 86 service_manifest("host_test_service_manifest") { | 73 service_manifest("host_test_service_manifest") { |
| 87 name = "host_test_service" | 74 name = "host_test_service" |
| 88 source = "host_test_service_manifest.json" | 75 source = "host_test_service_manifest.json" |
| 89 } | 76 } |
| OLD | NEW |