diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-07-15 09:28:31 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-07-20 15:44:25 -0700 |
commit | 2458a418d021dc5e96fec93ac807c25c4c55cee8 (patch) | |
tree | e1ea051f3230a030ce8be789a8687f555797fe29 /Android.bp | |
parent | 21986fbbffc52d777b872d0d1ceb9c654501b7d2 (diff) | |
download | boringssl-2458a418d021dc5e96fec93ac807c25c4c55cee8.tar.gz |
Build native tests
Change-Id: I95dcd3704a2d7b5eeb789d599e74a6b27b83adaf
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -194,3 +194,49 @@ cc_binary { }, }, } + +// Test support library +cc_library_static { + name: "boringssl_test_support", + host_supported: true, + defaults: ["boringssl_test_support_sources", "boringssl_flags"], + + target: { + android: { + shared_libs: [ + "libcrypto", + "libssl", + ], + }, + host: { + shared_libs: [ + "libcrypto-host", + "libssl-host", + ], + }, + }, +} + +// Tests +cc_test { + name: "boringssl_tests", + host_supported: true, + test_per_src: true, + defaults: ["boringssl_tests_sources", "boringssl_flags"], + whole_static_libs: ["boringssl_test_support"], + + target: { + android: { + shared_libs: [ + "libcrypto", + "libssl", + ], + }, + host: { + shared_libs: [ + "libcrypto-host", + "libssl-host", + ], + }, + }, +} |