| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 config("usrsctp_config") { | 5 config("usrsctp_config") { |
| 6 include_dirs = [ | 6 include_dirs = [ |
| 7 "usrsctplib/usrsctplib", | 7 "usrsctplib/usrsctplib", |
| 8 "usrsctplib/usrsctplib/netinet", | 8 "usrsctplib/usrsctplib/netinet", |
| 9 ] | 9 ] |
| 10 } | 10 } |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 defines += [ | 116 defines += [ |
| 117 "HAVE_SA_LEN", | 117 "HAVE_SA_LEN", |
| 118 "HAVE_SCONN_LEN", | 118 "HAVE_SCONN_LEN", |
| 119 "__APPLE_USE_RFC_2292", | 119 "__APPLE_USE_RFC_2292", |
| 120 "__Userspace_os_Darwin", | 120 "__Userspace_os_Darwin", |
| 121 ] | 121 ] |
| 122 cflags += [ "-U__APPLE__" ] | 122 cflags += [ "-U__APPLE__" ] |
| 123 } | 123 } |
| 124 | 124 |
| 125 if (is_win) { | 125 if (is_win) { |
| 126 defines += [ | 126 defines += [ "__Userspace_os_Windows" ] |
| 127 "__Userspace_os_Windows", | |
| 128 | |
| 129 # Manually setting WINVER and _WIN32_WINNT is needed because Chrome | |
| 130 # sets WINVER to a newer version of windows. But compiling usrsctp | |
| 131 # this way would is incompatible with windows XP. | |
| 132 "WINVER=0x0502", | |
| 133 "_WIN32_WINNT=0x0502", | |
| 134 ] | |
| 135 configs -= [ "//build/config/win:winver" ] | |
| 136 } else { | 127 } else { |
| 137 defines += [ "NON_WINDOWS_DEFINE" ] | 128 defines += [ "NON_WINDOWS_DEFINE" ] |
| 138 } | 129 } |
| 139 | 130 |
| 140 deps = [ | 131 deps = [ |
| 141 "//third_party/boringssl", | 132 "//third_party/boringssl", |
| 142 ] | 133 ] |
| 143 } | 134 } |
| OLD | NEW |