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 declare_args() { | 5 declare_args() { |
6 use_system_libsrtp = false | 6 use_system_libsrtp = false |
7 } | 7 } |
8 | 8 |
9 config("libsrtp_config") { | 9 config("libsrtp_config") { |
10 defines = [ | 10 defines = [ |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 "srtp/crypto/rng/ctr_prng.c", | 141 "srtp/crypto/rng/ctr_prng.c", |
142 "srtp/crypto/rng/prng.c", | 142 "srtp/crypto/rng/prng.c", |
143 "srtp/crypto/rng/rand_source.c", | 143 "srtp/crypto/rng/rand_source.c", |
144 ] | 144 ] |
145 | 145 |
146 if (is_clang) { | 146 if (is_clang) { |
147 cflags = [ "-Wno-implicit-function-declaration" ] | 147 cflags = [ "-Wno-implicit-function-declaration" ] |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're | 151 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're |
scottmg
2014/09/08 21:38:37
It would seem I already knew this. But apparently
| |
152 # not very broken, so could probably be made to work if it's useful. | 152 # not very broken, so could probably be made to work if it's useful. |
153 if (!is_win) { | 153 if (!is_win) { |
154 executable("rdbx_driver") { | 154 executable("rdbx_driver") { |
155 configs -= [ "//build/config/compiler:chromium_code" ] | 155 configs -= [ "//build/config/compiler:chromium_code" ] |
156 configs += [ "//build/config/compiler:no_chromium_code" ] | 156 configs += [ "//build/config/compiler:no_chromium_code" ] |
157 deps = [ ":libsrtp" ] | 157 deps = [ ":libsrtp" ] |
158 sources = [ | 158 sources = [ |
159 "srtp/include/getopt_s.h", | 159 "srtp/include/getopt_s.h", |
160 "srtp/test/getopt_s.c", | 160 "srtp/test/getopt_s.c", |
161 "srtp/test/rdbx_driver.c", | 161 "srtp/test/rdbx_driver.c", |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 "srtp/include/rtp.h", | 205 "srtp/include/rtp.h", |
206 "srtp/include/srtp.h", | 206 "srtp/include/srtp.h", |
207 "srtp/crypto/include/datatypes.h", | 207 "srtp/crypto/include/datatypes.h", |
208 "srtp/test/getopt_s.c", | 208 "srtp/test/getopt_s.c", |
209 "srtp/test/rtp.c", | 209 "srtp/test/rtp.c", |
210 "srtp/test/rtpw.c", | 210 "srtp/test/rtpw.c", |
211 ] | 211 ] |
212 if (is_android) { | 212 if (is_android) { |
213 defines = [ "HAVE_SYS_SOCKET_H" ] | 213 defines = [ "HAVE_SYS_SOCKET_H" ] |
214 } | 214 } |
215 if (is_clang) { | |
216 cflags = [ "-Wno-implicit-function-declaration" ] | |
Nico
2014/09/08 21:00:23
Hm, gyp doesn't seem to need this.
scottmg
2014/09/08 21:05:05
Hmm, I just tried again to quote an error... and n
| |
217 } | |
215 } | 218 } |
216 | 219 |
217 executable("srtp_test_cipher_driver") { | 220 executable("srtp_test_cipher_driver") { |
218 configs -= [ "//build/config/compiler:chromium_code" ] | 221 configs -= [ "//build/config/compiler:chromium_code" ] |
219 configs += [ "//build/config/compiler:no_chromium_code" ] | 222 configs += [ "//build/config/compiler:no_chromium_code" ] |
220 deps = [ ":libsrtp" ] | 223 deps = [ ":libsrtp" ] |
221 sources = [ | 224 sources = [ |
222 "srtp/crypto/test/cipher_driver.c", | 225 "srtp/crypto/test/cipher_driver.c", |
223 ] | 226 ] |
224 } | 227 } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
298 ":srtp_test_stat_driver", | 301 ":srtp_test_stat_driver", |
299 ":srtp_test_sha1_driver", | 302 ":srtp_test_sha1_driver", |
300 ":srtp_test_kernel_driver", | 303 ":srtp_test_kernel_driver", |
301 ":srtp_test_aes_calc", | 304 ":srtp_test_aes_calc", |
302 ":srtp_test_rand_gen", | 305 ":srtp_test_rand_gen", |
303 ":srtp_test_env", | 306 ":srtp_test_env", |
304 ] | 307 ] |
305 } | 308 } |
306 } | 309 } |
307 } | 310 } |
OLD | NEW |