From d63af637c42833b0f255a2e60bc609fd72d53f11 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 11 Feb 2023 21:26:49 +0100 Subject: Replace Makefile by meson.build file Signed-off-by: Olivier Gayot --- meson.build | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..bc6187a --- /dev/null +++ b/meson.build @@ -0,0 +1,28 @@ +project('libsdl-digit', 'c') + +src_libsdl_digit = [ + 'src/bar.c', + 'src/digit.c', + 'src/line.c', + 'src/pixel.c', + 'src/rect.c', + 'src/string.c', +] + +pkgconfig = import('pkgconfig') +dep_libsdl_digit = dependency('sdl') + +lib_libsdl_digit = library('sdl-digit', src_libsdl_digit, + include_directories: ['include'], + dependencies: dep_libsdl_digit, + version: '0.1', + install: true) + +install_headers('include/sdl_digit.h') + +pkgconfig.generate( + filebase: 'libsdl-digit', + name: 'LibSDL-digit', + description: 'SDL digits library', + version: meson.project_version(), + libraries: lib_libsdl_digit) -- cgit v1.2.3