]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / src / shared / meson.build
1 shared_sources = '''
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
37 firewall-util.h
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
92 udev-util.c
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
102 '''.split()
103
104 test_tables_h = files('test-tables.h')
105 shared_sources += [test_tables_h]
106
107 if conf.get('HAVE_ACL') == 1
108 shared_sources += ['acl-util.c']
109 endif
110
111 if conf.get('HAVE_UTMP') == 1
112 shared_sources += ['utmp-wtmp.c']
113 endif
114
115 if conf.get('HAVE_SECCOMP') == 1
116 shared_sources += ['seccomp-util.c']
117 endif
118
119 if conf.get('HAVE_LIBIPTC') == 1
120 shared_sources += ['firewall-util.c']
121 endif
122
123 libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
124
125 libshared_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
139 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
140
141 libshared = shared_library(
142 libshared_name,
143 shared_sources,
144 basic_sources,
145 journal_internal_sources,
146 libsystemd_internal_sources,
147 libudev_sources,
148 include_directories : includes,
149 link_args : ['-shared',
150 '-Wl,--version-script=' + libshared_sym_path],
151 c_args : ['-fvisibility=default'],
152 dependencies : libshared_deps,
153 install : true,
154 install_dir : rootlibexecdir)
155
156 libshared_static = static_library(
157 libshared_name,
158 shared_sources,
159 basic_sources,
160 include_directories : includes,
161 dependencies : libshared_deps)