OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 assert(is_nacl, | 5 assert(is_nacl, |
6 "These targets must only be built using the untrusted NaCl toolchains.") | 6 "These targets must only be built using the untrusted NaCl toolchains.") |
7 | 7 |
8 config("nacl_io_config") { | 8 config("nacl_io_config") { |
9 cflags = [ "-Wno-sign-compare" ] | 9 cflags = [ "-Wno-sign-compare" ] |
10 } | 10 } |
11 | 11 |
12 config("nacl_io_include_dirs") { | 12 config("nacl_io_include_dirs") { |
13 include_dirs = [ | 13 include_dirs = [ |
14 "..", | 14 "..", |
15 "include", | 15 "include", |
16 "../third_party/newlib-extras", | 16 "../third_party/newlib-extras", |
17 ] | 17 ] |
18 } | 18 } |
19 | 19 |
20 source_set("nacl_io") { | 20 source_set("nacl_io") { |
21 sources = [ | 21 sources = [ |
22 "devfs/dev_fs.cc", | 22 "devfs/dev_fs.cc", |
| 23 "devfs/dev_fs.h", |
23 "devfs/jspipe_event_emitter.cc", | 24 "devfs/jspipe_event_emitter.cc", |
| 25 "devfs/jspipe_event_emitter.h", |
24 "devfs/jspipe_node.cc", | 26 "devfs/jspipe_node.cc", |
| 27 "devfs/jspipe_node.h", |
25 "devfs/tty_node.cc", | 28 "devfs/tty_node.cc", |
| 29 "devfs/tty_node.h", |
26 "dir_node.cc", | 30 "dir_node.cc", |
| 31 "dir_node.h", |
27 "event_emitter.cc", | 32 "event_emitter.cc", |
| 33 "event_emitter.h", |
28 "event_listener.cc", | 34 "event_listener.cc", |
| 35 "event_listener.h", |
29 "fifo_char.cc", | 36 "fifo_char.cc", |
| 37 "fifo_char.h", |
30 "filesystem.cc", | 38 "filesystem.cc", |
| 39 "filesystem.h", |
31 "fusefs/fuse_fs.cc", | 40 "fusefs/fuse_fs.cc", |
| 41 "fusefs/fuse_fs.h", |
32 "fusefs/fuse_fs_factory.cc", | 42 "fusefs/fuse_fs_factory.cc", |
| 43 "fusefs/fuse_fs_factory.h", |
33 "getdents_helper.cc", | 44 "getdents_helper.cc", |
| 45 "getdents_helper.h", |
34 "googledrivefs/googledrivefs.cc", | 46 "googledrivefs/googledrivefs.cc", |
| 47 "googledrivefs/googledrivefs.h", |
35 "googledrivefs/googledrivefs_node.cc", | 48 "googledrivefs/googledrivefs_node.cc", |
| 49 "googledrivefs/googledrivefs_node.h", |
36 "h_errno.c", | 50 "h_errno.c", |
37 "hash.cc", | 51 "hash.cc", |
38 "host_resolver.cc", | 52 "host_resolver.cc", |
| 53 "host_resolver.h", |
39 "html5fs/html5_fs.cc", | 54 "html5fs/html5_fs.cc", |
| 55 "html5fs/html5_fs.h", |
40 "html5fs/html5_fs_node.cc", | 56 "html5fs/html5_fs_node.cc", |
| 57 "html5fs/html5_fs_node.h", |
41 "httpfs/http_fs.cc", | 58 "httpfs/http_fs.cc", |
| 59 "httpfs/http_fs.h", |
42 "httpfs/http_fs_node.cc", | 60 "httpfs/http_fs_node.cc", |
| 61 "httpfs/http_fs_node.h", |
43 "in6_addr.c", | 62 "in6_addr.c", |
44 "jsfs/js_fs.cc", | 63 "jsfs/js_fs.cc", |
| 64 "jsfs/js_fs.h", |
45 "jsfs/js_fs_node.cc", | 65 "jsfs/js_fs_node.cc", |
| 66 "jsfs/js_fs_node.h", |
46 "kernel_handle.cc", | 67 "kernel_handle.cc", |
| 68 "kernel_handle.h", |
47 "kernel_intercept.cc", | 69 "kernel_intercept.cc", |
| 70 "kernel_intercept.h", |
48 "kernel_object.cc", | 71 "kernel_object.cc", |
| 72 "kernel_object.h", |
49 "kernel_proxy.cc", | 73 "kernel_proxy.cc", |
| 74 "kernel_proxy.h", |
50 "kernel_wrap_dummy.cc", | 75 "kernel_wrap_dummy.cc", |
51 "kernel_wrap_glibc.cc", | 76 "kernel_wrap_glibc.cc", |
52 "kernel_wrap_irt_ext.c", | 77 "kernel_wrap_irt_ext.c", |
53 "kernel_wrap_newlib.cc", | 78 "kernel_wrap_newlib.cc", |
54 "kernel_wrap_win.cc", | 79 "kernel_wrap_win.cc", |
55 "log.c", | 80 "log.c", |
56 "memfs/mem_fs.cc", | 81 "memfs/mem_fs.cc", |
| 82 "memfs/mem_fs.h", |
57 "memfs/mem_fs_node.cc", | 83 "memfs/mem_fs_node.cc", |
| 84 "memfs/mem_fs_node.h", |
58 "nacl_io.cc", | 85 "nacl_io.cc", |
| 86 "nacl_io.h", |
59 "node.cc", | 87 "node.cc", |
| 88 "node.h", |
60 "passthroughfs/passthrough_fs.cc", | 89 "passthroughfs/passthrough_fs.cc", |
| 90 "passthroughfs/passthrough_fs.h", |
61 "passthroughfs/real_node.cc", | 91 "passthroughfs/real_node.cc", |
| 92 "passthroughfs/real_node.h", |
62 "path.cc", | 93 "path.cc", |
63 "pepper_interface.cc", | 94 "pepper_interface.cc", |
| 95 "pepper_interface.h", |
64 "pepper_interface_delegate.cc", | 96 "pepper_interface_delegate.cc", |
| 97 "pepper_interface_delegate.h", |
65 "pipe/pipe_event_emitter.cc", | 98 "pipe/pipe_event_emitter.cc", |
| 99 "pipe/pipe_event_emitter.h", |
66 "pipe/pipe_node.cc", | 100 "pipe/pipe_node.cc", |
| 101 "pipe/pipe_node.h", |
67 "real_pepper_interface.cc", | 102 "real_pepper_interface.cc", |
| 103 "real_pepper_interface.h", |
68 "socket/fifo_packet.cc", | 104 "socket/fifo_packet.cc", |
| 105 "socket/fifo_packet.h", |
69 "socket/packet.cc", | 106 "socket/packet.cc", |
| 107 "socket/packet.h", |
70 "socket/socket_node.cc", | 108 "socket/socket_node.cc", |
| 109 "socket/socket_node.h", |
71 "socket/tcp_event_emitter.cc", | 110 "socket/tcp_event_emitter.cc", |
| 111 "socket/tcp_event_emitter.h", |
72 "socket/tcp_node.cc", | 112 "socket/tcp_node.cc", |
| 113 "socket/tcp_node.h", |
73 "socket/udp_event_emitter.cc", | 114 "socket/udp_event_emitter.cc", |
| 115 "socket/udp_event_emitter.h", |
74 "socket/udp_node.cc", | 116 "socket/udp_node.cc", |
| 117 "socket/udp_node.h", |
75 "socket/unix_event_emitter.cc", | 118 "socket/unix_event_emitter.cc", |
| 119 "socket/unix_event_emitter.h", |
76 "socket/unix_node.cc", | 120 "socket/unix_node.cc", |
| 121 "socket/unix_node.h", |
77 "stream/stream_event_emitter.cc", | 122 "stream/stream_event_emitter.cc", |
| 123 "stream/stream_event_emitter.h", |
78 "stream/stream_fs.cc", | 124 "stream/stream_fs.cc", |
| 125 "stream/stream_fs.h", |
79 "stream/stream_node.cc", | 126 "stream/stream_node.cc", |
| 127 "stream/stream_node.h", |
80 "syscalls/access.c", | 128 "syscalls/access.c", |
81 "syscalls/chown.c", | 129 "syscalls/chown.c", |
82 "syscalls/fchown.c", | 130 "syscalls/fchown.c", |
83 "syscalls/fcntl.c", | 131 "syscalls/fcntl.c", |
84 "syscalls/ftruncate.c", | 132 "syscalls/ftruncate.c", |
85 "syscalls/futimes.c", | 133 "syscalls/futimes.c", |
86 "syscalls/getwd.c", | 134 "syscalls/getwd.c", |
87 "syscalls/ioctl.c", | 135 "syscalls/ioctl.c", |
88 "syscalls/isatty.c", | 136 "syscalls/isatty.c", |
89 "syscalls/kill.c", | 137 "syscalls/kill.c", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 "syscalls/umount.c", | 198 "syscalls/umount.c", |
151 "syscalls/uname.c", | 199 "syscalls/uname.c", |
152 "syscalls/utime.c", | 200 "syscalls/utime.c", |
153 ] | 201 ] |
154 | 202 |
155 include_dirs = [ ".." ] | 203 include_dirs = [ ".." ] |
156 configs += [ ":nacl_io_config" ] | 204 configs += [ ":nacl_io_config" ] |
157 | 205 |
158 public_configs = [ ":nacl_io_include_dirs" ] | 206 public_configs = [ ":nacl_io_include_dirs" ] |
159 } | 207 } |
OLD | NEW |