diff options
Diffstat (limited to 'subprojects/packagefiles')
-rw-r--r-- | subprojects/packagefiles/vndk/meson.build | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/subprojects/packagefiles/vndk/meson.build b/subprojects/packagefiles/vndk/meson.build new file mode 100644 index 00000000..b5999f16 --- /dev/null +++ b/subprojects/packagefiles/vndk/meson.build @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: CC0-1.0 + +project('vndk', 'cpp', + version : 'vndk-v34') + +cpu_family = host_machine.cpu_family() +if cpu_family != 'x86_64' + error('vndk only supports x86_64 cpu_family') +endif + +prebuild_libraries = [ + meson.current_source_dir() / cpu_family / 'arch-x86_64/shared/llndk-stub', + meson.current_source_dir() / cpu_family / 'arch-x86_64/shared/vndk-sp', + meson.current_source_dir() / cpu_family / 'arch-x86_64/shared/vndk-core', +] + +include_base = cpu_family / 'include' + +cxx = meson.get_compiler('cpp') +libhardware_dep = declare_dependency( + dependencies : cxx.find_library('hardware', dirs : prebuild_libraries), + include_directories : include_directories(include_base / 'hardware/libhardware/')) +meson.override_dependency('libhardware', libhardware_dep) |