-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
52 lines (44 loc) · 1.09 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
project(
'uprovision',
'c',
version: '0.0.1',
license: 'MIT',
meson_version: '>=1.3.1',
default_options: [
'warning_level=2',
'werror=true',
'prefix=/usr/'
],
)
pargs = []
pname = meson.project_name()
so_version = '.'.join(meson.project_version())
cc = meson.get_compiler('c')
inc = include_directories('include')
subdir('include')
subdir('src')
libuprovision = library(
pname,
version: so_version,
link_whole: libuprovision_static,
include_directories: inc,
c_args: pargs,
install: true
)
executable(pname, 'src/executables/uprovision.c',
link_with: libuprovision,
include_directories: [inc],
c_args: pargs,
install: true)
if get_option('tests')
subdir('tests')
endif
pkg = import('pkgconfig')
pkglibs = [libuprovision, libuprovision_deps]
pkgsubdirs = []
pkg.generate(libraries: pkglibs,
subdirs : pkgsubdirs,
version : so_version,
name : pname,
filebase : 'uprovision',
description : 'Yet another disk manipulation libfdisk wrapper library & application')