Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: third_party/usrsctp/BUILD.gn

Issue 1233913002: Refactor incompatible pointer type to a config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added mipsel clause back Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/gles2_conform_support/BUILD.gn ('k') | third_party/yasm/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 defines = [ 79 defines = [
80 "SCTP_PROCESS_LEVEL_LOCKS", 80 "SCTP_PROCESS_LEVEL_LOCKS",
81 "SCTP_SIMPLE_ALLOCATOR", 81 "SCTP_SIMPLE_ALLOCATOR",
82 "__Userspace__", 82 "__Userspace__",
83 83
84 # "SCTP_DEBUG", # Uncomment for SCTP debugging. 84 # "SCTP_DEBUG", # Uncomment for SCTP debugging.
85 ] 85 ]
86 86
87 configs -= [ "//build/config/compiler:chromium_code" ] 87 configs -= [ "//build/config/compiler:chromium_code" ]
88 configs += [ "//build/config/compiler:no_chromium_code" ] 88 configs += [ "//build/config/compiler:no_chromium_code" ]
89 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ]
89 90
90 public_configs = [ ":usrsctp_config" ] 91 public_configs = [ ":usrsctp_config" ]
91 92
92 if (use_openssl) { 93 if (use_openssl) {
93 defines += [ "SCTP_USE_OPENSSL_SHA1" ] 94 defines += [ "SCTP_USE_OPENSSL_SHA1" ]
94 } else { 95 } else {
95 defines += [ "SCTP_USE_NSS_SHA1" ] 96 defines += [ "SCTP_USE_NSS_SHA1" ]
96 } 97 }
97 98
98 if (is_linux || is_android) { 99 if (is_linux || is_android) {
(...skipping 15 matching lines...) Expand all
114 # sets WINVER to a newer version of windows. But compiling usrsctp 115 # sets WINVER to a newer version of windows. But compiling usrsctp
115 # this way would is incompatible with windows XP. 116 # this way would is incompatible with windows XP.
116 "WINVER=0x0502", 117 "WINVER=0x0502",
117 "_WIN32_WINNT=0x0502", 118 "_WIN32_WINNT=0x0502",
118 ] 119 ]
119 configs -= [ "//build/config/win:winver" ] 120 configs -= [ "//build/config/win:winver" ]
120 } else { 121 } else {
121 defines += [ "NON_WINDOWS_DEFINE" ] 122 defines += [ "NON_WINDOWS_DEFINE" ]
122 } 123 }
123 124
124 if (is_clang) {
125 cflags = [ "-Wno-incompatible-pointer-types" ]
126 } else if (target_cpu == "mipsel") {
127 # mipsel is still using gcc (4.9),
128 # which does not support "-Wno-incompatible-pointer-types"
129 # so let's disable all warnings for this module.
130 cflags = [ "-w" ]
131 }
132
133 deps = [ 125 deps = [
134 "//crypto:platform", 126 "//crypto:platform",
135 ] 127 ]
136 } 128 }
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/BUILD.gn ('k') | third_party/yasm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698