X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fnative_client%2Fsrc%2Funtrusted%2Fnacl%2FBUILD.gn;h=3f5ecae05295730c4f6f7f84fd341e61e0ab6fbd;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=be530bc048fce8a699d501967a9bdcb472fc3845;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/native_client/src/untrusted/nacl/BUILD.gn b/src/native_client/src/untrusted/nacl/BUILD.gn index be530bc..3f5ecae 100644 --- a/src/native_client/src/untrusted/nacl/BUILD.gn +++ b/src/native_client/src/untrusted/nacl/BUILD.gn @@ -2,14 +2,122 @@ # 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", @@ -18,9 +126,10 @@ static_library("nacl") { "random.c", ] - if (nacl_libc != "glibc") { + if (os != "glibc") { sources += [ "_exit.c", + "abort.c", "access.c", "chdir.c", "chmod.c", @@ -130,13 +239,12 @@ static_library("nacl") { ] } - 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", @@ -145,22 +253,46 @@ static_library("nacl") { } } +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", @@ -169,7 +301,49 @@ NaClDualLibrary("nacl_list_mappings") { 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", + ] + } } }