blob: 69165fcab84932d1b2bbab825ac4e43a2655be6c [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: {
132 android: {
133 cflags: [
134 "-DBORINGSSL_FIPS",
135 "-fPIC",
Pete Bentley1d07cf82019-10-18 12:49:31 +0100136 // -fno[data|text]-sections required to ensure a
137 // single text and data section for FIPS integrity check
138 "-fno-data-sections",
139 "-fno-function-sections",
Pete Bentleye6a478a2019-08-19 22:20:24 +0100140 ],
141 linker_script: "src/crypto/fipsmodule/fips_shared.lds",
142 },
Peter Collingbourne0560ada2019-11-22 13:50:29 -0800143 // Temporary hack to let BoringSSL build with a new compiler.
144 // This doesn't enable HWASAN unconditionally, it just causes
145 // BoringSSL's asm code to unconditionally use a HWASAN-compatible
146 // global variable reference so that the non-HWASANified (because of
147 // sanitize: { hwaddress: false } above) code in the BCM can
148 // successfully link against the HWASANified code in the rest of
149 // BoringSSL in HWASAN builds.
150 android_arm64: {
151 asflags: [
152 "-fsanitize=hwaddress",
153 ],
154 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100155 },
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900156 apex_available: [
157 "//apex_available:platform",
158 "com.android.adbd",
Martin Stjernholm98b03622020-10-12 15:10:40 +0100159 "com.android.art",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900160 "com.android.art.debug",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900161 "com.android.art.testing",
162 "com.android.bluetooth.updatable",
Alan Stokes53cbde72021-07-06 17:46:00 +0100163 "com.android.compos",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900164 "com.android.conscrypt",
165 "com.android.media",
166 "com.android.resolv",
Jiyong Park16f7c572021-01-05 14:41:56 +0900167 "com.android.virt",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900168 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900169 min_sdk_version: "29",
Pete Bentleye6a478a2019-08-19 22:20:24 +0100170}
171
172bootstrap_go_package {
173 name: "bssl_ar",
174 pkgPath: "boringssl.googlesource.com/boringssl/util/ar",
175 srcs: [
176 "src/util/ar/ar.go",
177 ],
178 testSrcs: [
179 "src/util/ar/ar_test.go",
180 ],
181}
182
183bootstrap_go_package {
184 name: "bssl_fipscommon",
185 pkgPath: "boringssl.googlesource.com/boringssl/util/fipstools/fipscommon",
186 srcs: [
187 "src/util/fipstools/fipscommon/const.go",
188 ],
189}
190
191blueprint_go_binary {
192 name: "bssl_inject_hash",
193 srcs: [
194 "src/util/fipstools/inject_hash/inject_hash.go",
195 ],
196 deps: [
197 "bssl_ar",
198 "bssl_fipscommon",
199 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700200}
201
202// Target and host library
203cc_library {
204 name: "libcrypto",
Paul Duffincb6fdd22019-06-04 13:24:44 +0100205 visibility: ["//visibility:public"],
Vijay Venkatraman3caad952017-05-16 12:00:57 -0700206 vendor_available: true,
Justin Yun56083292020-11-11 15:43:11 +0900207 product_available: true,
dimitry09dd3be2019-05-09 16:42:01 +0200208 native_bridge_supported: true,
Justin Yun47949c52017-07-24 15:19:43 +0900209 vndk: {
210 enabled: true,
211 },
Jooyung Hanb6b07c32019-01-18 15:31:20 +0900212 double_loadable: true,
Jiyong Parkc3463952018-04-27 21:44:32 +0900213 recovery_available: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100214 defaults: [
215 "libcrypto_sources",
216 "libcrypto_defaults",
217 "boringssl_defaults",
218 "boringssl_flags",
219 ],
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700220 unique_host_soname: true,
Pete Bentleye6a478a2019-08-19 22:20:24 +0100221 srcs: [
222 ":bcm_object",
223 ],
224 target: {
225 android: {
226 cflags: [
227 "-DBORINGSSL_FIPS",
228 ],
Pete Bentleye0c3f632020-05-06 19:52:29 +0100229 sanitize: {
230 // Disable address sanitizing otherwise libcrypto will not report
231 // itself as being in FIPS mode, which causes boringssl_self_test
232 // to fail.
233 address: false,
234 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100235 inject_bssl_hash: true,
Colin Cross4b979db2019-09-18 11:20:16 -0700236 static: {
237 // Disable the static version of libcrypto, as it causes
238 // problems for FIPS certification. Use libcrypto_static for
239 // modules that need static libcrypto but do not need FIPS self
240 // testing, or use dynamic libcrypto.
241 enabled: false,
242 },
Pete Bentleye6a478a2019-08-19 22:20:24 +0100243 },
244 },
Joshua Duong26b57e22020-02-10 16:04:44 -0800245 apex_available: [
246 "//apex_available:platform",
247 "com.android.adbd",
Martin Stjernholm98b03622020-10-12 15:10:40 +0100248 "com.android.art",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900249 "com.android.art.debug",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900250 "com.android.art.testing",
251 "com.android.bluetooth.updatable",
Alan Stokes53cbde72021-07-06 17:46:00 +0100252 "com.android.compos",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900253 "com.android.conscrypt",
254 "com.android.media",
255 "com.android.resolv",
Jiyong Park16f7c572021-01-05 14:41:56 +0900256 "com.android.virt",
Joshua Duong26b57e22020-02-10 16:04:44 -0800257 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900258 min_sdk_version: "29",
Dan Willemsen21986fb2016-07-14 15:23:56 -0700259}
260
261// Static library
Colin Cross4b979db2019-09-18 11:20:16 -0700262// This version of libcrypto will not have FIPS self tests enabled, so its
263// usage is protected through visibility to ensure it doesn't end up used
264// somewhere that needs the FIPS version.
Dan Willemsen21986fb2016-07-14 15:23:56 -0700265cc_library_static {
266 name: "libcrypto_static",
Colin Cross4b979db2019-09-18 11:20:16 -0700267 visibility: [
Paul Duffinebdc4062020-01-22 14:29:01 +0000268 "//art/build/sdk",
Colin Cross4b979db2019-09-18 11:20:16 -0700269 "//bootable/recovery/updater",
270 "//external/conscrypt",
271 "//external/python/cpython2",
Luke Huangf695bbb2021-04-23 15:38:04 +0800272 "//external/rust/crates/quiche",
Elliott Hughes77319d02020-05-14 15:51:34 -0700273 // Strictly, only the *static* toybox for legacy devices should have
274 // access to libcrypto_static, but we can't express that.
275 "//external/toybox",
Colin Cross4b979db2019-09-18 11:20:16 -0700276 "//hardware/interfaces/confirmationui/1.0/vts/functional",
277 "//hardware/interfaces/drm/1.0/vts/functional",
278 "//hardware/interfaces/drm/1.2/vts/functional",
Robert Shih6526b5c2020-01-21 11:03:32 -0800279 "//hardware/interfaces/drm/1.3/vts/functional",
Colin Cross4b979db2019-09-18 11:20:16 -0700280 "//hardware/interfaces/keymaster/3.0/vts/functional",
281 "//hardware/interfaces/keymaster/4.0/vts/functional",
Shawn Willden1ff77d02020-01-16 23:52:56 -0700282 "//hardware/interfaces/keymaster/4.1/vts/functional",
Josh Gaoe49f0ff2021-04-14 15:41:00 -0700283 "//packages/modules/adb",
Luke Huang16a30fc2019-11-22 11:44:50 +0800284 "//packages/modules/DnsResolver/tests:__subpackages__",
Baligh Uddinf58f8702020-11-24 05:58:10 +0000285 "//packages/modules/NeuralNetworks:__subpackages__",
Colin Cross4b979db2019-09-18 11:20:16 -0700286 "//system/core/init",
287 "//system/core/fs_mgr/liblp",
288 "//system/core/fs_mgr/liblp/vts_core",
289 "//system/core/fs_mgr/libsnapshot",
290 "//system/libvintf/test",
291 "//system/security/keystore/tests",
292 "//test/vts-testcase/security/avb",
293 ],
Przemyslaw Szczepaniakdab438a2020-02-05 17:33:41 +0000294 apex_available: [
295 "//apex_available:platform",
296 "com.android.neuralnetworks",
Przemyslaw Szczepaniakdab438a2020-02-05 17:33:41 +0000297 ],
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100298 defaults: [
Pete Bentley47637342019-08-19 12:22:49 +0100299 "libcrypto_bcm_sources",
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100300 "libcrypto_sources",
301 "libcrypto_defaults",
302 "boringssl_defaults",
303 "boringssl_flags",
304 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700305}
306
Dan Willemsen21986fb2016-07-14 15:23:56 -0700307//// libssl
308
309// Target static library
Dan Willemsen21986fb2016-07-14 15:23:56 -0700310
311// Static and Shared library
312cc_library {
313 name: "libssl",
Paul Duffincb6fdd22019-06-04 13:24:44 +0100314 visibility: ["//visibility:public"],
Dan Willemsenea55e182018-10-23 13:41:19 -0700315 recovery_available: true,
Justin Yun47949c52017-07-24 15:19:43 +0900316 vendor_available: true,
Justin Yun56083292020-11-11 15:43:11 +0900317 product_available: true,
dimitry09dd3be2019-05-09 16:42:01 +0200318 native_bridge_supported: true,
Justin Yun47949c52017-07-24 15:19:43 +0900319 vndk: {
320 enabled: true,
321 },
Dan Willemsen21986fb2016-07-14 15:23:56 -0700322 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100323 defaults: [
324 "libssl_sources",
325 "boringssl_defaults",
326 "boringssl_flags",
327 ],
Joshua Duong81ce7a52019-10-31 12:44:47 -0700328 target: {
329 windows: {
330 enabled: true,
331 },
332 },
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700333 unique_host_soname: true,
Dan Willemsen21986fb2016-07-14 15:23:56 -0700334
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700335 shared_libs: ["libcrypto"],
Joshua Duong26b57e22020-02-10 16:04:44 -0800336
337 apex_available: [
338 "//apex_available:platform",
339 "com.android.adbd",
Jiyong Park0dcd4e82020-03-09 15:23:05 +0900340 "com.android.conscrypt",
341 "com.android.resolv",
Joshua Duong26b57e22020-02-10 16:04:44 -0800342 ],
Jooyung Han856ad1d2020-04-16 18:48:25 +0900343 min_sdk_version: "29",
Dan Willemsen21986fb2016-07-14 15:23:56 -0700344}
345
Dan Willemsen21986fb2016-07-14 15:23:56 -0700346// Tool
347cc_binary {
348 name: "bssl",
349 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100350 defaults: [
351 "bssl_sources",
352 "boringssl_flags",
353 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700354
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700355 shared_libs: [
356 "libcrypto",
357 "libssl",
358 ],
Dan Willemsen21986fb2016-07-14 15:23:56 -0700359 target: {
Dan Willemsen21986fb2016-07-14 15:23:56 -0700360 darwin: {
361 enabled: false,
362 },
Pete Bentleyd7165532020-05-14 12:01:03 +0100363 android: {
364 compile_multilib: "both",
365 },
366 },
367 multilib: {
368 lib32: {
369 suffix: "32",
370 },
Dan Willemsen21986fb2016-07-14 15:23:56 -0700371 },
372}
Dan Willemsen2458a412016-07-15 09:28:31 -0700373
Pete Bentley390f5872020-12-10 11:19:10 +0000374// Used for CAVP testing for FIPS certification.
375// Not installed on devices by default.
Adam Langley7c167932018-02-02 14:44:53 -0800376cc_binary {
377 name: "cavp",
378 host_supported: true,
379 srcs: [
Pete Bentley0c61efe2019-08-13 09:32:23 +0100380 "src/util/fipstools/cavp/cavp_aes_gcm_test.cc",
381 "src/util/fipstools/cavp/cavp_aes_test.cc",
382 "src/util/fipstools/cavp/cavp_ctr_drbg_test.cc",
383 "src/util/fipstools/cavp/cavp_ecdsa2_keypair_test.cc",
384 "src/util/fipstools/cavp/cavp_ecdsa2_pkv_test.cc",
385 "src/util/fipstools/cavp/cavp_ecdsa2_siggen_test.cc",
386 "src/util/fipstools/cavp/cavp_ecdsa2_sigver_test.cc",
387 "src/util/fipstools/cavp/cavp_hmac_test.cc",
388 "src/util/fipstools/cavp/cavp_kas_test.cc",
389 "src/util/fipstools/cavp/cavp_keywrap_test.cc",
390 "src/util/fipstools/cavp/cavp_main.cc",
391 "src/util/fipstools/cavp/cavp_rsa2_keygen_test.cc",
392 "src/util/fipstools/cavp/cavp_rsa2_siggen_test.cc",
393 "src/util/fipstools/cavp/cavp_rsa2_sigver_test.cc",
394 "src/util/fipstools/cavp/cavp_sha_monte_test.cc",
395 "src/util/fipstools/cavp/cavp_sha_test.cc",
396 "src/util/fipstools/cavp/cavp_tdes_test.cc",
397 "src/util/fipstools/cavp/cavp_test_util.cc",
398 "src/util/fipstools/cavp/cavp_tlskdf_test.cc",
Adam Langley7c167932018-02-02 14:44:53 -0800399 ],
Pete Bentleyd7165532020-05-14 12:01:03 +0100400 target: {
401 android: {
402 compile_multilib: "both",
403 },
404 },
405 multilib: {
406 lib32: {
407 suffix: "32",
408 },
409 },
Adam Langley7c167932018-02-02 14:44:53 -0800410
411 shared_libs: [
412 "libcrypto",
413 ],
414
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100415 defaults: [
416 "boringssl_test_support_sources",
417 "boringssl_flags",
418 ],
Adam Langley7c167932018-02-02 14:44:53 -0800419}
420
Pete Bentley390f5872020-12-10 11:19:10 +0000421// Used for ACVP testing for FIPS certification.
422// Not installed on devices by default.
423cc_binary {
424 name: "acvp_modulewrapper",
Pete Bentley390f5872020-12-10 11:19:10 +0000425 srcs: [
Stephen Craned4573992021-02-25 10:52:24 -0800426 "src/util/fipstools/acvp/modulewrapper/main.cc",
Pete Bentley390f5872020-12-10 11:19:10 +0000427 ],
428 target: {
Pete Bentley7f684a42021-07-21 13:52:17 +0100429 android_x86: {
430 enabled: false,
431 },
432 android_x86_64: {
433 enabled: false,
Pete Bentley390f5872020-12-10 11:19:10 +0000434 },
435 },
436 stem: "modulewrapper",
Pete Bentley7f684a42021-07-21 13:52:17 +0100437 compile_multilib: "both",
Pete Bentley390f5872020-12-10 11:19:10 +0000438 multilib: {
439 lib32: {
440 suffix: "32",
441 },
442 },
443
Stephen Craned4573992021-02-25 10:52:24 -0800444 static_libs: [
445 "libacvp_modulewrapper",
446 ],
447 shared_libs: [
448 "libcrypto",
449 ],
450
451 defaults: [
452 "boringssl_flags",
453 ],
454}
455
456// ACVP wrapper implementation shared between Android and Trusty
457cc_library_static {
458 name: "libacvp_modulewrapper",
459 host_supported: true,
460 vendor_available: true,
461 srcs: [
462 "src/util/fipstools/acvp/modulewrapper/modulewrapper.cc",
463 ],
464 target: {
465 android: {
466 compile_multilib: "both",
467 },
468 },
469 export_include_dirs: ["src/util/fipstools/acvp/modulewrapper/"],
Pete Bentley390f5872020-12-10 11:19:10 +0000470 shared_libs: [
471 "libcrypto",
472 ],
473
474 defaults: [
475 "boringssl_flags",
476 ],
Stephen Crane859a48d2021-03-10 18:01:35 -0800477
478 visibility: ["//system/core/trusty/utils/acvp"],
Pete Bentley390f5872020-12-10 11:19:10 +0000479}
480
Dan Willemsen2458a412016-07-15 09:28:31 -0700481// Test support library
482cc_library_static {
483 name: "boringssl_test_support",
484 host_supported: true,
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100485 defaults: [
486 "boringssl_test_support_sources",
487 "boringssl_flags",
488 ],
Dan Willemsen2458a412016-07-15 09:28:31 -0700489
Dan Willemsen2b2c24b2016-07-21 11:03:36 -0700490 shared_libs: [
491 "libcrypto",
492 "libssl",
493 ],
Dan Willemsen2458a412016-07-15 09:28:31 -0700494}
495
496// Tests
497cc_test {
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100498 name: "boringssl_crypto_test",
499 test_suites: ["device-tests"],
500 host_supported: true,
501 defaults: [
502 "boringssl_crypto_test_sources",
503 "boringssl_flags",
504 ],
505 whole_static_libs: ["boringssl_test_support"],
David Benjaminf31229b2017-01-25 14:08:15 -0500506
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100507 shared_libs: ["libcrypto"],
David Benjaminf31229b2017-01-25 14:08:15 -0500508}
509
510cc_test {
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100511 name: "boringssl_ssl_test",
512 test_suites: ["device-tests"],
513 host_supported: true,
514 defaults: [
515 "boringssl_ssl_test_sources",
516 "boringssl_flags",
517 ],
518 whole_static_libs: ["boringssl_test_support"],
David Benjaminf31229b2017-01-25 14:08:15 -0500519
Paul Duffinf6a61fd2019-06-25 12:06:25 +0100520 shared_libs: [
521 "libcrypto",
522 "libssl",
523 ],
David Benjaminf31229b2017-01-25 14:08:15 -0500524}
Adam Langleyb6f75152019-10-18 12:20:11 -0700525
526// Utility binary for CMVP on-site testing.
527cc_binary {
Tobias Thierer6204b542019-10-18 21:55:05 +0100528 name: "test_fips",
529 host_supported: false,
530 defaults: [
531 "boringssl_flags",
532 ],
533 shared_libs: [
534 "libcrypto",
535 ],
536 srcs: [
537 "src/util/fipstools/cavp/test_fips.c",
538 ],
Adam Langleyb6f75152019-10-18 12:20:11 -0700539}