-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
55 lines (48 loc) · 1.08 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
project(
'deckhandler',
'c',
version: '0.1.0999',
default_options: [
'warning_level=3',
'b_sanitize=address,undefined',
'b_lundef=false']
)
add_global_arguments = [
'-fno-common',
'-fanalyzer'
]
buildtarget = library(
meson.project_name(),
'deckhandler.c',
version : meson.project_version(),
install: not meson.is_subproject()
)
# How to use in a superproject and other info
# https://mesonbuild.com/Subprojects.html
deckhandler_dep = declare_dependency(
link_with : buildtarget,
include_directories: '.'
)
if not meson.is_subproject()
pkg = import('pkgconfig')
pkg.generate(
buildtarget,
description : 'Library to handle a deck of cards')
install_headers('deckhandler.h')
subdir('test')
# install_subdir(
# join_paths('docs'),
# install_dir : join_paths(get_option('docdir'), 'html'),
# strip_directory : true
# )
# install_data(files(
# 'LICENSE',
# 'README.md',
# 'SWIG_INTERFACE.md'
# ),
# install_dir : get_option('docdir'))
endif
swig_lang = get_option('swig_lang')
if swig_lang != ''
subdir('swig')
endif