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
3 # found in the LICENSE file.
6 "These targets must only be built using the untrusted NaCl toolchains.")
8 config("nacl_io_config") {
9 cflags = [ "-Wno-sign-compare" ]
12 config("nacl_io_include_dirs") {
16 "../third_party/newlib-extras",
20 source_set("nacl_io") {
23 "devfs/jspipe_event_emitter.cc",
24 "devfs/jspipe_node.cc",
32 "fusefs/fuse_fs_factory.cc",
36 "html5fs/html5_fs.cc",
37 "html5fs/html5_fs_node.cc",
39 "httpfs/http_fs_node.cc",
44 "kernel_intercept.cc",
47 "kernel_wrap_bionic.cc",
48 "kernel_wrap_dummy.cc",
49 "kernel_wrap_glibc.cc",
50 "kernel_wrap_irt_ext.c",
51 "kernel_wrap_newlib.cc",
55 "memfs/mem_fs_node.cc",
58 "passthroughfs/passthrough_fs.cc",
59 "passthroughfs/real_node.cc",
61 "pepper_interface.cc",
62 "pepper_interface_delegate.cc",
63 "pipe/pipe_event_emitter.cc",
65 "real_pepper_interface.cc",
66 "socket/fifo_packet.cc",
68 "socket/socket_node.cc",
69 "socket/tcp_event_emitter.cc",
71 "socket/udp_event_emitter.cc",
73 "stream/stream_event_emitter.cc",
74 "stream/stream_fs.cc",
75 "stream/stream_node.cc",
80 "syscalls/ftruncate.c",
91 "syscalls/realpath.c",
93 "syscalls/sigaction.c",
95 "syscalls/sigpause.c",
96 "syscalls/sigpending.c",
98 "syscalls/sigsuspend.c",
99 "syscalls/socket/accept.c",
100 "syscalls/socket/bind.c",
101 "syscalls/socket/connect.c",
102 "syscalls/socket/freeaddrinfo.c",
103 "syscalls/socket/gai_strerror.c",
104 "syscalls/socket/getaddrinfo.c",
105 "syscalls/socket/gethostbyname.c",
106 "syscalls/socket/getnameinfo.c",
107 "syscalls/socket/getpeername.c",
108 "syscalls/socket/getsockname.c",
109 "syscalls/socket/getsockopt.c",
110 "syscalls/socket/herror.c",
111 "syscalls/socket/hstrerror.c",
112 "syscalls/socket/htonl.c",
113 "syscalls/socket/htons.c",
114 "syscalls/socket/inet_addr.c",
115 "syscalls/socket/inet_aton.c",
116 "syscalls/socket/inet_ntoa.c",
117 "syscalls/socket/inet_ntop.cc",
118 "syscalls/socket/inet_pton.c",
119 "syscalls/socket/listen.c",
120 "syscalls/socket/ntohl.c",
121 "syscalls/socket/ntohs.c",
122 "syscalls/socket/recv.c",
123 "syscalls/socket/recvfrom.c",
124 "syscalls/socket/recvmsg.c",
125 "syscalls/socket/send.c",
126 "syscalls/socket/sendmsg.c",
127 "syscalls/socket/sendto.c",
128 "syscalls/socket/setsockopt.c",
129 "syscalls/socket/shutdown.c",
130 "syscalls/socket/socket.c",
131 "syscalls/socket/socketpair.c",
132 "syscalls/symlink.c",
133 "syscalls/termios/cfgetispeed.c",
134 "syscalls/termios/cfgetospeed.c",
135 "syscalls/termios/cfsetispeed.c",
136 "syscalls/termios/cfsetospeed.c",
137 "syscalls/termios/cfsetspeed.c",
138 "syscalls/termios/tcdrain.c",
139 "syscalls/termios/tcflow.c",
140 "syscalls/termios/tcflush.c",
141 "syscalls/termios/tcgetattr.c",
142 "syscalls/termios/tcsendbreak.c",
143 "syscalls/termios/tcsetattr.c",
144 "syscalls/truncate.c",
151 include_dirs = [ ".." ]
152 configs += [ ":nacl_io_config" ]
154 public_configs = [ ":nacl_io_include_dirs" ]