]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / src / shared / meson.build
CommitLineData
5c23128d 1shared_sources = '''
37efbbd8
ZJS
2 acl-util.h
3 acpi-fpdt.c
4 acpi-fpdt.h
5 apparmor-util.c
6 apparmor-util.h
7 ask-password-api.c
8 ask-password-api.h
9 base-filesystem.c
10 base-filesystem.h
11 boot-timestamps.c
12 boot-timestamps.h
13 bus-unit-util.c
14 bus-unit-util.h
15 bus-util.c
16 bus-util.h
17 cgroup-show.c
18 cgroup-show.h
19 clean-ipc.c
20 clean-ipc.h
21 condition.c
22 condition.h
23 conf-parser.c
24 conf-parser.h
25 dev-setup.c
26 dev-setup.h
27 dissect-image.c
28 dissect-image.h
29 dns-domain.c
30 dns-domain.h
31 dropin.c
32 dropin.h
33 efivars.c
34 efivars.h
35 fdset.c
36 fdset.h
c3045943 37 firewall-util.h
37efbbd8
ZJS
38 fstab-util.c
39 fstab-util.h
40 gcrypt-util.c
41 gcrypt-util.h
42 generator.c
43 generator.h
44 gpt.h
45 ima-util.c
46 ima-util.h
47 import-util.c
48 import-util.h
49 initreq.h
50 install.c
51 install.h
52 install-printf.c
53 install-printf.h
54 journal-util.c
55 journal-util.h
56 logs-show.c
57 logs-show.h
58 loop-util.c
59 loop-util.h
60 machine-image.c
61 machine-image.h
62 machine-pool.c
63 machine-pool.h
64 nsflags.c
65 nsflags.h
66 output-mode.c
67 output-mode.h
68 pager.c
69 pager.h
70 path-lookup.c
71 path-lookup.h
72 ptyfwd.c
73 ptyfwd.h
74 resolve-util.c
75 resolve-util.h
76 seccomp-util.h
77 sleep-config.c
78 sleep-config.h
79 spawn-ask-password-agent.c
80 spawn-ask-password-agent.h
81 spawn-polkit-agent.c
82 spawn-polkit-agent.h
83 specifier.c
84 specifier.h
85 switch-root.c
86 switch-root.h
87 sysctl-util.c
88 sysctl-util.h
89 tests.c
90 tests.h
91 udev-util.h
b237a168 92 udev-util.c
37efbbd8
ZJS
93 uid-range.c
94 uid-range.h
95 utmp-wtmp.h
96 vlan-util.c
97 vlan-util.h
98 volatile-util.c
99 volatile-util.h
100 watchdog.c
101 watchdog.h
5c23128d
ZJS
102'''.split()
103
69e96427
ZJS
104test_tables_h = files('test-tables.h')
105shared_sources += [test_tables_h]
106
349cc4a5 107if conf.get('HAVE_ACL') == 1
37efbbd8 108 shared_sources += ['acl-util.c']
5c23128d
ZJS
109endif
110
349cc4a5 111if conf.get('HAVE_UTMP') == 1
37efbbd8 112 shared_sources += ['utmp-wtmp.c']
5c23128d
ZJS
113endif
114
349cc4a5 115if conf.get('HAVE_SECCOMP') == 1
37efbbd8 116 shared_sources += ['seccomp-util.c']
5c23128d
ZJS
117endif
118
349cc4a5 119if conf.get('HAVE_LIBIPTC') == 1
c3045943
MB
120 shared_sources += ['firewall-util.c']
121endif
122
5c23128d
ZJS
123libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
124
4b57a272
ZJS
125libshared_deps = [threads,
126 librt,
127 libcap,
128 libacl,
129 libcryptsetup,
130 libgcrypt,
131 libiptc,
132 libseccomp,
133 libselinux,
134 libidn,
135 libxz,
136 liblz4,
137 libblkid]
138
4f5993c3
FS
139libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
140
5c23128d 141libshared = shared_library(
37efbbd8
ZJS
142 libshared_name,
143 shared_sources,
144 basic_sources,
145 journal_internal_sources,
146 libsystemd_internal_sources,
8e899a92 147 libudev_sources,
37efbbd8 148 include_directories : includes,
4f5993c3
FS
149 link_args : ['-shared',
150 '-Wl,--version-script=' + libshared_sym_path],
37efbbd8 151 c_args : ['-fvisibility=default'],
4b57a272 152 dependencies : libshared_deps,
37efbbd8
ZJS
153 install : true,
154 install_dir : rootlibexecdir)
5c23128d 155
f4ee10a2 156libshared_static = static_library(
37efbbd8
ZJS
157 libshared_name,
158 shared_sources,
159 basic_sources,
160 include_directories : includes,
4b57a272 161 dependencies : libshared_deps)