From 2619164b6998b2143e776a1c2f10140af9fe878b Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 1 Nov 2022 21:19:20 +0000 Subject: meson: Convert CMake to Meson build infrastructure Provide infrastructure to be able to build the uvc-gadget library as a shared object and an executable which links against this as a dependency to implment the reference 'uvc-gadget' application. All existing cmake infrastructure is removed. This removes custom glob support that was previously used by an early development for Android, which is expected to be re-added later when required. Reviewed-by: Daniel Scally Signed-off-by: Kieran Bingham --- src/CMakeLists.txt | 3 --- src/meson.build | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 src/CMakeLists.txt create mode 100644 src/meson.build (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index 9f94788..0000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -add_executable(uvc-gadget main.c) -target_link_libraries(uvc-gadget uvcgadget) -install(TARGETS uvc-gadget DESTINATION bin) diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..a457c28 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: CC0-1.0 + +libuvcgadget = dependency('uvcgadget') + +gadget = executable('uvc-gadget', 'main.c', + dependencies : [ + libuvcgadget, + ], + include_directories : includes, + install : true) -- cgit v1.2.3