1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # elogind 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.
10 # elogind 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.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
18 sd_login_c = files('sd-login/sd-login.c')
20 #if 0 /// elogind has a shorter list, of course...
21 # libsystemd_internal_sources = files('''
24 # sd-bus/bus-common-errors.c
25 # sd-bus/bus-common-errors.h
26 # sd-bus/bus-container.c
27 # sd-bus/bus-container.h
28 # sd-bus/bus-control.c
29 # sd-bus/bus-control.h
30 # sd-bus/bus-convenience.c
37 # sd-bus/bus-gvariant.c
38 # sd-bus/bus-gvariant.h
39 # sd-bus/bus-internal.c
40 # sd-bus/bus-internal.h
41 # sd-bus/bus-introspect.c
42 # sd-bus/bus-introspect.h
47 # sd-bus/bus-message.c
48 # sd-bus/bus-message.h
49 # sd-bus/bus-objects.c
50 # sd-bus/bus-objects.h
51 # sd-bus/bus-protocol.h
52 # sd-bus/bus-signature.c
53 # sd-bus/bus-signature.h
63 # sd-daemon/sd-daemon.c
64 # sd-device/device-enumerator-private.h
65 # sd-device/device-enumerator.c
66 # sd-device/device-internal.h
67 # sd-device/device-private.c
68 # sd-device/device-private.h
69 # sd-device/device-util.h
70 # sd-device/sd-device.c
72 # sd-hwdb/hwdb-internal.h
75 # sd-id128/id128-util.c
76 # sd-id128/id128-util.h
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
94 # sd-resolve/sd-resolve.c
96 # '''.split()) + sd_login_c
98 libelogind_internal_sources = files('''
101 sd-bus/bus-common-errors.c
102 sd-bus/bus-common-errors.h
103 sd-bus/bus-container.c
104 sd-bus/bus-container.h
107 sd-bus/bus-convenience.c
112 sd-bus/bus-gvariant.c
113 sd-bus/bus-gvariant.h
114 sd-bus/bus-internal.c
115 sd-bus/bus-internal.h
116 sd-bus/bus-introspect.c
117 sd-bus/bus-introspect.h
126 sd-bus/bus-protocol.h
127 sd-bus/bus-signature.c
128 sd-bus/bus-signature.h
138 sd-daemon/sd-daemon.c
140 sd-id128/id128-util.c
141 sd-id128/id128-util.h
143 '''.split()) + sd_login_c
146 libelogind_internal = static_library(
148 libelogind_internal_sources,
150 include_directories : includes,
151 link_with : libbasic,
152 #if 0 /// elogind does not need librt
153 # dependencies : [threads,
156 dependencies : [threads])
159 libelogind_sym = 'src/libelogind/libelogind.sym'
161 libelogind_pc = configure_file(
162 input : 'libelogind.pc.in',
163 output : 'libelogind.pc',
164 configuration : substs)
165 install_data(libelogind_pc,
166 install_dir : pkgconfiglibdir)