-
Notifications
You must be signed in to change notification settings - Fork 14
/
meson.build
38 lines (32 loc) · 685 Bytes
/
meson.build
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
29
30
31
32
33
34
35
36
37
38
project(
'libcgif',
'c',
version : '0.5.0',
license : 'MIT',
default_options : ['c_std=c99'],
)
cgif_sources = ['src/cgif.c', 'src/cgif_raw.c']
lib = library(
'cgif',
cgif_sources,
include_directories : ['inc/'],
soversion : '0',
version : meson.project_version(),
install : true,
)
install_headers('inc/cgif.h')
import('pkgconfig').generate(
lib,
name : 'cgif',
description : 'A fast and lightweight GIF encoder',
)
libcgif_dep = declare_dependency(link_with : lib)
if get_option('tests') and not meson.is_cross_build()
subdir('tests')
if get_option('fuzzer')
subdir('fuzz')
endif
endif
if get_option('examples')
subdir('examples')
endif