summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-10-17 07:51:24 +0000
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-10-18 12:24:14 +0000
commitcca55c1cf8d599fcc3097cc0b37b3da3b0bd2eca (patch)
tree66d3ffe67236d9dbc2af80ef7f52546992d7a035
parent95c4c2fd5f7f14490224ac629c3df724491ffb94 (diff)
subprojects: vndk: Add dependency override for libcrypto
VNDK provides a pre-built version of boringssl. Override the libcrypto dependency to use the pre-built version from VNDK. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r--subprojects/packagefiles/vndk/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/subprojects/packagefiles/vndk/meson.build b/subprojects/packagefiles/vndk/meson.build
index 6df26936..ca39192e 100644
--- a/subprojects/packagefiles/vndk/meson.build
+++ b/subprojects/packagefiles/vndk/meson.build
@@ -83,3 +83,11 @@ vndk_libyuv_dep = declare_dependency(
],
include_directories : include_directories(include_base / 'external/libyuv/files/include'))
meson.override_dependency('vndk_libyuv', vndk_libyuv_dep)
+
+vndk_libssl_dep = declare_dependency(
+ dependencies : [
+ cxx.find_library('crypto', dirs : prebuild_libraries),
+ libutils_dep,
+ ],
+ include_directories : include_directories(include_base / 'external/boringssl/src/include'))
+meson.override_dependency('libcrypto', vndk_libssl_dep)