-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathmeson.build
More file actions
43 lines (36 loc) · 831 Bytes
/
Copy pathmeson.build
File metadata and controls
43 lines (36 loc) · 831 Bytes
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
39
40
41
42
43
project(
'libcgif',
'c',
version : '0.6.0',
meson_version: '>=0.56',
license : 'MIT',
default_options : ['c_std=c99'],
)
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
cgif_sources = ['src/cgif.c', 'src/cgif_raw.c', 'src/cgif_rgb.c']
lib = library(
'cgif',
cgif_sources,
dependencies : m_dep,
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