blob: e2a4a780f36c88876aaf0f18b6b7dcc206950dcc [file] [log] [blame]
Dan Willemsen21986fb2016-07-14 15:23:56 -07001// Note that some host libraries have the same module name as the target
2// libraries. This is currently needed to build, for example, adb. But it's
3// probably something that should be changed.
4
Paul Duffincb6fdd22019-06-04 13:24:44 +01005package {
6 default_visibility: ["//visibility:private"],
Bob Badourb313bb52021-02-12 15:33:59 -08007 default_applicable_licenses: ["external_boringssl_license"],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23// See: http://go/android-license-faq
24license {
25 name: "external_boringssl_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 "SPDX-license-identifier-BSD",
30 "SPDX-license-identifier-ISC",
31 "SPDX-license-identifier-MIT",
32 "SPDX-license-identifier-OpenSSL",
33 "legacy_unencumbered",
34 ],
35 license_text: [
36 "NOTICE",
37 ],
Paul Duffincb6fdd22019-06-04 13:24:44 +010038}
39
Dan Willemsen21986fb2016-07-14 15:23:56 -070040// Pull in the autogenerated sources modules
41build = ["sources.bp"]
42
43// Used by libcrypto, libssl, bssl tool, and native tests
44cc_defaults {
45 name: "boringssl_flags",
Steven Morelandf593be82017-04-14 04:51:23 -070046 vendor_available: true,
Justin Yun56083292020-11-11 15:43:11 +090047 product_available: true,
Dan Willemsen21986fb2016-07-14 15:23:56 -070048
49 cflags: [
50 "-fvisibility=hidden",
51 "-DBORINGSSL_SHARED_LIBRARY",
David Benjaminfc8a7862018-06-25 19:02:46 -040052 "-DBORINGSSL_ANDROID_SYSTEM",
Dan Willemsen21986fb2016-07-14 15:23:56 -070053 "-DOPENSSL_SMALL",
54 "-D_XOPEN_SOURCE=700",
Chih-Hung Hsieh9146d992017-09-27 10:26:03 -070055 "-Werror",
Dan Willemsen21986fb2016-07-14 15:23:56 -070056 "-Wno-unused-parameter",
57 ],
58
59 cppflags: [
60 "-Wall",
61 "-Werror",
62 ],
63
64 conlyflags: ["-std=c99"],
David Benjaminfc8a7862018-06-25 19:02:46 -040065
66 // Build BoringSSL and its tests against the same STL.
67 sdk_version: "9",
68 target: {
69 android: {
70 stl: "libc++_static",
71 },
72 },
Dan Willemsen21986fb2016-07-14 15:23:56 -070073}
74
75// Used by libcrypto + libssl
76cc_defaults {
77 name: "boringssl_defaults",
78
79 local_include_dirs: ["src/include"],
80 export_include_dirs: ["src/include"],
David Benjaminfc8a7862018-06-25 19:02:46 -040081 cflags: ["-DBORINGSSL_IMPLEMENTATION"],
Dan Willemsen21986fb2016-07-14 15:23:56 -070082}
83
84//// libcrypto
Dan Willemsen21986fb2016-07-14 15:23:56 -070085cc_defaults {
86 name: "libcrypto_defaults",
87 host_supported: true,
Yifan Hongca6b4e82020-10-21 18:11:12 -070088 ramdisk_available: true,
89 vendor_ramdisk_available: true,
Dan Willemsen21986fb2016-07-14 15:23:56 -070090
91 // Windows and Macs both have problems with assembly files
92 target: {
93 windows: {
94 enabled: true,
95 cflags: ["-DOPENSSL_NO_ASM"],
96 host_ldlibs: ["-lws2_32"],
97 },
98 darwin: {
99 cflags: ["-DOPENSSL_NO_ASM"],
100 },
Kenny Root7b550be2016-09-20 15:25:24 -0700101 host: {
Dan Willemsen21986fb2016-07-14 15:23:56 -0700102 host_ldlibs: ["-lpthread"],
103 },
Pete Bentley1e9e5852020-06-30 16:45:33 +0100104 android: {
105 // On FIPS builds (i.e. Android only) prevent other libraries
106 // from pre-empting symbols in libcrypto which could affect FIPS
107 // compliance and cause integrity checks to fail. See b/160231064.
108 ldflags: ["-Wl,-Bsymbolic"],
109 },
Dan Willemsen21986fb2016-07-14 15:23:56 -0700110 },
111
112 local_include_dirs: ["src/crypto"],
Pete Bentleye6a478a2019-08-19 22:20:24 +0100113}
114
115cc_object {
116 name: "bcm_object",
117 device_supported: true,
118 recovery_available: true,
119 native_bridge_supported: true,
120 defaults: [
121 "libcrypto_bcm_sources",
122 "libcrypto_defaults",
123 "boringssl_defaults",
124 "boringssl_flags",
125 ],
Peter Collingbourne22f5f872019-09-27 15:32:38 -0700126 sanitize: {
127 address: false,
Tobias Thierer6204b542019-10-18 21:55:05 +0100128 hwaddress: false,
Mitch Phillipsf5a60782019-12-10 08:47:30 -0800129 fuzzer: false,
Peter Collingbourne22f5f872019-09-27 15:32:38 -0700130 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100131 target: {
Martin Stjernholmba9db872020-07-16 03:52:16 +0100132 linux_bionic: {
Martin Stjernholmd6888902020-04-08 01:02:41 +0100133 header_libs: ["libc_headers"], // TODO(b/153662223): Clean this up.
134 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100135 android: {
Martin Stjernholmd6888902020-04-08 01:02:41 +0100136 header_libs: ["libc_headers"], // TODO(b/153662223): Clean this up.
Pete Bentleye6a478a2019-08-19 22:20:24 +0100137 cflags: [
138 "-DBORINGSSL_FIPS",
139 "-fPIC",
Pete Bentley1d07cf82019-10-18 12:49:31 +0100140 // -fno[data|text]-sections required to ensure a
141 // single text and data section for FIPS integrity check
142 "-fno-data-sections",
143 "-fno-function-sections",
Pete Bentleye6a478a2019-08-19 22:20:24 +0100144 ],
145 linker_script: "src/crypto/fipsmodule/fips_shared.lds",
146 },
Peter Collingbourne0560ada2019-11-22 13:50:29 -0800147 // Temporary hack to let BoringSSL build with a new compiler.
148 // This doesn't enable HWASAN unconditionally, it just causes
149 // BoringSSL's asm code to unconditionally use a HWASAN-compatible
150 // global variable reference so that the non-HWASANified (because of
151 // sanitize: { hwaddress: false } above) code in the BCM can
152 // successfully link against the HWASANified code in the rest of
153 // BoringSSL in HWASAN builds.
154 android_arm64: {
155 asflags: [
156 "-fsanitize=hwaddress",
157 ],
158 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100159 },
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900160 apex_available: [
161 "//apex_available:platform",
162 "com.android.adbd",
Martin Stjernholm98b03622020-10-12 15:10:40 +0100163 "com.android.art",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900164 "com.android.art.debug",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900165 "com.android.art.testing",
166 "com.android.bluetooth.updatable",
Alan Stokes53cbde72021-07-06 17:46:00 +0100167 "com.android.compos",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900168 "com.android.conscrypt",
169 "com.android.media",
170 "com.android.resolv",
Jiyong Park16f7c572021-01-05 14:41:56 +0900171 "com.android.virt",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900172 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900173 min_sdk_version: "29",
Pete Bentleye6a478a2019-08-19 22:20:24 +0100174}
175
176bootstrap_go_package {
177 name: "bssl_ar",
178 pkgPath: "boringssl.googlesource.com/boringssl/util/ar",
179 srcs: [
180 "src/util/ar/ar.go",
181 ],
182 testSrcs: [
183 "src/util/ar/ar_test.go",
184 ],
185}
186
187bootstrap_go_package {
188 name: "bssl_fipscommon",
189 pkgPath: "boringssl.googlesource.com/boringssl/util/fipstools/fipscommon",
190 srcs: [
191 "src/util/fipstools/fipscommon/const.go",
192 ],
193}
194
195blueprint_go_binary {
196 name: "bssl_inject_hash",
197 srcs: [
198 "src/util/fipstools/inject_hash/inject_hash.go",
199 ],
200 deps: [
201 "bssl_ar",
202 "bssl_fipscommon",
203 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700204}
205
206// Target and host library
207cc_library {
208 name: "libcrypto",
Paul Duffincb6fdd22019-06-04 13:24:44 +0100209 visibility: ["//visibility:public"],
Vijay Venkatraman3caad952017-05-16 12:00:57 -0700210 vendor_available: true,
Justin Yun56083292020-11-11 15:43:11 +0900211 product_available: true,
dimitry09dd3be2019-05-09 16:42:01 +0200212 native_bridge_supported: true,
Justin Yun47949c52017-07-24 15:19:43 +0900213 vndk: {
214 enabled: true,
215 },
Jooyung Hanb6b07c32019-01-18 15:31:20 +0900216 double_loadable: true,
Jiyong Parkc3463952018-04-27 21:44:32 +0900217 recovery_available: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100218 defaults: [
219 "libcrypto_sources",
220 "libcrypto_defaults",
221 "boringssl_defaults",
222 "boringssl_flags",
223 ],
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700224 unique_host_soname: true,
Pete Bentleye6a478a2019-08-19 22:20:24 +0100225 srcs: [
226 ":bcm_object",
227 ],
228 target: {
229 android: {
230 cflags: [
231 "-DBORINGSSL_FIPS",
232 ],
Pete Bentleye0c3f632020-05-06 19:52:29 +0100233 sanitize: {
234 // Disable address sanitizing otherwise libcrypto will not report
235 // itself as being in FIPS mode, which causes boringssl_self_test
236 // to fail.
237 address: false,
238 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100239 inject_bssl_hash: true,
Colin Cross4b979db2019-09-18 11:20:16 -0700240 static: {
241 // Disable the static version of libcrypto, as it causes
242 // problems for FIPS certification. Use libcrypto_static for
243 // modules that need static libcrypto but do not need FIPS self
244 // testing, or use dynamic libcrypto.
245 enabled: false,
246 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100247 },
248 },
Joshua Duong26b57e22020-02-10 16:04:44 -0800249 apex_available: [
250 "//apex_available:platform",
251 "com.android.adbd",
Martin Stjernholm98b03622020-10-12 15:10:40 +0100252 "com.android.art",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900253 "com.android.art.debug",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900254 "com.android.art.testing",
255 "com.android.bluetooth.updatable",
Alan Stokes53cbde72021-07-06 17:46:00 +0100256 "com.android.compos",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900257 "com.android.conscrypt",
258 "com.android.media",
259 "com.android.resolv",
Jiyong Park16f7c572021-01-05 14:41:56 +0900260 "com.android.virt",
Joshua Duong26b57e22020-02-10 16:04:44 -0800261 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900262 min_sdk_version: "29",
Dan Willemsen21986fb2016-07-14 15:23:56 -0700263}
264
265// Static library
Colin Cross4b979db2019-09-18 11:20:16 -0700266// This version of libcrypto will not have FIPS self tests enabled, so its
267// usage is protected through visibility to ensure it doesn't end up used
268// somewhere that needs the FIPS version.
Dan Willemsen21986fb2016-07-14 15:23:56 -0700269cc_library_static {
270 name: "libcrypto_static",
Colin Cross4b979db2019-09-18 11:20:16 -0700271 visibility: [
Paul Duffinebdc4062020-01-22 14:29:01 +0000272 "//art/build/sdk",
Colin Cross4b979db2019-09-18 11:20:16 -0700273 "//bootable/recovery/updater",
274 "//external/conscrypt",
275 "//external/python/cpython2",
Luke Huangf695bbb2021-04-23 15:38:04 +0800276 "//external/rust/crates/quiche",
Elliott Hughes77319d02020-05-14 15:51:34 -0700277 // Strictly, only the *static* toybox for legacy devices should have
278 // access to libcrypto_static, but we can't express that.
279 "//external/toybox",
Colin Cross4b979db2019-09-18 11:20:16 -0700280 "//hardware/interfaces/confirmationui/1.0/vts/functional",
281 "//hardware/interfaces/drm/1.0/vts/functional",
282 "//hardware/interfaces/drm/1.2/vts/functional",
Robert Shih6526b5c2020-01-21 11:03:32 -0800283 "//hardware/interfaces/drm/1.3/vts/functional",
Colin Cross4b979db2019-09-18 11:20:16 -0700284 "//hardware/interfaces/keymaster/3.0/vts/functional",
285 "//hardware/interfaces/keymaster/4.0/vts/functional",
Shawn Willden1ff77d02020-01-16 23:52:56 -0700286 "//hardware/interfaces/keymaster/4.1/vts/functional",
Josh Gaoe49f0ff2021-04-14 15:41:00 -0700287 "//packages/modules/adb",
Luke Huang16a30fc2019-11-22 11:44:50 +0800288 "//packages/modules/DnsResolver/tests:__subpackages__",
Baligh Uddinf58f8702020-11-24 05:58:10 +0000289 "//packages/modules/NeuralNetworks:__subpackages__",
Colin Cross4b979db2019-09-18 11:20:16 -0700290 "//system/core/init",
291 "//system/core/fs_mgr/liblp",
292 "//system/core/fs_mgr/liblp/vts_core",
293 "//system/core/fs_mgr/libsnapshot",
294 "//system/libvintf/test",
295 "//system/security/keystore/tests",
296 "//test/vts-testcase/security/avb",
297 ],
Przemyslaw Szczepaniakdab438a2020-02-05 17:33:41 +0000298 apex_available: [
299 "//apex_available:platform",
300 "com.android.neuralnetworks",
Przemyslaw Szczepaniakdab438a2020-02-05 17:33:41 +0000301 ],
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100302 defaults: [
Pete Bentley47637342019-08-19 12:22:49 +0100303 "libcrypto_bcm_sources",
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100304 "libcrypto_sources",
305 "libcrypto_defaults",
306 "boringssl_defaults",
307 "boringssl_flags",
308 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700309}
310
Dan Willemsen21986fb2016-07-14 15:23:56 -0700311//// libssl
312
313// Target static library
Dan Willemsen21986fb2016-07-14 15:23:56 -0700314
315// Static and Shared library
316cc_library {
317 name: "libssl",
Paul Duffincb6fdd22019-06-04 13:24:44 +0100318 visibility: ["//visibility:public"],
Dan Willemsenea55e182018-10-23 13:41:19 -0700319 recovery_available: true,
Justin Yun47949c52017-07-24 15:19:43 +0900320 vendor_available: true,
Justin Yun56083292020-11-11 15:43:11 +0900321 product_available: true,
dimitry09dd3be2019-05-09 16:42:01 +0200322 native_bridge_supported: true,
Justin Yun47949c52017-07-24 15:19:43 +0900323 vndk: {
324 enabled: true,
325 },
Dan Willemsen21986fb2016-07-14 15:23:56 -0700326 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100327 defaults: [
328 "libssl_sources",
329 "boringssl_defaults",
330 "boringssl_flags",
331 ],
Joshua Duong81ce7a52019-10-31 12:44:47 -0700332 target: {
333 windows: {
334 enabled: true,
335 },
336 },
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700337 unique_host_soname: true,
Dan Willemsen21986fb2016-07-14 15:23:56 -0700338
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700339 shared_libs: ["libcrypto"],
Joshua Duong26b57e22020-02-10 16:04:44 -0800340
341 apex_available: [
342 "//apex_available:platform",
343 "com.android.adbd",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900344 "com.android.conscrypt",
345 "com.android.resolv",
Joshua Duong26b57e22020-02-10 16:04:44 -0800346 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900347 min_sdk_version: "29",
Dan Willemsen21986fb2016-07-14 15:23:56 -0700348}
349
Dan Willemsen21986fb2016-07-14 15:23:56 -0700350// Tool
351cc_binary {
352 name: "bssl",
353 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100354 defaults: [
355 "bssl_sources",
356 "boringssl_flags",
357 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700358
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700359 shared_libs: [
360 "libcrypto",
361 "libssl",
362 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700363 target: {
Dan Willemsen21986fb2016-07-14 15:23:56 -0700364 darwin: {
365 enabled: false,
366 },
Pete Bentleyd7165532020-05-14 12:01:03 +0100367 android: {
368 compile_multilib: "both",
369 },
370 },
371 multilib: {
372 lib32: {
373 suffix: "32",
374 },
Dan Willemsen21986fb2016-07-14 15:23:56 -0700375 },
376}
Dan Willemsen2458a412016-07-15 09:28:31 -0700377
Pete Bentley390f5872020-12-10 11:19:10 +0000378// Used for CAVP testing for FIPS certification.
379// Not installed on devices by default.
Adam Langley7c167932018-02-02 14:44:53 -0800380cc_binary {
381 name: "cavp",
382 host_supported: true,
383 srcs: [
Pete Bentley0c61efe2019-08-13 09:32:23 +0100384 "src/util/fipstools/cavp/cavp_aes_gcm_test.cc",
385 "src/util/fipstools/cavp/cavp_aes_test.cc",
386 "src/util/fipstools/cavp/cavp_ctr_drbg_test.cc",
387 "src/util/fipstools/cavp/cavp_ecdsa2_keypair_test.cc",
388 "src/util/fipstools/cavp/cavp_ecdsa2_pkv_test.cc",
389 "src/util/fipstools/cavp/cavp_ecdsa2_siggen_test.cc",
390 "src/util/fipstools/cavp/cavp_ecdsa2_sigver_test.cc",
391 "src/util/fipstools/cavp/cavp_hmac_test.cc",
392 "src/util/fipstools/cavp/cavp_kas_test.cc",
393 "src/util/fipstools/cavp/cavp_keywrap_test.cc",
394 "src/util/fipstools/cavp/cavp_main.cc",
395 "src/util/fipstools/cavp/cavp_rsa2_keygen_test.cc",
396 "src/util/fipstools/cavp/cavp_rsa2_siggen_test.cc",
397 "src/util/fipstools/cavp/cavp_rsa2_sigver_test.cc",
398 "src/util/fipstools/cavp/cavp_sha_monte_test.cc",
399 "src/util/fipstools/cavp/cavp_sha_test.cc",
400 "src/util/fipstools/cavp/cavp_tdes_test.cc",
401 "src/util/fipstools/cavp/cavp_test_util.cc",
402 "src/util/fipstools/cavp/cavp_tlskdf_test.cc",
Adam Langley7c167932018-02-02 14:44:53 -0800403 ],
Pete Bentleyd7165532020-05-14 12:01:03 +0100404 target: {
405 android: {
406 compile_multilib: "both",
407 },
408 },
409 multilib: {
410 lib32: {
411 suffix: "32",
412 },
413 },
Adam Langley7c167932018-02-02 14:44:53 -0800414
415 shared_libs: [
416 "libcrypto",
417 ],
418
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100419 defaults: [
420 "boringssl_test_support_sources",
421 "boringssl_flags",
422 ],
Adam Langley7c167932018-02-02 14:44:53 -0800423}
424
Pete Bentley390f5872020-12-10 11:19:10 +0000425// Used for ACVP testing for FIPS certification.
426// Not installed on devices by default.
427cc_binary {
428 name: "acvp_modulewrapper",
429 host_supported: true,
430 srcs: [
Stephen Craned4573992021-02-25 10:52:24 -0800431 "src/util/fipstools/acvp/modulewrapper/main.cc",
Pete Bentley390f5872020-12-10 11:19:10 +0000432 ],
433 target: {
434 android: {
435 compile_multilib: "both",
436 },
437 },
438 stem: "modulewrapper",
439 multilib: {
440 lib32: {
441 suffix: "32",
442 },
443 },
444
Stephen Craned4573992021-02-25 10:52:24 -0800445 static_libs: [
446 "libacvp_modulewrapper",
447 ],
448 shared_libs: [
449 "libcrypto",
450 ],
451
452 defaults: [
453 "boringssl_flags",
454 ],
455}
456
457// ACVP wrapper implementation shared between Android and Trusty
458cc_library_static {
459 name: "libacvp_modulewrapper",
460 host_supported: true,
461 vendor_available: true,
462 srcs: [
463 "src/util/fipstools/acvp/modulewrapper/modulewrapper.cc",
464 ],
465 target: {
466 android: {
467 compile_multilib: "both",
468 },
469 },
470 export_include_dirs: ["src/util/fipstools/acvp/modulewrapper/"],
Pete Bentley390f5872020-12-10 11:19:10 +0000471 shared_libs: [
472 "libcrypto",
473 ],
474
475 defaults: [
476 "boringssl_flags",
477 ],
Stephen Crane859a48d2021-03-10 18:01:35 -0800478
479 visibility: ["//system/core/trusty/utils/acvp"],
Pete Bentley390f5872020-12-10 11:19:10 +0000480}
481
Dan Willemsen2458a412016-07-15 09:28:31 -0700482// Test support library
483cc_library_static {
484 name: "boringssl_test_support",
485 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100486 defaults: [
487 "boringssl_test_support_sources",
488 "boringssl_flags",
489 ],
Dan Willemsen2458a412016-07-15 09:28:31 -0700490
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700491 shared_libs: [
492 "libcrypto",
493 "libssl",
494 ],
Dan Willemsen2458a412016-07-15 09:28:31 -0700495}
496
497// Tests
498cc_test {
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100499 name: "boringssl_crypto_test",
500 test_suites: ["device-tests"],
501 host_supported: true,
502 defaults: [
503 "boringssl_crypto_test_sources",
504 "boringssl_flags",
505 ],
506 whole_static_libs: ["boringssl_test_support"],
David Benjaminf31229b2017-01-25 14:08:15 -0500507
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100508 shared_libs: ["libcrypto"],
David Benjaminf31229b2017-01-25 14:08:15 -0500509}
510
511cc_test {
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100512 name: "boringssl_ssl_test",
513 test_suites: ["device-tests"],
514 host_supported: true,
515 defaults: [
516 "boringssl_ssl_test_sources",
517 "boringssl_flags",
518 ],
519 whole_static_libs: ["boringssl_test_support"],
David Benjaminf31229b2017-01-25 14:08:15 -0500520
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100521 shared_libs: [
522 "libcrypto",
523 "libssl",
524 ],
David Benjaminf31229b2017-01-25 14:08:15 -0500525}
Adam Langleyb6f75152019-10-18 12:20:11 -0700526
527// Utility binary for CMVP on-site testing.
528cc_binary {
Tobias Thierer6204b542019-10-18 21:55:05 +0100529 name: "test_fips",
530 host_supported: false,
531 defaults: [
532 "boringssl_flags",
533 ],
534 shared_libs: [
535 "libcrypto",
536 ],
537 srcs: [
538 "src/util/fipstools/cavp/test_fips.c",
539 ],
Adam Langleyb6f75152019-10-18 12:20:11 -0700540}