blob: 2241935cf21d13234a4dcbd5fbcc3070a4c27cce (
plain)
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
|
version_h = vcs_tag(input : 'version.h.in', output : 'version.h')
vcs_tag(input : 'version.in', output : 'version')
shared_sources = [
'misc.c',
'plugin.c',
'schedules.c',
'timeutils.c',
'rc_exec.c',
'_usage.c',
version_h,
]
if os == 'linux'
shared_sources += 'wtmp.c'
endif
shared_deps = [rc, einfo]
if selinux_dep.found()
shared_sources += 'selinux.c'
shared_deps += selinux_dep
endif
shared = declare_dependency(sources: version_h, link_with: static_library('shared', shared_sources, dependencies: shared_deps))
|