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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 defines = [ | 80 defines = [ |
81 "SCTP_PROCESS_LEVEL_LOCKS", | 81 "SCTP_PROCESS_LEVEL_LOCKS", |
82 "SCTP_SIMPLE_ALLOCATOR", | 82 "SCTP_SIMPLE_ALLOCATOR", |
83 "__Userspace__", | 83 "__Userspace__", |
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 | 89 |
90 direct_dependent_configs = [ ":usrsctp_config" ] | 90 public_configs = [ ":usrsctp_config" ] |
91 | 91 |
92 if (use_openssl) { | 92 if (use_openssl) { |
93 defines += [ "SCTP_USE_OPENSSL_SHA1" ] | 93 defines += [ "SCTP_USE_OPENSSL_SHA1" ] |
94 } else { | 94 } else { |
95 defines += [ "SCTP_USE_NSS_SHA1" ] | 95 defines += [ "SCTP_USE_NSS_SHA1" ] |
96 } | 96 } |
97 | 97 |
98 if (is_linux || is_android) { | 98 if (is_linux || is_android) { |
99 defines += [ "__Userspace_os_Linux" ] | 99 defines += [ "__Userspace_os_Linux" ] |
100 } else if (is_mac || is_ios) { | 100 } else if (is_mac || is_ios) { |
(...skipping 19 matching lines...) Expand all Loading... |
120 } | 120 } |
121 | 121 |
122 if (is_clang) { | 122 if (is_clang) { |
123 cflags = [ "-Wno-incompatible-pointer-types" ] | 123 cflags = [ "-Wno-incompatible-pointer-types" ] |
124 } | 124 } |
125 | 125 |
126 deps = [ | 126 deps = [ |
127 "//crypto:platform", | 127 "//crypto:platform", |
128 ] | 128 ] |
129 } | 129 } |
OLD | NEW |