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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 # undefining of __APPLE__. | 123 # undefining of __APPLE__. |
124 'xcode_settings': { | 124 'xcode_settings': { |
125 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], | 125 'OTHER_CFLAGS!': [ '-Werror', '-Wall' ], |
126 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], | 126 'OTHER_CFLAGS': [ '-U__APPLE__', '-w' ], |
127 }, | 127 }, |
128 }], | 128 }], |
129 ['OS=="win"', { | 129 ['OS=="win"', { |
130 'defines': [ | 130 'defines': [ |
131 '__Userspace_os_Windows', | 131 '__Userspace_os_Windows', |
132 # Manually setting WINVER and _WIN32_WINNT is needed because Chrome | 132 # Manually setting WINVER and _WIN32_WINNT is needed because Chrome |
133 # sets WINVER to a newer version of Windows. But compiling usrsctp | 133 # sets WINVER to a newer version of windows. But compiling usrsctp |
134 # this way would be incompatible with Windows XP. | 134 # this way would is incompatible with windows XP. |
135 'WINVER=0x0502', | 135 'WINVER=0x0502', |
136 '_WIN32_WINNT=0x0502', | 136 '_WIN32_WINNT=0x0502', |
137 ], | 137 ], |
138 'defines!': [ | 138 'defines!': [ |
139 # Remove Chrome's WINVER defines to avoid redefinition warnings. | 139 # Remove Chrome's WINVER defines to avoid redefinition warnings. |
140 'WINVER=0x0A00', | 140 'WINVER=0x0603', |
141 '_WIN32_WINNT=0x0A00', | 141 '_WIN32_WINNT=0x0603', |
142 ], | 142 ], |
143 'cflags!': [ '/W3', '/WX' ], | 143 'cflags!': [ '/W3', '/WX' ], |
144 'cflags': [ '/w' ], | 144 'cflags': [ '/w' ], |
145 # TODO(ldixon) : Remove this disabling of warnings by pushing a | 145 # TODO(ldixon) : Remove this disabling of warnings by pushing a |
146 # fix upstream to usrsctp | 146 # fix upstream to usrsctp |
147 'msvs_disabled_warnings': [ 4002, 4013, 4133, 4267, 4313, 4700 ], | 147 'msvs_disabled_warnings': [ 4002, 4013, 4133, 4267, 4313, 4700 ], |
148 }, { # OS != "win", | 148 }, { # OS != "win", |
149 'defines': [ | 149 'defines': [ |
150 'NON_WINDOWS_DEFINE', | 150 'NON_WINDOWS_DEFINE', |
151 ], | 151 ], |
152 }], | 152 }], |
153 ], # conditions | 153 ], # conditions |
154 }, # target usrsctp | 154 }, # target usrsctp |
155 ], # targets | 155 ], # targets |
156 } | 156 } |
OLD | NEW |