summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-07-15 09:28:31 -0700
committerDan Willemsen <dwillemsen@google.com>2016-07-20 15:44:25 -0700
commit2458a418d021dc5e96fec93ac807c25c4c55cee8 (patch)
treee1ea051f3230a030ce8be789a8687f555797fe29 /Android.bp
parent21986fbbffc52d777b872d0d1ceb9c654501b7d2 (diff)
downloadboringssl-2458a418d021dc5e96fec93ac807c25c4c55cee8.tar.gz
Build native tests
Change-Id: I95dcd3704a2d7b5eeb789d599e74a6b27b83adaf
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp46
1 files changed, 46 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b6114296..dd7963fb 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
+ ],
+ },
+ },
+}