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

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

Issue 1316843006: Revert of Un-nest configs in GN files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/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",
11 ] 11 ]
12 } 12 }
13 13
14 config("usrsctp_warnings") {
15 if (is_clang) {
16 # atomic_init in user_atomic.h is a static function in a header.
17 cflags = [ "-Wno-unused-function" ]
18 }
19 }
20
21 static_library("usrsctp") { 14 static_library("usrsctp") {
22 sources = [ 15 sources = [
23 "usrsctplib/netinet/sctp.h", 16 "usrsctplib/netinet/sctp.h",
24 "usrsctplib/netinet/sctp_asconf.c", 17 "usrsctplib/netinet/sctp_asconf.c",
25 "usrsctplib/netinet/sctp_asconf.h", 18 "usrsctplib/netinet/sctp_asconf.h",
26 "usrsctplib/netinet/sctp_auth.c", 19 "usrsctplib/netinet/sctp_auth.c",
27 "usrsctplib/netinet/sctp_auth.h", 20 "usrsctplib/netinet/sctp_auth.h",
28 "usrsctplib/netinet/sctp_bsd_addr.c", 21 "usrsctplib/netinet/sctp_bsd_addr.c",
29 "usrsctplib/netinet/sctp_bsd_addr.h", 22 "usrsctplib/netinet/sctp_bsd_addr.h",
30 "usrsctplib/netinet/sctp_callout.c", 23 "usrsctplib/netinet/sctp_callout.c",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ] 77 ]
85 78
86 defines = [ 79 defines = [
87 "SCTP_PROCESS_LEVEL_LOCKS", 80 "SCTP_PROCESS_LEVEL_LOCKS",
88 "SCTP_SIMPLE_ALLOCATOR", 81 "SCTP_SIMPLE_ALLOCATOR",
89 "__Userspace__", 82 "__Userspace__",
90 83
91 # "SCTP_DEBUG", # Uncomment for SCTP debugging. 84 # "SCTP_DEBUG", # Uncomment for SCTP debugging.
92 ] 85 ]
93 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 }
94 configs -= [ "//build/config/compiler:chromium_code" ] 93 configs -= [ "//build/config/compiler:chromium_code" ]
95 configs += [ 94 configs += [ "//build/config/compiler:no_chromium_code" ]
96 ":usrsctp_warnings", 95 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ]
97 "//build/config/compiler:no_chromium_code", 96 configs += [ ":usrsctp_warnings" ]
98 "//build/config/compiler:no_incompatible_pointer_warnings",
99 ]
100 97
101 public_configs = [ ":usrsctp_config" ] 98 public_configs = [ ":usrsctp_config" ]
102 99
103 if (use_openssl) { 100 if (use_openssl) {
104 defines += [ "SCTP_USE_OPENSSL_SHA1" ] 101 defines += [ "SCTP_USE_OPENSSL_SHA1" ]
105 } else { 102 } else {
106 defines += [ "SCTP_USE_NSS_SHA1" ] 103 defines += [ "SCTP_USE_NSS_SHA1" ]
107 } 104 }
108 105
109 if (is_linux || is_android) { 106 if (is_linux || is_android) {
(...skipping 19 matching lines...) Expand all
129 ] 126 ]
130 configs -= [ "//build/config/win:winver" ] 127 configs -= [ "//build/config/win:winver" ]
131 } else { 128 } else {
132 defines += [ "NON_WINDOWS_DEFINE" ] 129 defines += [ "NON_WINDOWS_DEFINE" ]
133 } 130 }
134 131
135 deps = [ 132 deps = [
136 "//crypto:platform", 133 "//crypto:platform",
137 ] 134 ]
138 } 135 }
OLDNEW
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | third_party/yasm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698