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

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

Issue 1269293003: Explicitly pass -Wno-unused-function to the targets that need it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gnnnnnnnnnnn Created 5 years, 4 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 | « third_party/sqlite/sqlite.gyp ('k') | third_party/usrsctp/usrsctp.gyp » ('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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ] 77 ]
78 78
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 config("usrsctp_warnings") {
88 if (is_clang) {
89 # atomic_init in user_atomic.h is a static function in a header.
90 cflags = [ "-Wno-unused-function" ]
91 }
92 }
87 configs -= [ "//build/config/compiler:chromium_code" ] 93 configs -= [ "//build/config/compiler:chromium_code" ]
88 configs += [ "//build/config/compiler:no_chromium_code" ] 94 configs += [ "//build/config/compiler:no_chromium_code" ]
89 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ] 95 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ]
96 configs += [ ":usrsctp_warnings" ]
90 97
91 public_configs = [ ":usrsctp_config" ] 98 public_configs = [ ":usrsctp_config" ]
92 99
93 if (use_openssl) { 100 if (use_openssl) {
94 defines += [ "SCTP_USE_OPENSSL_SHA1" ] 101 defines += [ "SCTP_USE_OPENSSL_SHA1" ]
95 } else { 102 } else {
96 defines += [ "SCTP_USE_NSS_SHA1" ] 103 defines += [ "SCTP_USE_NSS_SHA1" ]
97 } 104 }
98 105
99 if (is_linux || is_android) { 106 if (is_linux || is_android) {
(...skipping 19 matching lines...) Expand all
119 ] 126 ]
120 configs -= [ "//build/config/win:winver" ] 127 configs -= [ "//build/config/win:winver" ]
121 } else { 128 } else {
122 defines += [ "NON_WINDOWS_DEFINE" ] 129 defines += [ "NON_WINDOWS_DEFINE" ]
123 } 130 }
124 131
125 deps = [ 132 deps = [
126 "//crypto:platform", 133 "//crypto:platform",
127 ] 134 ]
128 } 135 }
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite.gyp ('k') | third_party/usrsctp/usrsctp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698