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': { | 5 'variables': { |
6 'libsctp_target_type%': 'static_library', | 6 'libsctp_target_type%': 'static_library', |
7 }, | 7 }, |
8 'target_defaults': { | 8 'target_defaults': { |
9 'defines': [ | 9 'defines': [ |
10 'SCTP_PROCESS_LEVEL_LOCKS', | 10 'SCTP_PROCESS_LEVEL_LOCKS', |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 'usrsctplib/usrsctp.h' | 120 'usrsctplib/usrsctp.h' |
121 ], # sources | 121 ], # sources |
122 'conditions': [ | 122 'conditions': [ |
123 ['OS=="linux" or OS=="android"', { | 123 ['OS=="linux" or OS=="android"', { |
124 'defines': [ | 124 'defines': [ |
125 '__Userspace_os_Linux', | 125 '__Userspace_os_Linux', |
126 ], | 126 ], |
127 'cflags!': [ '-Werror', '-Wall' ], | 127 'cflags!': [ '-Werror', '-Wall' ], |
128 'cflags': [ '-w' ], | 128 'cflags': [ '-w' ], |
129 }], | 129 }], |
130 ['OS=="mac"', { | 130 ['OS=="mac" or OS=="ios"', { |
131 'defines': [ | 131 'defines': [ |
132 'HAVE_SA_LEN', | 132 'HAVE_SA_LEN', |
133 'HAVE_SCONN_LEN', | 133 'HAVE_SCONN_LEN', |
134 '__APPLE_USE_RFC_2292', | 134 '__APPLE_USE_RFC_2292', |
135 '__Userspace_os_Darwin', | 135 '__Userspace_os_Darwin', |
136 ], | 136 ], |
137 # usrsctp requires that __APPLE__ is undefined for compilation (for | 137 # usrsctp requires that __APPLE__ is undefined for compilation (for |
138 # historical reasons). There is a plan to change this, and when it | 138 # historical reasons). There is a plan to change this, and when it |
139 # happens and we re-roll DEPS for usrsctp, we can remove the manual | 139 # happens and we re-roll DEPS for usrsctp, we can remove the manual |
140 # undefining of __APPLE__. | 140 # undefining of __APPLE__. |
(...skipping 23 matching lines...) Expand all Loading... |
164 'msvs_disabled_warnings': [ 4002, 4013, 4018, 4133, 4267, 4313, 4700 ]
, | 164 'msvs_disabled_warnings': [ 4002, 4013, 4018, 4133, 4267, 4313, 4700 ]
, |
165 }, { # OS != "win", | 165 }, { # OS != "win", |
166 'defines': [ | 166 'defines': [ |
167 'NON_WINDOWS_DEFINE', | 167 'NON_WINDOWS_DEFINE', |
168 ], | 168 ], |
169 }], | 169 }], |
170 ], # conditions | 170 ], # conditions |
171 }, # target usrsctp | 171 }, # target usrsctp |
172 ], # targets | 172 ], # targets |
173 } | 173 } |
OLD | NEW |