OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 if (enable_nacl) { | 10 if (enable_nacl) { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 if (use_glib) { | 228 if (use_glib) { |
229 configs += [ "//build/config/linux:glib" ] | 229 configs += [ "//build/config/linux:glib" ] |
230 } | 230 } |
231 | 231 |
232 if (use_seccomp_bpf) { | 232 if (use_seccomp_bpf) { |
233 defines += [ "USE_SECCOMP_BPF" ] | 233 defines += [ "USE_SECCOMP_BPF" ] |
234 } | 234 } |
235 } | 235 } |
236 } | 236 } |
| 237 |
| 238 if (is_nacl) { |
| 239 executable("nacl_helper_nonsfi_nexe") { |
| 240 output_name = "nacl_helper_nonsfi" |
| 241 set_sources_assignment_filter([]) |
| 242 sources = [ |
| 243 "common/nacl_messages.cc", |
| 244 "common/nacl_messages.h", |
| 245 "common/nacl_types.cc", |
| 246 "common/nacl_types.h", |
| 247 "common/nacl_types_param_traits.cc", |
| 248 "common/nacl_types_param_traits.h", |
| 249 "loader/nacl_helper_linux.cc", |
| 250 "loader/nacl_helper_linux.h", |
| 251 "loader/nacl_trusted_listener.cc", |
| 252 "loader/nacl_trusted_listener.h", |
| 253 "loader/nonsfi/nonsfi_listener.cc", |
| 254 "loader/nonsfi/nonsfi_listener.h", |
| 255 "loader/nonsfi/nonsfi_main.cc", |
| 256 "loader/nonsfi/nonsfi_main.h", |
| 257 ] |
| 258 deps = [ |
| 259 ":nacl_switches", |
| 260 ":nacl_helper_nonsfi_sandbox", |
| 261 "//base", |
| 262 "//components/tracing", |
| 263 "//content", |
| 264 "//ipc", |
| 265 "//native_client/src/nonsfi/irt:nacl_sys_private", |
| 266 "//native_client/src/nonsfi/loader:elf_loader", |
| 267 "//native_client/src/untrusted/nacl:nacl", |
| 268 "//ppapi/proxy", |
| 269 "//sandbox/linux:sandbox_linux_nacl_nonsfi", |
| 270 ] |
| 271 } |
| 272 |
| 273 source_set("nacl_helper_nonsfi_sandbox") { |
| 274 set_sources_assignment_filter([]) |
| 275 sources = [ |
| 276 "loader/nonsfi/nonsfi_sandbox.cc", |
| 277 "loader/nonsfi/nonsfi_sandbox.h", |
| 278 "loader/sandbox_linux/nacl_sandbox_linux.cc", |
| 279 "loader/sandbox_linux/nacl_sandbox_linux.h", |
| 280 ] |
| 281 deps = [ |
| 282 "//base", |
| 283 "//content", |
| 284 "//sandbox/linux:sandbox_linux_nacl_nonsfi", |
| 285 ] |
| 286 } |
| 287 |
| 288 copy("nacl_helper_nonsfi_copy") { |
| 289 sources = [ |
| 290 "${root_out_dir}/nacl_helper_nonsfi", |
| 291 ] |
| 292 outputs = [ |
| 293 "${root_build_dir}/{{source_file_part}}", |
| 294 ] |
| 295 deps = [ |
| 296 ":nacl_helper_nonsfi_nexe", |
| 297 ] |
| 298 } |
| 299 |
| 300 group("nacl_helper_nonsfi") { |
| 301 deps = [ |
| 302 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)", |
| 303 ] |
| 304 } |
| 305 } |
237 } else { | 306 } else { |
238 group("nacl") { | 307 group("nacl") { |
239 } | 308 } |
240 group("nacl_helper") { | 309 group("nacl_helper") { |
241 } | 310 } |
| 311 group("nacl_helper_nonsfi") { |
| 312 } |
242 } | 313 } |
243 | 314 |
244 source_set("nacl_switches") { | 315 source_set("nacl_switches") { |
245 sources = [ | 316 sources = [ |
246 "common/nacl_switches.cc", | 317 "common/nacl_switches.cc", |
247 "common/nacl_switches.h", | 318 "common/nacl_switches.h", |
248 ] | 319 ] |
249 } | 320 } |
250 | 321 |
251 source_set("nacl_common") { | 322 source_set("nacl_common") { |
(...skipping 30 matching lines...) Expand all Loading... |
282 | 353 |
283 if (is_linux) { | 354 if (is_linux) { |
284 sources += [ | 355 sources += [ |
285 "common/nacl_paths.cc", | 356 "common/nacl_paths.cc", |
286 "common/nacl_paths.h", | 357 "common/nacl_paths.h", |
287 ] | 358 ] |
288 | 359 |
289 defines = [ "__STDC_LIMIT_MACROS=1" ] | 360 defines = [ "__STDC_LIMIT_MACROS=1" ] |
290 } | 361 } |
291 } | 362 } |
OLD | NEW |