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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 | 6 |
7 config("usrsctp_config") { | 7 config("usrsctp_config") { |
8 include_dirs = [ | 8 include_dirs = [ |
9 "usrsctplib", | 9 "usrsctplib", |
10 "usrsctplib/netinet", | 10 "usrsctplib/netinet", |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 # this way would is incompatible with windows XP. | 115 # this way would is incompatible with windows XP. |
116 "WINVER=0x0502", | 116 "WINVER=0x0502", |
117 "_WIN32_WINNT=0x0502", | 117 "_WIN32_WINNT=0x0502", |
118 ] | 118 ] |
119 } else { | 119 } else { |
120 defines += [ "NON_WINDOWS_DEFINE" ] | 120 defines += [ "NON_WINDOWS_DEFINE" ] |
121 } | 121 } |
122 | 122 |
123 if (is_clang) { | 123 if (is_clang) { |
124 cflags = [ "-Wno-incompatible-pointer-types" ] | 124 cflags = [ "-Wno-incompatible-pointer-types" ] |
| 125 } else if (target_cpu == "mipsel") { |
| 126 # mipsel is still using gcc (4.9), |
| 127 # which does not support "-Wno-incompatible-pointer-types" |
| 128 # so let's disable all warnings for this module. |
| 129 cflags = [ "-w" ] |
125 } | 130 } |
126 | 131 |
127 deps = [ | 132 deps = [ |
128 "//crypto:platform", | 133 "//crypto:platform", |
129 ] | 134 ] |
130 } | 135 } |
OLD | NEW |