]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd/meson.build
meson: rename libsystemd_internal to libsystem_static
[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 sd_login_c = files('sd-login/sd-login.c')
19
20 libsystemd_sources = files('''
21 sd-bus/bus-bloom.c
22 sd-bus/bus-bloom.h
23 sd-bus/bus-common-errors.c
24 sd-bus/bus-common-errors.h
25 sd-bus/bus-container.c
26 sd-bus/bus-container.h
27 sd-bus/bus-control.c
28 sd-bus/bus-control.h
29 sd-bus/bus-convenience.c
30 sd-bus/bus-creds.c
31 sd-bus/bus-creds.h
32 sd-bus/bus-dump.c
33 sd-bus/bus-dump.h
34 sd-bus/bus-error.c
35 sd-bus/bus-error.h
36 sd-bus/bus-gvariant.c
37 sd-bus/bus-gvariant.h
38 sd-bus/bus-internal.c
39 sd-bus/bus-internal.h
40 sd-bus/bus-introspect.c
41 sd-bus/bus-introspect.h
42 sd-bus/bus-kernel.c
43 sd-bus/bus-kernel.h
44 sd-bus/bus-match.c
45 sd-bus/bus-match.h
46 sd-bus/bus-message.c
47 sd-bus/bus-message.h
48 sd-bus/bus-objects.c
49 sd-bus/bus-objects.h
50 sd-bus/bus-protocol.h
51 sd-bus/bus-signature.c
52 sd-bus/bus-signature.h
53 sd-bus/bus-slot.c
54 sd-bus/bus-slot.h
55 sd-bus/bus-socket.c
56 sd-bus/bus-socket.h
57 sd-bus/bus-track.c
58 sd-bus/bus-track.h
59 sd-bus/bus-type.c
60 sd-bus/bus-type.h
61 sd-bus/sd-bus.c
62 sd-daemon/sd-daemon.c
63 sd-device/device-enumerator-private.h
64 sd-device/device-enumerator.c
65 sd-device/device-internal.h
66 sd-device/device-private.c
67 sd-device/device-private.h
68 sd-device/device-util.h
69 sd-device/sd-device.c
70 sd-event/sd-event.c
71 sd-hwdb/hwdb-internal.h
72 sd-hwdb/hwdb-util.h
73 sd-hwdb/sd-hwdb.c
74 sd-id128/id128-util.c
75 sd-id128/id128-util.h
76 sd-id128/sd-id128.c
77 sd-netlink/local-addresses.c
78 sd-netlink/local-addresses.h
79 sd-netlink/netlink-internal.h
80 sd-netlink/netlink-message.c
81 sd-netlink/netlink-socket.c
82 sd-netlink/netlink-types.c
83 sd-netlink/netlink-types.h
84 sd-netlink/netlink-util.c
85 sd-netlink/netlink-util.h
86 sd-netlink/rtnl-message.c
87 sd-netlink/sd-netlink.c
88 sd-network/network-util.c
89 sd-network/network-util.h
90 sd-network/sd-network.c
91 sd-path/sd-path.c
92 sd-resolve/sd-resolve.c
93 sd-utf8/sd-utf8.c
94 '''.split()) + sd_login_c
95
96 libsystemd_static = static_library(
97 'systemd',
98 libsystemd_sources,
99 install : false,
100 include_directories : includes,
101 link_with : libbasic,
102 dependencies : [threads,
103 librt])
104
105 libsystemd_sym = 'src/libsystemd/libsystemd.sym'
106
107 libsystemd_pc = configure_file(
108 input : 'libsystemd.pc.in',
109 output : 'libsystemd.pc',
110 configuration : substs)
111 install_data(libsystemd_pc,
112 install_dir : pkgconfiglibdir)