OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//services/service_manager/public/service_manifest.gni") |
7 | 8 |
8 # This file builds nacl64.exe, which is a 64-bit x86 Windows executable | 9 # This file builds nacl64.exe, which is a 64-bit x86 Windows executable |
9 # used only in the 32-bit x86 Windows build. The :broker code runs both | 10 # used only in the 32-bit x86 Windows build. The :broker code runs both |
10 # in nacl64.exe and in the 32-bit chrome executable, to launch | 11 # in nacl64.exe and in the 32-bit chrome executable, to launch |
11 # nacl64.exe and communicate with it. | 12 # nacl64.exe and communicate with it. |
12 | 13 |
13 assert(enable_nacl) | 14 assert(enable_nacl) |
14 assert(is_win) | 15 assert(is_win) |
15 assert(target_cpu == "x86") | 16 assert(target_cpu == "x86") |
16 | 17 |
17 source_set("broker") { | 18 source_set("broker") { |
18 sources = [ | 19 sources = [ |
19 "nacl_broker_listener.cc", | 20 "nacl_broker_listener.cc", |
20 "nacl_broker_listener.h", | 21 "nacl_broker_listener.h", |
21 ] | 22 ] |
22 | 23 |
23 deps = [ | 24 deps = [ |
24 "//base", | 25 "//base", |
25 "//components/nacl/common:debug_exception_handler", | 26 "//components/nacl/common:debug_exception_handler", |
26 "//components/nacl/common:minimal", | 27 "//components/nacl/common:minimal", |
27 "//components/nacl/common:switches", | 28 "//components/nacl/common:switches", |
28 "//content/public/common:static_switches", | 29 "//content/public/common:static_switches", |
29 "//ipc", | 30 "//ipc", |
30 "//mojo/edk/system", | 31 "//mojo/edk/system", |
31 "//sandbox", | 32 "//sandbox", |
| 33 "//services/service_manager/public/cpp", |
32 ] | 34 ] |
33 | 35 |
34 if (current_cpu == target_cpu) { | 36 if (current_cpu == target_cpu) { |
35 deps += [ "//content/public/common" ] | 37 deps += [ "//content/public/common" ] |
36 } else { | 38 } else { |
37 deps += [ ":content_dummy" ] | 39 deps += [ ":content_dummy" ] |
38 } | 40 } |
| 41 |
| 42 data_deps = [ |
| 43 ":nacl_broker_manifest", |
| 44 ] |
39 } | 45 } |
40 | 46 |
41 # This exists just to make 'gn check' happy with :broker. It can't depend | 47 # This exists just to make 'gn check' happy with :broker. It can't depend |
42 # on //content/public/common or anything like that, because that would | 48 # on //content/public/common or anything like that, because that would |
43 # bring in lots more stuff that should not be in the nacl64.exe build. | 49 # bring in lots more stuff that should not be in the nacl64.exe build. |
44 source_set("content_dummy") { | 50 source_set("content_dummy") { |
45 check_includes = false | 51 check_includes = false |
46 sources = [ | 52 sources = [ |
47 "//content/public/common/sandbox_init.h", | 53 "//content/public/common/sandbox_init.h", |
48 "//content/public/common/sandboxed_process_launcher_delegate.h", | 54 "//content/public/common/sandboxed_process_launcher_delegate.h", |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 "//chrome/installer/util:with_no_strings", | 168 "//chrome/installer/util:with_no_strings", |
163 "//components/browser_watcher:browser_watcher_client", | 169 "//components/browser_watcher:browser_watcher_client", |
164 "//components/flags_ui:switches", | 170 "//components/flags_ui:switches", |
165 "//components/policy:generated", | 171 "//components/policy:generated", |
166 "//content/public/common:static_switches", | 172 "//content/public/common:static_switches", |
167 "//ipc", | 173 "//ipc", |
168 "//third_party/kasko", | 174 "//third_party/kasko", |
169 ] | 175 ] |
170 } | 176 } |
171 } | 177 } |
| 178 |
| 179 service_manifest("nacl_broker_manifest") { |
| 180 name = "nacl_broker" |
| 181 source = "nacl_broker_manifest.json" |
| 182 } |
OLD | NEW |