summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subprojects/packagefiles/vndk/meson.build26
-rw-r--r--subprojects/vndk.wrap2
2 files changed, 27 insertions, 1 deletions
diff --git a/subprojects/packagefiles/vndk/meson.build b/subprojects/packagefiles/vndk/meson.build
index 9814b27b..1d784731 100644
--- a/subprojects/packagefiles/vndk/meson.build
+++ b/subprojects/packagefiles/vndk/meson.build
@@ -52,3 +52,29 @@ vndk_libcpp_dep = declare_dependency(
dependencies : deps_cpp,
include_directories : include_directories(include_base / 'external/libcxx/include'))
meson.override_dependency('cpp_stdlib', vndk_libcpp_dep)
+
+# TODO: add libexif, libjpeg and libyuv
+
+libexif_dep = declare_dependency(
+ dependencies : [
+ cxx.find_library('exif', dirs : prebuild_libraries),
+ libutils_dep,
+ ],
+ include_directories : include_directories(include_base / 'external/libexif/'))
+meson.override_dependency('libexif', libexif_dep)
+
+libjpeg_dep = declare_dependency(
+ dependencies : [
+ cxx.find_library('jpeg', dirs : prebuild_libraries),
+ libutils_dep,
+ ],
+ include_directories : include_directories(include_base / 'external/libjpeg-turbo/'))
+meson.override_dependency('libjpeg', libjpeg_dep)
+
+libyuv_dep = declare_dependency(
+ dependencies : [
+ cxx.find_library('yuv', dirs : prebuild_libraries),
+ libutils_dep,
+ ],
+ include_directories : include_directories(include_base / 'external/libyuv/files/include'))
+meson.override_dependency('libyuv', libyuv_dep)
diff --git a/subprojects/vndk.wrap b/subprojects/vndk.wrap
index 0a70c1b0..3393de1d 100644
--- a/subprojects/vndk.wrap
+++ b/subprojects/vndk.wrap
@@ -9,4 +9,4 @@ depth = 1
patch_directory = vndk
[provide]
-dependency_names = libhardware, libui, vndk_libcpp
+dependency_names = libhardware, libui, vndk_libcpp, libexif, libjpeg, libyuv