Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: components/nacl/BUILD.gn

Issue 1395573003: Build nacl_helper_nonsfi with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/nacl/config.gni")
7 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
8 import("//testing/test.gni") 9 import("//testing/test.gni")
9 10
10 if (enable_nacl) { 11 if (enable_nacl) {
11 source_set("nacl") { 12 source_set("nacl") {
12 sources = [ 13 sources = [
13 "loader/nacl_ipc_adapter.cc", 14 "loader/nacl_ipc_adapter.cc",
14 "loader/nacl_ipc_adapter.h", 15 "loader/nacl_ipc_adapter.h",
15 "loader/nacl_listener.cc", 16 "loader/nacl_listener.cc",
16 "loader/nacl_listener.h", 17 "loader/nacl_listener.h",
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 if (use_glib) { 231 if (use_glib) {
231 configs += [ "//build/config/linux:glib" ] 232 configs += [ "//build/config/linux:glib" ]
232 } 233 }
233 234
234 if (use_seccomp_bpf) { 235 if (use_seccomp_bpf) {
235 defines += [ "USE_SECCOMP_BPF" ] 236 defines += [ "USE_SECCOMP_BPF" ]
236 } 237 }
237 } 238 }
238 } 239 }
239 } else { 240
240 group("nacl") { 241 if (is_nacl_nonsfi) {
242 executable("nacl_helper_nonsfi_nexe") {
243 output_name = "nacl_helper_nonsfi"
244 set_sources_assignment_filter([])
245 sources = [
246 "common/nacl_messages.cc",
247 "common/nacl_messages.h",
248 "common/nacl_types.cc",
249 "common/nacl_types.h",
250 "common/nacl_types_param_traits.cc",
251 "common/nacl_types_param_traits.h",
252 "loader/nacl_helper_linux.cc",
253 "loader/nacl_helper_linux.h",
254 "loader/nacl_trusted_listener.cc",
255 "loader/nacl_trusted_listener.h",
256 "loader/nonsfi/nonsfi_listener.cc",
257 "loader/nonsfi/nonsfi_listener.h",
258 "loader/nonsfi/nonsfi_main.cc",
259 "loader/nonsfi/nonsfi_main.h",
260 ]
261 deps = [
262 ":nacl_switches",
263 ":nacl_helper_nonsfi_sandbox",
264 "//base",
265 "//components/tracing",
266 "//content",
267 "//ipc",
268 "//native_client/src/nonsfi/irt:nacl_sys_private",
269 "//native_client/src/nonsfi/loader:elf_loader",
270 "//native_client/src/untrusted/nacl:nacl",
271 "//ppapi/proxy",
272 "//sandbox/linux:sandbox",
273 ]
274 }
275
276 source_set("nacl_helper_nonsfi_sandbox") {
277 set_sources_assignment_filter([])
278 sources = [
279 "loader/nonsfi/nonsfi_sandbox.cc",
280 "loader/nonsfi/nonsfi_sandbox.h",
281 "loader/sandbox_linux/nacl_sandbox_linux.cc",
282 "loader/sandbox_linux/nacl_sandbox_linux.h",
283 ]
284 deps = [
285 "//base",
286 "//content",
287 "//sandbox/linux:sandbox",
288 ]
289 }
290
291 copy("nacl_helper_nonsfi_copy") {
292 sources = [
293 "${root_out_dir}/nacl_helper_nonsfi",
294 ]
295 outputs = [
296 "${root_build_dir}/{{source_file_part}}",
297 ]
298 deps = [
299 ":nacl_helper_nonsfi_nexe",
300 ]
301 }
241 } 302 }
242 group("nacl_helper") { 303
304 group("helper_nonsfi") {
305 deps = [
306 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
307 ]
243 } 308 }
244 } 309 }
245 310
246 source_set("nacl_switches") { 311 source_set("nacl_switches") {
247 sources = [ 312 sources = [
248 "common/nacl_switches.cc", 313 "common/nacl_switches.cc",
249 "common/nacl_switches.h", 314 "common/nacl_switches.h",
250 ] 315 ]
251 } 316 }
252 317
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 349
285 if (is_linux) { 350 if (is_linux) {
286 sources += [ 351 sources += [
287 "common/nacl_paths.cc", 352 "common/nacl_paths.cc",
288 "common/nacl_paths.h", 353 "common/nacl_paths.h",
289 ] 354 ]
290 355
291 defines = [ "__STDC_LIMIT_MACROS=1" ] 356 defines = [ "__STDC_LIMIT_MACROS=1" ]
292 } 357 }
293 } 358 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698