summaryrefslogtreecommitdiff
path: root/subprojects/vndk.wrap
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-12 10:59:22 +0200
committerMattijs Korpershoek <mkorpershoek@baylibre.com>2023-10-13 16:31:13 +0200
commit949336ae4c6a49bcbe20810bd000828c5e1be670 (patch)
treee65787641feca8ee07797960ba4d402680c17334 /subprojects/vndk.wrap
parentf6b0e5b1de401e9dc9a5f622903c160f66c9719e (diff)
subprojects: Add Android VNDK to compile test the HAL
The Android HAL has quite some Android-specific dependencies (such as libhardware) which are not part of regular linux distributions. To compile-test the HAL on a Linux x86 system, we have added some stubs. This means that each time we add a new Android specific dependency, we need to write an associated stub for it, which can get tricky, especially for complex C++ classes such as GraphicBufferAllocator. It would be easier if we could import the includes and the required libraries we need from Android so that we can build-test the HAL. The Vendor Native Development Kit (VNDK) provides all the libraries that a vendor service (such as the libcamera HAL) can link against. Add the VNDK as a subproject of libcamera and add the necessary meson bits so that we can compile test the Android HAL on linux without having to stub anything. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'subprojects/vndk.wrap')
-rw-r--r--subprojects/vndk.wrap12
1 files changed, 12 insertions, 0 deletions
diff --git a/subprojects/vndk.wrap b/subprojects/vndk.wrap
new file mode 100644
index 00000000..70002ddc
--- /dev/null
+++ b/subprojects/vndk.wrap
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: CC0-1.0
+
+[wrap-git]
+directory = vndk
+url = https://android.googlesource.com/platform/prebuilts/vndk/v34
+# main
+revision = 930e27bad98e1b51602db2ad98984bf2426b4f21
+depth = 1
+patch_directory = vndk
+
+[provide]
+dependency_names = libhardware