1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
|