From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/hidapi/meson.build | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/hidapi/meson.build (limited to 'contrib/SDL-3.2.8/src/hidapi/meson.build') diff --git a/contrib/SDL-3.2.8/src/hidapi/meson.build b/contrib/SDL-3.2.8/src/hidapi/meson.build new file mode 100644 index 0000000..d7867cb --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/meson.build @@ -0,0 +1,22 @@ +project('hidapi', meson_version: '>=0.57.0', version: files('VERSION')) + +cmake = import('cmake') + +hidapi_build_options = cmake.subproject_options() +hidapi_build_options.set_install(true) + +hidapi_build = cmake.subproject('hidapi_build_cmake', options: hidapi_build_options) + +if (hidapi_build.target_list().contains('hidapi_winapi')) + hidapi_winapi_dep = hidapi_build.dependency('hidapi_winapi') + hidapi_dep = hidapi_winapi_dep +elif (hidapi_build.target_list().contains('hidapi_darwin')) + hidapi_darwin_dep = hidapi_build.dependency('hidapi_darwin') + hidapi_dep = hidapi_darwin_dep +elif (hidapi_build.target_list().contains('hidapi_hidraw')) + hidapi_hidraw_dep = hidapi_build.dependency('hidapi_hidraw') + hidapi_dep = hidapi_hidraw_dep +elif (hidapi_build.target_list().contains('hidapi_libusb')) + hidapi_libusb_dep = hidapi_build.dependency('hidapi_libusb') + hidapi_dep = hidapi_libusb_dep +endif -- cgit v1.2.3