]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd/meson.build
Merge pull request #8184 from poettering/color-ask-pw
[thirdparty/systemd.git] / src / libsystemd / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9 #
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 id128_sources = files('''
19 sd-id128/id128-util.c
20 sd-id128/id128-util.h
21 sd-id128/sd-id128.c
22 '''.split())
23
24 sd_daemon_c = files('sd-daemon/sd-daemon.c')
25 sd_event_c = files('sd-event/sd-event.c')
26 sd_login_c = files('sd-login/sd-login.c')
27
28 libsystemd_sources = files('''
29 sd-bus/bus-common-errors.c
30 sd-bus/bus-common-errors.h
31 sd-bus/bus-container.c
32 sd-bus/bus-container.h
33 sd-bus/bus-control.c
34 sd-bus/bus-control.h
35 sd-bus/bus-convenience.c
36 sd-bus/bus-creds.c
37 sd-bus/bus-creds.h
38 sd-bus/bus-dump.c
39 sd-bus/bus-dump.h
40 sd-bus/bus-error.c
41 sd-bus/bus-error.h
42 sd-bus/bus-gvariant.c
43 sd-bus/bus-gvariant.h
44 sd-bus/bus-internal.c
45 sd-bus/bus-internal.h
46 sd-bus/bus-introspect.c
47 sd-bus/bus-introspect.h
48 sd-bus/bus-kernel.c
49 sd-bus/bus-kernel.h
50 sd-bus/bus-match.c
51 sd-bus/bus-match.h
52 sd-bus/bus-message.c
53 sd-bus/bus-message.h
54 sd-bus/bus-objects.c
55 sd-bus/bus-objects.h
56 sd-bus/bus-protocol.h
57 sd-bus/bus-signature.c
58 sd-bus/bus-signature.h
59 sd-bus/bus-slot.c
60 sd-bus/bus-slot.h
61 sd-bus/bus-socket.c
62 sd-bus/bus-socket.h
63 sd-bus/bus-track.c
64 sd-bus/bus-track.h
65 sd-bus/bus-type.c
66 sd-bus/bus-type.h
67 sd-bus/sd-bus.c
68 sd-device/device-enumerator-private.h
69 sd-device/device-enumerator.c
70 sd-device/device-internal.h
71 sd-device/device-private.c
72 sd-device/device-private.h
73 sd-device/device-util.h
74 sd-device/sd-device.c
75 sd-hwdb/hwdb-internal.h
76 sd-hwdb/hwdb-util.h
77 sd-hwdb/sd-hwdb.c
78 sd-netlink/generic-netlink.c
79 sd-netlink/local-addresses.c
80 sd-netlink/local-addresses.h
81 sd-netlink/netlink-internal.h
82 sd-netlink/netlink-message.c
83 sd-netlink/netlink-socket.c
84 sd-netlink/netlink-types.c
85 sd-netlink/netlink-types.h
86 sd-netlink/netlink-util.c
87 sd-netlink/netlink-util.h
88 sd-netlink/rtnl-message.c
89 sd-netlink/sd-netlink.c
90 sd-network/network-util.c
91 sd-network/network-util.h
92 sd-network/sd-network.c
93 sd-path/sd-path.c
94 sd-resolve/sd-resolve.c
95 sd-utf8/sd-utf8.c
96 '''.split()) + id128_sources + sd_daemon_c + sd_event_c + sd_login_c
97
98 libsystemd_static = static_library(
99 'systemd',
100 libsystemd_sources,
101 install : false,
102 include_directories : includes,
103 link_with : libbasic,
104 dependencies : [threads,
105 librt],
106 c_args : ['-fvisibility=default'])
107
108 libsystemd_sym = 'src/libsystemd/libsystemd.sym'
109
110 libsystemd_pc = configure_file(
111 input : 'libsystemd.pc.in',
112 output : 'libsystemd.pc',
113 configuration : substs)
114 install_data(libsystemd_pc,
115 install_dir : pkgconfiglibdir)