Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client / src / untrusted / nacl / BUILD.gn
1 # Copyright (c) 2014 The Native ClientAuthors. 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.
4
5
6 import("//native_client/build/toolchain/nacl/nacl_sdk.gni")
7
8 #  Autogenerated from src/untrusted/nacl/nacl.scons.
9
10
11 static_library("nacl_dyncode_private") {
12   cflags_c = []
13   sources = [
14     "dyncode_private.c",
15   ]
16
17   if (cpu_arch == "pnacl") {
18     cflags_c += [
19       "-Wno-self-assign",
20       "-allow-asm",
21     ]
22   }
23 }
24 static_library("nacl_random_private") {
25   cflags_c = []
26   sources = [
27     "irt_nameservice",
28     "irt_random",
29   ]
30
31   if (cpu_arch == "pnacl") {
32     cflags_c += [
33       "-Wno-self-assign",
34       "-allow-asm",
35     ]
36   }
37 }
38 static_library("nacl_sys_private") {
39   cflags_c = []
40   sources = [
41     "null.c",
42     "sysbrk.c",
43   ]
44
45   if (os != "glibc") {
46     sources += [
47       "None",
48       "private_blockhook",
49     ]
50   }
51
52   if (cpu_arch == "pnacl") {
53     cflags_c += [
54       "-Wno-self-assign",
55       "-allow-asm",
56     ]
57   }
58 }
59 static_library("imc_syscalls") {
60   cflags_c = []
61   sources = [
62     "imc_accept.c",
63     "imc_connect.c",
64     "imc_makeboundsock.c",
65     "imc_mem_obj_create.c",
66     "imc_recvmsg.c",
67     "imc_sendmsg.c",
68     "imc_socketpair.c",
69     "nameservice.c",
70   ]
71
72   if (cpu_arch == "pnacl") {
73     cflags_c += [
74       "-Wno-self-assign",
75       "-allow-asm",
76     ]
77   }
78 }
79 static_library("nacl_exception_private") {
80   cflags_c = []
81   sources = [
82     "nacl_exception_private.c",
83   ]
84
85   if (cpu_arch == "pnacl") {
86     cflags_c += [
87       "-Wno-self-assign",
88       "-allow-asm",
89     ]
90   }
91 }
92 static_library("nacl_list_mappings_private") {
93   cflags_c = []
94   sources = [
95     "list_mappings_private.c",
96   ]
97
98   if (cpu_arch == "pnacl") {
99     cflags_c += [
100       "-Wno-self-assign",
101       "-allow-asm",
102     ]
103   }
104 }
105 static_library("nacl_dyncode") {
106   cflags_c = []
107   sources = [
108     "dyncode.c",
109   ]
110
111   if (cpu_arch == "pnacl") {
112     cflags_c += [
113       "-Wno-self-assign",
114       "-allow-asm",
115     ]
116   }
117 }
118 static_library("nacl") {
119   cflags_c = ["-std=c99"]
120   sources = [
121     "gc_hooks.c",
122     "nacl_irt.c",
123     "nacl_irt_init.c",
124     "nacl_tls_get.c",
125     "nacl_tls_init.c",
126     "random.c",
127   ]
128
129   if (os != "glibc") {
130     sources += [
131       "_exit.c",
132       "abort.c",
133       "access.c",
134       "chdir.c",
135       "chmod.c",
136       "clock.c",
137       "clock_getres.c",
138       "clock_gettime.c",
139       "close.c",
140       "dup.c",
141       "eaccess.c",
142       "fchdir.c",
143       "fchmod.c",
144       "fdatasync.c",
145       "fstat.c",
146       "fsync.c",
147       "ftruncate.c",
148       "getcwd.c",
149       "getdents.c",
150       "gethostname.c",
151       "getpagesize.c",
152       "getpid.c",
153       "gettimeofday.c",
154       "htonl.c",
155       "htons.c",
156       "isatty.c",
157       "link.c",
158       "lock.c",
159       "lseek.c",
160       "lstat.c",
161       "malloc.c",
162       "mkdir.c",
163       "mmap.c",
164       "mprotect.c",
165       "munmap.c",
166       "nacl_add_tp.c",
167       "nacl_ext_supply.c",
168       "nacl_interface_query.c",
169       "nacl_irt_fdio.c",
170       "nacl_irt_filename.c",
171       "nacl_read_tp.c",
172       "nanosleep.c",
173       "ntohl.c",
174       "ntohs.c",
175       "open.c",
176       "pthread_initialize_minimal.c",
177       "pthread_stubs.c",
178       "read.c",
179       "readlink.c",
180       "rename.c",
181       "rmdir.c",
182       "sbrk.c",
183       "sched_yield.c",
184       "sigblock.c",
185       "siggetmask.c",
186       "sigmask.c",
187       "sigprocmask.c",
188       "sigsetmask.c",
189       "stacktrace.c",
190       "start.c",
191       "stat.c",
192       "stubs/_execve.c",
193       "stubs/accept.c",
194       "stubs/addmntent.c",
195       "stubs/bind.c",
196       "stubs/chown.c",
197       "stubs/closelog.c",
198       "stubs/connect.c",
199       "stubs/endgrent.c",
200       "stubs/endmntent.c",
201       "stubs/endpwent.c",
202       "stubs/environ.c",
203       "stubs/execvpe.c",
204       "stubs/fchown.c",
205       "stubs/fcntl.c",
206       "stubs/fork.c",
207       "stubs/freeaddrinfo.c",
208       "stubs/fstatvfs.c",
209       "stubs/gai_strerror.c",
210       "stubs/get_current_dir_name.c",
211       "stubs/getaddrinfo.c",
212       "stubs/getdtablesize.c",
213       "stubs/getegid.c",
214       "stubs/geteuid.c",
215       "stubs/getgid.c",
216       "stubs/getgrent.c",
217       "stubs/getgrgid.c",
218       "stubs/getgrgid_r.c",
219       "stubs/getgrnam.c",
220       "stubs/getgroups.c",
221       "stubs/gethostbyaddr.c",
222       "stubs/gethostbyname.c",
223       "stubs/getlogin.c",
224       "stubs/getmntent.c",
225       "stubs/getnameinfo.c",
226       "stubs/getpeername.c",
227       "stubs/getpgrp.c",
228       "stubs/getppid.c",
229       "stubs/getpwent.c",
230       "stubs/getpwnam.c",
231       "stubs/getpwnam_r.c",
232       "stubs/getpwuid.c",
233       "stubs/getpwuid_r.c",
234       "stubs/getrlimit.c",
235       "stubs/getrusage.c",
236       "stubs/getservbyport.c",
237       "stubs/getsockname.c",
238       "stubs/getsockopt.c",
239       "stubs/getuid.c",
240       "stubs/getwd.c",
241       "stubs/hasmntopt.c",
242       "stubs/if_freenameindex.c",
243       "stubs/if_indextoname.c",
244       "stubs/if_nameindex.c",
245       "stubs/if_nametoindex.c",
246       "stubs/inet_ntoa.c",
247       "stubs/inet_ntop.c",
248       "stubs/initgroups.c",
249       "stubs/ioctl.c",
250       "stubs/issetugid.c",
251       "stubs/kill.c",
252       "stubs/lchown.c",
253       "stubs/listen.c",
254       "stubs/llseek.c",
255       "stubs/major.c",
256       "stubs/makedev.c",
257       "stubs/minor.c",
258       "stubs/mkfifo.c",
259       "stubs/mknod.c",
260       "stubs/msync.c",
261       "stubs/openlog.c",
262       "stubs/pipe.c",
263       "stubs/poll.c",
264       "stubs/pselect.c",
265       "stubs/pthread_sigmask.c",
266       "stubs/readv.c",
267       "stubs/recv.c",
268       "stubs/recvfrom.c",
269       "stubs/recvmsg.c",
270       "stubs/sched_get_priority_max.c",
271       "stubs/sched_get_priority_min.c",
272       "stubs/sched_setparam.c",
273       "stubs/sched_setscheduler.c",
274       "stubs/select.c",
275       "stubs/send.c",
276       "stubs/sendmsg.c",
277       "stubs/sendto.c",
278       "stubs/setegid.c",
279       "stubs/seteuid.c",
280       "stubs/setgid.c",
281       "stubs/setgrent.c",
282       "stubs/setgroups.c",
283       "stubs/setmntent.c",
284       "stubs/setpgid.c",
285       "stubs/setpwent.c",
286       "stubs/setrlimit.c",
287       "stubs/setsid.c",
288       "stubs/setsockopt.c",
289       "stubs/settimeofday.c",
290       "stubs/setuid.c",
291       "stubs/shutdown.c",
292       "stubs/sigaction.c",
293       "stubs/signal.c",
294       "stubs/sigsuspend.c",
295       "stubs/sigvec.c",
296       "stubs/socket.c",
297       "stubs/socketpair.c",
298       "stubs/statvfs.c",
299       "stubs/syslog.c",
300       "stubs/tcdrain.c",
301       "stubs/tcflow.c",
302       "stubs/tcflush.c",
303       "stubs/tcgetattr.c",
304       "stubs/tcsendbreak.c",
305       "stubs/tcsetattr.c",
306       "stubs/times.c",
307       "stubs/ttyname.c",
308       "stubs/ttyname_r.c",
309       "stubs/umask.c",
310       "stubs/utime.c",
311       "stubs/vfork.c",
312       "stubs/wait.c",
313       "stubs/waitpid.c",
314       "symlink.c",
315       "sysconf.c",
316       "tls.c",
317       "truncate.c",
318       "unlink.c",
319       "utimes.c",
320       "write.c",
321     ]
322   }
323
324   if ((os != "glibc") && (cpu_arch == "arm")) {
325     sources += [
326       "aeabi_read_tp.S",
327     ]
328   }
329
330   if (cpu_arch == "pnacl") {
331     cflags_c += [
332       "-Wno-self-assign",
333       "-allow-asm",
334     ]
335   }
336 }
337
338 source_set("irt_random") {
339   cflags_c = []
340   sources = [
341     "../../untrusted/irt/irt_random.c",
342   ]
343
344   if (cpu_arch == "pnacl") {
345     cflags_c += [
346       "-Wno-self-assign",
347       "-allow-asm",
348     ]
349   }
350 }
351 source_set("irt_nameservice") {
352   cflags_c = []
353   sources = [
354     "../../untrusted/irt/irt_nameservice.c",
355   ]
356
357   if (cpu_arch == "pnacl") {
358     cflags_c += [
359       "-Wno-self-assign",
360       "-allow-asm",
361     ]
362   }
363 }
364 static_library("nacl_exception") {
365   cflags_c = []
366   sources = [
367     "nacl_exception.c",
368   ]
369
370   if (cpu_arch == "pnacl") {
371     cflags_c += [
372       "-Wno-self-assign",
373       "-allow-asm",
374     ]
375   }
376 }
377 static_library("nacl_list_mappings") {
378   cflags_c = []
379   sources = [
380     "list_mappings.c",
381   ]
382
383   if (cpu_arch == "pnacl") {
384     cflags_c += [
385       "-Wno-self-assign",
386       "-allow-asm",
387     ]
388   }
389 }
390
391 if (os != "glibc") {
392   source_set("sys_private") {
393     cflags_c = []
394     sources = [
395       "sys_private.c",
396     ]
397
398     if (cpu_arch == "pnacl") {
399       cflags_c += [
400         "-Wno-self-assign",
401         "-allow-asm",
402       ]
403     }
404   }
405   source_set("gc_hooks_private") {
406     cflags_c = []
407     sources = [
408       "gc_hooks_private.c",
409     ]
410
411     if (cpu_arch == "pnacl") {
412       cflags_c += [
413         "-Wno-self-assign",
414         "-allow-asm",
415       ]
416     }
417   }
418   source_set("private_blockhook") {
419     cflags_c = []
420     sources = [
421       "../../untrusted/irt/irt_blockhook.c",
422     ]
423
424     if (cpu_arch == "pnacl") {
425       cflags_c += [
426         "-Wno-self-assign",
427         "-allow-asm",
428       ]
429     }
430   }
431 }