OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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. | |
4 { | |
5 'variables': { | |
6 'libsctp_target_type%': 'static_library', | |
7 }, | |
8 'target_defaults': { | |
9 'defines': [ | |
10 'SCTP_PROCESS_LEVEL_LOCKS', | |
11 'SCTP_SIMPLE_ALLOCATOR', | |
12 'SCTP_USE_OPENSSL_SHA1', | |
13 '__Userspace__', | |
14 # 'SCTP_DEBUG', # Uncomment for SCTP debugging. | |
15 ], | |
16 'include_dirs': [ | |
17 'usrsctplib/usrsctplib/', | |
18 'usrsctplib/usrsctplib/netinet', | |
19 ], | |
20 'dependencies': [ | |
21 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', | |
22 ], | |
23 'direct_dependent_settings': { | |
24 'include_dirs': [ | |
25 'usrsctplib/usrsctplib/', | |
26 'usrsctplib/usrsctplib/netinet', | |
27 ], | |
28 }, | |
29 }, | |
30 'targets': [ | |
31 { | |
32 # GN version: //third_party/usrsctp | |
33 'target_name': 'usrsctplib', | |
34 'type': 'static_library', | |
35 'sources': [ | |
36 # Note: sources list duplicated in GN build. | |
37 'usrsctplib/usrsctplib/netinet/sctp.h', | |
38 'usrsctplib/usrsctplib/netinet/sctp_asconf.c', | |
39 'usrsctplib/usrsctplib/netinet/sctp_asconf.h', | |
40 'usrsctplib/usrsctplib/netinet/sctp_auth.c', | |
41 'usrsctplib/usrsctplib/netinet/sctp_auth.h', | |
42 'usrsctplib/usrsctplib/netinet/sctp_bsd_addr.c', | |
43 'usrsctplib/usrsctplib/netinet/sctp_bsd_addr.h', | |
44 'usrsctplib/usrsctplib/netinet/sctp_callout.c', | |
45 'usrsctplib/usrsctplib/netinet/sctp_callout.h', | |
46 'usrsctplib/usrsctplib/netinet/sctp_cc_functions.c', | |
47 'usrsctplib/usrsctplib/netinet/sctp_constants.h', | |
48 'usrsctplib/usrsctplib/netinet/sctp_crc32.c', | |
49 'usrsctplib/usrsctplib/netinet/sctp_crc32.h', | |
50 'usrsctplib/usrsctplib/netinet/sctp_header.h', | |
51 'usrsctplib/usrsctplib/netinet/sctp_indata.c', | |
52 'usrsctplib/usrsctplib/netinet/sctp_indata.h', | |
53 'usrsctplib/usrsctplib/netinet/sctp_input.c', | |
54 'usrsctplib/usrsctplib/netinet/sctp_input.h', | |
55 'usrsctplib/usrsctplib/netinet/sctp_lock_userspace.h', | |
56 'usrsctplib/usrsctplib/netinet/sctp_os.h', | |
57 'usrsctplib/usrsctplib/netinet/sctp_os_userspace.h', | |
58 'usrsctplib/usrsctplib/netinet/sctp_output.c', | |
59 'usrsctplib/usrsctplib/netinet/sctp_output.h', | |
60 'usrsctplib/usrsctplib/netinet/sctp_pcb.c', | |
61 'usrsctplib/usrsctplib/netinet/sctp_pcb.h', | |
62 'usrsctplib/usrsctplib/netinet/sctp_peeloff.c', | |
63 'usrsctplib/usrsctplib/netinet/sctp_peeloff.h', | |
64 'usrsctplib/usrsctplib/netinet/sctp_process_lock.h', | |
65 'usrsctplib/usrsctplib/netinet/sctp_sha1.c', | |
66 'usrsctplib/usrsctplib/netinet/sctp_sha1.h', | |
67 'usrsctplib/usrsctplib/netinet/sctp_ss_functions.c', | |
68 'usrsctplib/usrsctplib/netinet/sctp_structs.h', | |
69 'usrsctplib/usrsctplib/netinet/sctp_sysctl.c', | |
70 'usrsctplib/usrsctplib/netinet/sctp_sysctl.h', | |
71 'usrsctplib/usrsctplib/netinet/sctp_timer.c', | |
72 'usrsctplib/usrsctplib/netinet/sctp_timer.h', | |
73 'usrsctplib/usrsctplib/netinet/sctp_uio.h', | |
74 'usrsctplib/usrsctplib/netinet/sctp_userspace.c', | |
75 'usrsctplib/usrsctplib/netinet/sctp_usrreq.c', | |
76 'usrsctplib/usrsctplib/netinet/sctp_var.h', | |
77 'usrsctplib/usrsctplib/netinet/sctputil.c', | |
78 'usrsctplib/usrsctplib/netinet/sctputil.h', | |
79 'usrsctplib/usrsctplib/netinet6/sctp6_usrreq.c', | |
80 'usrsctplib/usrsctplib/netinet6/sctp6_var.h', | |
81 'usrsctplib/usrsctplib/user_atomic.h', | |
82 'usrsctplib/usrsctplib/user_environment.c', | |
83 'usrsctplib/usrsctplib/user_environment.h', | |
84 'usrsctplib/usrsctplib/user_inpcb.h', | |
85 'usrsctplib/usrsctplib/user_ip6_var.h', | |
86 'usrsctplib/usrsctplib/user_ip_icmp.h', | |
87 'usrsctplib/usrsctplib/user_malloc.h', | |
88 'usrsctplib/usrsctplib/user_mbuf.c', | |
89 'usrsctplib/usrsctplib/user_mbuf.h', | |
90 'usrsctplib/usrsctplib/user_queue.h', | |
91 'usrsctplib/usrsctplib/user_recv_thread.c', | |
92 'usrsctplib/usrsctplib/user_recv_thread.h', | |
93 'usrsctplib/usrsctplib/user_route.h', | |
94 'usrsctplib/usrsctplib/user_socket.c', | |
95 'usrsctplib/usrsctplib/user_socketvar.h', | |
96 'usrsctplib/usrsctplib/user_uma.h', | |
97 'usrsctplib/usrsctplib/usrsctp.h', | |
98 ], # sources | |
99 'variables': { | |
100 'clang_warning_flags': [ | |
101 # atomic_init in user_atomic.h is a static function in a header. | |
102 '-Wno-unused-function', | |
103 ], | |
104 }, | |
105 'conditions': [ | |
106 ['OS=="linux" or OS=="android"', { | |
107 'defines': [ | |
108 '__Userspace_os_Linux', | |
109 '_GNU_SOURCE' | |
110 ], | |
111 'cflags!': [ '-Werror', '-Wall' ], | |
112 'cflags': [ '-w' ], | |
113 }], | |
114 ['OS=="mac" or OS=="ios"', { | |
115 'defines': [ | |
116 'HAVE_SA_LEN', | |
117 'HAVE_SCONN_LEN', | |
118 '__APPLE_USE_RFC_2292', | |
119 '__Userspace_os_Darwin', | |
120 ], | |
121 # usrsctp requires that __APPLE__ is undefined for compilation (for | |
122 # historical reasons). There is a plan to change this, and when it | |
123 # happens and we re-roll DEPS for usrsctp, we can remove the manual | |
124 # undefining of __APPLE__. | |
125 'xcode_settings': { | |
126 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], | |
127 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], | |
128 }, | |
129 }], | |
130 ['OS=="win"', { | |
131 'defines': [ | |
132 '__Userspace_os_Windows', | |
133 ], | |
134 'cflags!': [ '/W3', '/WX' ], | |
135 'cflags': [ '/w' ], | |
136 # TODO(ldixon) : Remove this disabling of warnings by pushing a | |
137 # fix upstream to usrsctp | |
138 'msvs_disabled_warnings': [ 4002, 4013, 4133, 4267, 4313, 4700 ], | |
139 }, { # OS != "win", | |
140 'defines': [ | |
141 'NON_WINDOWS_DEFINE', | |
142 ], | |
143 }], | |
144 ], # conditions | |
145 }, # target usrsctp | |
146 ], # targets | |
147 } | |
OLD | NEW |