| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//mojo/public/mojo_application.gni") | |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | |
| 7 import("//testing/test.gni") | |
| 8 | |
| 9 group("host") { | |
| 10 testonly = true | |
| 11 | |
| 12 deps = [ | |
| 13 ":lib", | |
| 14 ":mojo_runner_host_unittests", | |
| 15 ] | |
| 16 } | |
| 17 | |
| 18 source_set("native_application_support") { | |
| 19 sources = [ | |
| 20 "native_application_support.cc", | |
| 21 "native_application_support.h", | |
| 22 ] | |
| 23 | |
| 24 deps = [ | |
| 25 "//base", | |
| 26 "//mojo/platform_handle:platform_handle_impl", | |
| 27 "//mojo/shell", | |
| 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 "//mojo/message_pump", | |
| 49 "//mojo/platform_handle:platform_handle_impl", | |
| 50 "//mojo/shell", | |
| 51 "//mojo/shell/public/interfaces", | |
| 52 "//mojo/shell/runner:init", | |
| 53 "//mojo/shell/runner/common", | |
| 54 ] | |
| 55 } | |
| 56 | |
| 57 source_set("lib") { | |
| 58 sources = [ | |
| 59 "child_process.cc", | |
| 60 "child_process.h", | |
| 61 "child_process_host.cc", | |
| 62 "child_process_host.h", | |
| 63 "in_process_native_runner.cc", | |
| 64 "in_process_native_runner.h", | |
| 65 "out_of_process_native_runner.cc", | |
| 66 "out_of_process_native_runner.h", | |
| 67 ] | |
| 68 | |
| 69 deps = [ | |
| 70 ":child_process_base", | |
| 71 ":native_application_support", | |
| 72 "//base:base_static", | |
| 73 "//base:i18n", | |
| 74 "//mojo/message_pump", | |
| 75 "//mojo/platform_handle:platform_handle_impl", | |
| 76 "//mojo/shell/public/cpp:sources", | |
| 77 "//mojo/shell/runner:init", | |
| 78 "//mojo/shell/runner/common", | |
| 79 ] | |
| 80 | |
| 81 public_deps = [ | |
| 82 "//base", | |
| 83 "//mojo/edk/system", | |
| 84 "//mojo/public/cpp/system", | |
| 85 "//mojo/shell", | |
| 86 "//mojo/shell/public/interfaces", | |
| 87 ] | |
| 88 | |
| 89 if (is_linux && !is_android) { | |
| 90 sources += [ | |
| 91 "linux_sandbox.cc", | |
| 92 "linux_sandbox.h", | |
| 93 ] | |
| 94 | |
| 95 deps += [ | |
| 96 "//sandbox/linux:sandbox", | |
| 97 "//sandbox/linux:sandbox_services", | |
| 98 "//sandbox/linux:seccomp_bpf", | |
| 99 "//sandbox/linux:seccomp_bpf_helpers", | |
| 100 ] | |
| 101 } | |
| 102 | |
| 103 if (is_mac) { | |
| 104 sources += [ | |
| 105 "mach_broker.cc", | |
| 106 "mach_broker.h", | |
| 107 ] | |
| 108 } | |
| 109 } | |
| 110 | |
| 111 test("mojo_runner_host_unittests") { | |
| 112 sources = [ | |
| 113 "child_process_host_unittest.cc", | |
| 114 "host_unittests.cc", | |
| 115 "in_process_native_runner_unittest.cc", | |
| 116 ] | |
| 117 | |
| 118 deps = [ | |
| 119 ":lib", | |
| 120 "//base", | |
| 121 "//base/test:test_support", | |
| 122 "//mojo/edk/system", | |
| 123 "//mojo/message_pump", | |
| 124 "//mojo/shell", | |
| 125 "//mojo/shell/runner:init", | |
| 126 "//mojo/shell/runner/common", | |
| 127 "//testing/gtest", | |
| 128 ] | |
| 129 } | |
| OLD | NEW |