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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 7 |
7 if (enable_nacl) { | 8 if (enable_nacl) { |
8 # This is separate so it can be used by ../broker:nacl64. | 9 # This is separate so it can be used by ../broker:nacl64. |
9 static_library("minimal") { | 10 static_library("minimal") { |
10 sources = [ | 11 sources = [ |
11 "nacl_cmd_line.cc", | 12 "nacl_cmd_line.cc", |
12 "nacl_cmd_line.h", | 13 "nacl_cmd_line.h", |
13 "nacl_constants.cc", | 14 "nacl_constants.cc", |
14 "nacl_constants.h", | 15 "nacl_constants.h", |
15 "nacl_messages.cc", | 16 "nacl_messages.cc", |
16 "nacl_messages.h", | 17 "nacl_messages.h", |
17 "nacl_process_type.h", | 18 "nacl_process_type.h", |
18 "nacl_renderer_messages.cc", | |
19 "nacl_renderer_messages.h", | |
20 "nacl_sandbox_type.h", | 19 "nacl_sandbox_type.h", |
21 "nacl_types.cc", | 20 "nacl_types.cc", |
22 "nacl_types.h", | 21 "nacl_types.h", |
23 "nacl_types_param_traits.cc", | 22 "nacl_types_param_traits.cc", |
24 "nacl_types_param_traits.h", | 23 "nacl_types_param_traits.h", |
25 ] | 24 ] |
26 | 25 |
27 public_deps = [ | 26 public_deps = [ |
28 ":switches", | 27 ":switches", |
29 ] | 28 ] |
30 | 29 |
31 deps = [ | 30 deps = [ |
32 ":minimal_content_dummy", | 31 ":minimal_content_dummy", |
| 32 ":nacl_error_code", |
33 "//base", | 33 "//base", |
34 "//base:base_static", | 34 "//base:base_static", |
35 "//ipc", | 35 "//ipc", |
36 ] | 36 ] |
37 } | 37 } |
38 | 38 |
39 # This exists just to make 'gn check' happy with :minimal. It can't | 39 # This exists just to make 'gn check' happy with :minimal. It can't |
40 # depend on //content/public/common or anything like that, because that | 40 # depend on //content/public/common or anything like that, because that |
41 # would bring in lots more than counts as "minimal" (stuff that should | 41 # would bring in lots more than counts as "minimal" (stuff that should |
42 # not be in the nacl64.exe build). | 42 # not be in the nacl64.exe build). |
(...skipping 16 matching lines...) Expand all Loading... |
59 "nacl_host_messages.cc", | 59 "nacl_host_messages.cc", |
60 "nacl_host_messages.h", | 60 "nacl_host_messages.h", |
61 "nacl_nonsfi_util.cc", | 61 "nacl_nonsfi_util.cc", |
62 "nacl_nonsfi_util.h", | 62 "nacl_nonsfi_util.h", |
63 "pnacl_types.cc", | 63 "pnacl_types.cc", |
64 "pnacl_types.h", | 64 "pnacl_types.h", |
65 ] | 65 ] |
66 | 66 |
67 public_deps = [ | 67 public_deps = [ |
68 ":minimal", | 68 ":minimal", |
| 69 ":mojo_bindings", |
69 ":switches", | 70 ":switches", |
70 ] | 71 ] |
71 | 72 |
72 deps = [ | 73 deps = [ |
73 "//base", | 74 "//base", |
74 "//content/public/common", | 75 "//content/public/common", |
75 "//ipc", | 76 "//ipc", |
76 "//url", | 77 "//url", |
77 ] | 78 ] |
78 | 79 |
(...skipping 10 matching lines...) Expand all Loading... |
89 source_set("debug_exception_handler") { | 90 source_set("debug_exception_handler") { |
90 sources = [ | 91 sources = [ |
91 "nacl_debug_exception_handler_win.cc", | 92 "nacl_debug_exception_handler_win.cc", |
92 "nacl_debug_exception_handler_win.h", | 93 "nacl_debug_exception_handler_win.h", |
93 ] | 94 ] |
94 | 95 |
95 deps = [ | 96 deps = [ |
96 "//base", | 97 "//base", |
97 ] | 98 ] |
98 } | 99 } |
| 100 |
| 101 source_set("nacl_error_code") { |
| 102 sources = [ |
| 103 "//native_client/src/trusted/service_runtime/nacl_error_code.h", |
| 104 ] |
| 105 } |
| 106 |
| 107 mojom("mojo_bindings") { |
| 108 sources = [ |
| 109 "nacl.mojom", |
| 110 ] |
| 111 } |
99 } | 112 } |
100 | 113 |
101 # Depending on this allows targets to unconditionally include | 114 # Depending on this allows targets to unconditionally include |
102 # nacl_process_type.h without testing whether nacl is enabled. | 115 # nacl_process_type.h without testing whether nacl is enabled. |
103 source_set("process_type") { | 116 source_set("process_type") { |
104 public = [ | 117 public = [ |
105 "nacl_process_type.h", | 118 "nacl_process_type.h", |
106 ] | 119 ] |
107 | 120 |
108 deps = [ | 121 deps = [ |
109 "//content/public/common", | 122 "//content/public/common", |
110 ] | 123 ] |
111 } | 124 } |
112 | 125 |
113 static_library("switches") { | 126 static_library("switches") { |
114 sources = [ | 127 sources = [ |
115 "nacl_switches.cc", | 128 "nacl_switches.cc", |
116 "nacl_switches.h", | 129 "nacl_switches.h", |
117 ] | 130 ] |
118 } | 131 } |
OLD | NEW |