-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
55 lines (45 loc) · 1.07 KB
/
Copy pathmeson.build
File metadata and controls
55 lines (45 loc) · 1.07 KB
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
# SPDX-License-Identifier: ISC
project('pam_subuid', 'c',
version: '1',
license: 'LGPLv2+',
default_options : [
'c_std=gnu11',
'warning_level=3',
'buildtype=debugoptimized',
],
meson_version : '>= 0.46',
)
add_global_arguments('-fstack-protector-strong', '-Werror=format-security', '-Wno-unused-parameter', language: 'c')
prefixdir = get_option('prefix')
if not prefixdir.startswith('/')
error('Prefix is not absolute: "@0@"'.format(prefixdir))
endif
libdir = join_paths(prefixdir, get_option('libdir'))
pamlibdir = join_paths(libdir, 'security')
cc = meson.get_compiler('c')
libpam = cc.find_library('pam', required: true)
pam_subuid = shared_library('pam_subuid',
sources : [
'subxid.c',
'pam.c',
],
name_prefix : '',
c_args : [
'-fvisibility=internal',
],
dependencies : [
libpam,
],
install : true,
install_dir : pamlibdir,
)
ctest = executable('ctest',
sources : [
'ctest.c',
'subxid.c',
'test_find_free_range.c',
'test_logindef_uint.c',
'test_subxid_entry_compare.c',
],
)
test('ctest', ctest)