# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# Autogenerated from ../src/untrusted/nacl/nacl.scons.
import("//native_client/build/toolchain/nacl/nacl_sdk.gni")
+# Autogenerated from src/untrusted/nacl/nacl.scons.
-static_library("nacl") {
+
+static_library("nacl_dyncode_private") {
+ cflags_c = []
+ sources = [
+ "dyncode_private.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_random_private") {
+ cflags_c = []
+ sources = [
+ "irt_nameservice",
+ "irt_random",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_sys_private") {
+ cflags_c = []
+ sources = [
+ "null.c",
+ "sysbrk.c",
+ ]
+
+ if (os != "glibc") {
+ sources += [
+ "None",
+ "private_blockhook",
+ ]
+ }
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("imc_syscalls") {
+ cflags_c = []
+ sources = [
+ "imc_accept.c",
+ "imc_connect.c",
+ "imc_makeboundsock.c",
+ "imc_mem_obj_create.c",
+ "imc_recvmsg.c",
+ "imc_sendmsg.c",
+ "imc_socketpair.c",
+ "nameservice.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_exception_private") {
+ cflags_c = []
+ sources = [
+ "nacl_exception_private.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_list_mappings_private") {
cflags_c = []
sources = [
+ "list_mappings_private.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_dyncode") {
+ cflags_c = []
+ sources = [
+ "dyncode.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl") {
+ cflags_c = ["-std=c99"]
+ sources = [
"gc_hooks.c",
"nacl_irt.c",
"nacl_irt_init.c",
"random.c",
]
- if (nacl_libc != "glibc") {
+ if (os != "glibc") {
sources += [
"_exit.c",
+ "abort.c",
"access.c",
"chdir.c",
"chmod.c",
]
}
- if ((nacl_libc != "glibc") && (cpu_arch == "arm")) {
+ if ((os != "glibc") && (cpu_arch == "arm")) {
sources += [
"aeabi_read_tp.S",
]
}
- cflags_c += ["-std=c99"]
if (cpu_arch == "pnacl") {
cflags_c += [
"-Wno-self-assign",
}
}
+source_set("irt_random") {
+ cflags_c = []
+ sources = [
+ "../../untrusted/irt/irt_random.c",
+ ]
-NaClDualLibrary("nacl_exception") {
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+source_set("irt_nameservice") {
cflags_c = []
sources = [
- "nacl_exception.c",
+ "../../untrusted/irt/irt_nameservice.c",
]
if (cpu_arch == "pnacl") {
cflags_c += [
"-Wno-self-assign",
- "--allow-asm",
+ "-allow-asm",
]
}
}
+static_library("nacl_exception") {
+ cflags_c = []
+ sources = [
+ "nacl_exception.c",
+ ]
-NaClDualLibrary("nacl_list_mappings") {
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+}
+static_library("nacl_list_mappings") {
cflags_c = []
sources = [
"list_mappings.c",
if (cpu_arch == "pnacl") {
cflags_c += [
"-Wno-self-assign",
- "--allow-asm",
+ "-allow-asm",
+ ]
+ }
+}
+
+if (os != "glibc") {
+ source_set("sys_private") {
+ cflags_c = []
+ sources = [
+ "sys_private.c",
]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+ }
+ source_set("gc_hooks_private") {
+ cflags_c = []
+ sources = [
+ "gc_hooks_private.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
+ }
+ source_set("private_blockhook") {
+ cflags_c = []
+ sources = [
+ "../../untrusted/irt/irt_blockhook.c",
+ ]
+
+ if (cpu_arch == "pnacl") {
+ cflags_c += [
+ "-Wno-self-assign",
+ "-allow-asm",
+ ]
+ }
}
}