OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 'variables': { |
| 6 'libsctp_target_type%': 'static_library', |
| 7 }, |
| 8 'target_defaults': { |
| 9 'defines': [ |
| 10 'INET', |
| 11 'SCTP_PROCESS_LEVEL_LOCKS', |
| 12 'SCTP_SIMPLE_ALLOCATOR', |
| 13 'USE_SCTP_SHA1', |
| 14 '__Userspace__', |
| 15 # 'SCTP_DEBUG', # Uncomment for SCTP debugging. |
| 16 ], |
| 17 'include_dirs': [ |
| 18 'overrides/usrsctplib', |
| 19 'usrsctplib/', |
| 20 'usrsctplib/netinet', |
| 21 'usrsctplib/netinet6', |
| 22 ], |
| 23 'direct_dependent_settings': { |
| 24 'include_dirs': [ |
| 25 'overrides/usrsctplib', |
| 26 'usrsctplib/', |
| 27 'usrsctplib/netinet', |
| 28 'usrsctplib/netinet6', |
| 29 ], |
| 30 }, |
| 31 'conditions': [ |
| 32 ['OS == "linux"', { |
| 33 'include_dirs': [ |
| 34 '/usr/include/nss', |
| 35 '/usr/include/nspr', |
| 36 ], |
| 37 }], |
| 38 ['OS == "mac" or OS == "ios" or OS == "win"', { |
| 39 'dependencies': [ |
| 40 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', |
| 41 '<(DEPTH)/third_party/nss/nss.gyp:nspr', |
| 42 '<(DEPTH)/third_party/nss/nss.gyp:nss', |
| 43 ], |
| 44 }], |
| 45 ['OS == "mac"', { |
| 46 'defines': [ |
| 47 '__APPLE__', |
| 48 ], |
| 49 }], |
| 50 ], |
| 51 }, |
5 'targets': [ | 52 'targets': [ |
6 { | 53 { |
7 'target_name': 'usrsctplib', | 54 'target_name': 'usrsctplib', |
8 'type': 'static_library', | 55 'type': 'static_library', |
9 'direct_dependent_settings': { | |
10 'include_dirs': [ | |
11 '.', | |
12 ], | |
13 'defines': [ | |
14 'INET', | |
15 'SCTP_PROCESS_LEVEL_LOCKS', | |
16 'SCTP_SIMPLE_ALLOCATOR', | |
17 'STDC_HEADERS', | |
18 'USE_SCTP_SHA1', | |
19 '__Userspace__', | |
20 # 'SCTP_DEBUG', # Uncomment for SCTP debugging. | |
21 ], | |
22 }, | |
23 'include_dirs': [ | |
24 'usrsctplib/', | |
25 'usrsctplib/netinet', | |
26 'usrsctplib/netinet6', | |
27 ], | |
28 'sources': [ | 56 'sources': [ |
| 57 'overrides/usrsctplib/netinet/sctp_sha1.c', |
| 58 'overrides/usrsctplib/netinet/sctp_sha1.h', |
| 59 |
| 60 'usrsctplib/usrsctp.h', |
| 61 'usrsctplib/user_atomic.h', |
29 'usrsctplib/user_environment.c', | 62 'usrsctplib/user_environment.c', |
| 63 'usrsctplib/user_environment.h', |
| 64 'usrsctplib/user_inpcb.h', |
| 65 'usrsctplib/user_ip6_var.h', |
| 66 'usrsctplib/user_ip_icmp.h', |
30 'usrsctplib/user_mbuf.c', | 67 'usrsctplib/user_mbuf.c', |
| 68 'usrsctplib/user_mbuf.h', |
| 69 'usrsctplib/user_queue.h', |
31 'usrsctplib/user_recv_thread.c', | 70 'usrsctplib/user_recv_thread.c', |
| 71 'usrsctplib/user_recv_thread.h', |
| 72 'usrsctplib/user_route.h', |
32 'usrsctplib/user_sctp_timer_iterate.c', | 73 'usrsctplib/user_sctp_timer_iterate.c', |
33 'usrsctplib/user_socket.c', | 74 'usrsctplib/user_socket.c', |
| 75 'usrsctplib/user_socketvar.h', |
| 76 'usrsctplib/user_uma.h', |
34 'usrsctplib/netinet/sctp_asconf.c', | 77 'usrsctplib/netinet/sctp_asconf.c', |
| 78 'usrsctplib/netinet/sctp_asconf.h', |
35 'usrsctplib/netinet/sctp_auth.c', | 79 'usrsctplib/netinet/sctp_auth.c', |
| 80 'usrsctplib/netinet/sctp_auth.h', |
36 'usrsctplib/netinet/sctp_bsd_addr.c', | 81 'usrsctplib/netinet/sctp_bsd_addr.c', |
| 82 'usrsctplib/netinet/sctp_bsd_addr.h', |
37 'usrsctplib/netinet/sctp_callout.c', | 83 'usrsctplib/netinet/sctp_callout.c', |
| 84 'usrsctplib/netinet/sctp_callout.h', |
38 'usrsctplib/netinet/sctp_cc_functions.c', | 85 'usrsctplib/netinet/sctp_cc_functions.c', |
| 86 'usrsctplib/netinet/sctp_constants.h', |
39 'usrsctplib/netinet/sctp_crc32.c', | 87 'usrsctplib/netinet/sctp_crc32.c', |
| 88 'usrsctplib/netinet/sctp_crc32.h', |
| 89 'usrsctplib/netinet/sctp_hashdriver.h', |
40 'usrsctplib/netinet/sctp_hashdriver.c', | 90 'usrsctplib/netinet/sctp_hashdriver.c', |
| 91 'usrsctplib/netinet/sctp_header.h', |
41 'usrsctplib/netinet/sctp_indata.c', | 92 'usrsctplib/netinet/sctp_indata.c', |
| 93 'usrsctplib/netinet/sctp_indata.h', |
42 'usrsctplib/netinet/sctp_input.c', | 94 'usrsctplib/netinet/sctp_input.c', |
| 95 'usrsctplib/netinet/sctp_input.h', |
| 96 'usrsctplib/netinet/sctp_lock_userspace.h', |
| 97 'usrsctplib/netinet/sctp_os.h', |
| 98 'usrsctplib/netinet/sctp_os_userspace.h', |
43 'usrsctplib/netinet/sctp_output.c', | 99 'usrsctplib/netinet/sctp_output.c', |
| 100 'usrsctplib/netinet/sctp_output.h', |
44 'usrsctplib/netinet/sctp_pcb.c', | 101 'usrsctplib/netinet/sctp_pcb.c', |
| 102 'usrsctplib/netinet/sctp_pcb.h', |
45 'usrsctplib/netinet/sctp_peeloff.c', | 103 'usrsctplib/netinet/sctp_peeloff.c', |
46 'usrsctplib/netinet/sctp_sha1.c', | 104 'usrsctplib/netinet/sctp_peeloff.h', |
47 'usrsctplib/netinet/sctp_ss_functions.c', | 105 'usrsctplib/netinet/sctp_ss_functions.c', |
| 106 'usrsctplib/netinet/sctp_structs.h', |
48 'usrsctplib/netinet/sctp_sysctl.c', | 107 'usrsctplib/netinet/sctp_sysctl.c', |
| 108 'usrsctplib/netinet/sctp_sysctl.h', |
| 109 'usrsctplib/netinet/sctp_timer.c', |
| 110 'usrsctplib/netinet/sctp_timer.h', |
| 111 'usrsctplib/netinet/sctp_uio.h', |
49 'usrsctplib/netinet/sctp_userspace.c', | 112 'usrsctplib/netinet/sctp_userspace.c', |
50 'usrsctplib/netinet/sctp_timer.c', | |
51 'usrsctplib/netinet/sctp_usrreq.c', | 113 'usrsctplib/netinet/sctp_usrreq.c', |
52 'usrsctplib/netinet/sctputil.c', | 114 'usrsctplib/netinet/sctputil.c', |
| 115 'usrsctplib/netinet/sctputil.h', |
| 116 'usrsctplib/netinet/sctp_var.h', |
53 'usrsctplib/netinet6/sctp6_usrreq.c', | 117 'usrsctplib/netinet6/sctp6_usrreq.c', |
| 118 'usrsctplib/netinet6/sctp6_var.h', |
54 ], # sources | 119 ], # sources |
55 'conditions': [ | 120 'conditions': [ |
56 ['OS=="linux"', { | 121 ['OS=="linux"', { |
57 'defines': [ | 122 'defines': [ |
58 'HAVE_INET_ADDR', | 123 'HAVE_INET_ADDR', |
59 'HAVE_SOCKET', | 124 'HAVE_SOCKET', |
60 '__Userspace_os_Linux', | 125 '__Userspace_os_Linux', |
61 ], | 126 ], |
62 'ccflags!': [ '-Werror', '-Wall' ], | 127 'cflags!': [ '-Werror', '-Wall' ], |
63 'ccflags': [ '-w' ], | 128 'cflags': [ '-w' ], |
64 }], | 129 }], |
65 ['OS=="mac"', { | 130 ['OS=="mac"', { |
66 'defines': [ | 131 'defines': [ |
67 'HAVE_INET_ADDR', | 132 'HAVE_INET_ADDR', |
68 'HAVE_SA_LEN', | 133 'HAVE_SA_LEN', |
69 'HAVE_SCONN_LEN', | 134 'HAVE_SCONN_LEN', |
70 'HAVE_SIN6_LEN', | 135 'HAVE_SIN6_LEN', |
71 'HAVE_SIN_LEN', | 136 'HAVE_SIN_LEN', |
72 'HAVE_SOCKET', | 137 'HAVE_SOCKET', |
73 'INET6', | 138 'INET6', |
74 '__APPLE_USE_RFC_2292', | 139 '__APPLE_USE_RFC_2292', |
75 '__Userspace_os_Darwin', | 140 '__Userspace_os_Darwin', |
76 ], | 141 ], |
77 # TODO(ldixon): explore why gyp cflags here does not get picked up. | 142 # TODO(ldixon): explore why gyp cflags here does not get picked up. |
78 'xcode_settings': { | 143 'xcode_settings': { |
79 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], | 144 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], |
80 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], | 145 'OTHER_CFLAGS': [ '-w' ], |
81 }, | 146 }, |
82 }], | 147 }], |
83 ['OS=="win"', { | 148 ['OS=="win"', { |
84 'defines': [ | 149 'defines': [ |
85 'INET6', | 150 'INET6', |
86 '__Userspace_os_Windows', | 151 '__Userspace_os_Windows', |
87 ], | 152 ], |
88 'ccflags!': [ '/W3', '/WX' ], | 153 'cflags!': [ '/W3', '/WX' ], |
89 'ccflags': [ '/w' ], | 154 'cflags': [ '/w' ], |
| 155 # TODO(ldixon) : Remove this disable. |
| 156 'msvs_disabled_warnings': [ 4700, 4013, 4018, 4133 ], |
90 }, { # OS != "win", | 157 }, { # OS != "win", |
91 'defines': [ | 158 'defines': [ |
92 'NON_WINDOWS_DEFINE', | 159 'NON_WINDOWS_DEFINE', |
93 ], | 160 ], |
94 }], | 161 }], |
95 ], # conditions | 162 ], # conditions |
96 }, # target usrsctp | 163 }, # target usrsctp |
97 ], # targets | 164 ], # targets |
98 } | 165 } |
OLD | NEW |