-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathmeson.build
54 lines (44 loc) · 1.46 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
project('scrot', 'c',
version : '0.10.0',
license : 'MIT-feh',
default_options : ['c_std=c11', 'b_ndebug=if-release'],
meson_version : '>= 0.49.0')
add_global_arguments('-D_POSIX_C_SOURCE=200809L', language : 'c')
configure_file(output : 'config.h',
configuration : {
'PACKAGE' : '"@0@"'.format(meson.project_name()),
'VERSION' : '"@0@"'.format(meson.project_version()),
}
)
giblib_src = files(
'giblib/gib_btree.c',
'giblib/gib_hash.c',
'giblib/gib_imlib.c',
'giblib/gib_list.c',
'giblib/gib_queue.c',
'giblib/gib_stack.c',
'giblib/gib_style.c',
'giblib/gib_utils.c',
)
scrot_src = files(
'src/imlib.c',
'src/main.c',
'src/options.c',
)
imlib2_dep = dependency('imlib2')
x11_dep = dependency('x11')
xfixes_dep = dependency('xfixes')
giblib = static_library('giblib', giblib_src,
include_directories : '.',
dependencies : imlib2_dep)
giblib_dep = declare_dependency(link_with : giblib)
executable('scrot', scrot_src,
dependencies : [giblib_dep, x11_dep, xfixes_dep],
include_directories : '.',
install : true)
data_dir = get_option('datadir')
install_man('scrot.1')
install_data('COPYING', install_dir : data_dir / 'licenses' / 'scrot')
install_data('AUTHORS', install_dir : data_dir / 'doc' / 'scrot')
install_data('README.md', install_dir : data_dir / 'doc' / 'scrot')
install_data('ChangeLog', install_dir : data_dir / 'doc' / 'scrot')