summaryrefslogtreecommitdiff
path: root/src/libelogind/meson.build
blob: cc46f04d9c0cffa5dfb88c1202415316dcf009c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# SPDX-License-Identifier: LGPL-2.1+
#
# Copyright 2017 Zbigniew Jędrzejewski-Szmek
#
# elogind is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# elogind is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with elogind; If not, see <http://www.gnu.org/licenses/>.

id128_sources = files('''
        sd-id128/id128-util.c
        sd-id128/id128-util.h
        sd-id128/sd-id128.c
'''.split())

sd_daemon_c = files('sd-daemon/sd-daemon.c')
sd_event_c = files('sd-event/sd-event.c')
sd_login_c = files('sd-login/sd-login.c')

#if 0 /// elogind has a shorter list, of course...
# libsystemd_sources = files('''
#         sd-bus/bus-common-errors.c
#         sd-bus/bus-common-errors.h
#         sd-bus/bus-container.c
#         sd-bus/bus-container.h
#         sd-bus/bus-control.c
#         sd-bus/bus-control.h
#         sd-bus/bus-convenience.c
#         sd-bus/bus-creds.c
#         sd-bus/bus-creds.h
#         sd-bus/bus-dump.c
#         sd-bus/bus-dump.h
#         sd-bus/bus-error.c
#         sd-bus/bus-error.h
#         sd-bus/bus-gvariant.c
#         sd-bus/bus-gvariant.h
#         sd-bus/bus-internal.c
#         sd-bus/bus-internal.h
#         sd-bus/bus-introspect.c
#         sd-bus/bus-introspect.h
#         sd-bus/bus-kernel.c
#         sd-bus/bus-kernel.h
#         sd-bus/bus-match.c
#         sd-bus/bus-match.h
#         sd-bus/bus-message.c
#         sd-bus/bus-message.h
#         sd-bus/bus-objects.c
#         sd-bus/bus-objects.h
#         sd-bus/bus-protocol.h
#         sd-bus/bus-signature.c
#         sd-bus/bus-signature.h
#         sd-bus/bus-slot.c
#         sd-bus/bus-slot.h
#         sd-bus/bus-socket.c
#         sd-bus/bus-socket.h
#         sd-bus/bus-track.c
#         sd-bus/bus-track.h
#         sd-bus/bus-type.c
#         sd-bus/bus-type.h
#         sd-bus/sd-bus.c
#         sd-device/device-enumerator-private.h
#         sd-device/device-enumerator.c
#         sd-device/device-internal.h
#         sd-device/device-private.c
#         sd-device/device-private.h
#         sd-device/device-util.h
#         sd-device/sd-device.c
#         sd-hwdb/hwdb-internal.h
#         sd-hwdb/hwdb-util.h
#         sd-hwdb/sd-hwdb.c
#         sd-netlink/generic-netlink.c
#         sd-netlink/local-addresses.c
#         sd-netlink/local-addresses.h
#         sd-netlink/netlink-internal.h
#         sd-netlink/netlink-message.c
#         sd-netlink/netlink-socket.c
#         sd-netlink/netlink-types.c
#         sd-netlink/netlink-types.h
#         sd-netlink/netlink-util.c
#         sd-netlink/netlink-util.h
#         sd-netlink/rtnl-message.c
#         sd-netlink/sd-netlink.c
#         sd-network/network-util.c
#         sd-network/network-util.h
#         sd-network/sd-network.c
#         sd-path/sd-path.c
#         sd-resolve/sd-resolve.c
#         sd-utf8/sd-utf8.c
# '''.split()) + id128_sources + sd_daemon_c + sd_event_c + sd_login_c
#else
libelogind_internal_sources = files('''
        sd-bus/bus-bloom.c
        sd-bus/bus-bloom.h
        sd-bus/bus-common-errors.c
        sd-bus/bus-common-errors.h
        sd-bus/bus-container.c
        sd-bus/bus-container.h
        sd-bus/bus-control.c
        sd-bus/bus-control.h
        sd-bus/bus-convenience.c
        sd-bus/bus-creds.c
        sd-bus/bus-creds.h
        sd-bus/bus-error.c
        sd-bus/bus-error.h
        sd-bus/bus-gvariant.c
        sd-bus/bus-gvariant.h
        sd-bus/bus-internal.c
        sd-bus/bus-internal.h
        sd-bus/bus-introspect.c
        sd-bus/bus-introspect.h
        sd-bus/bus-kernel.c
        sd-bus/bus-kernel.h
        sd-bus/bus-match.c
        sd-bus/bus-match.h
        sd-bus/bus-message.c
        sd-bus/bus-message.h
        sd-bus/bus-objects.c
        sd-bus/bus-objects.h
        sd-bus/bus-protocol.h
        sd-bus/bus-signature.c
        sd-bus/bus-signature.h
        sd-bus/bus-slot.c
        sd-bus/bus-slot.h
        sd-bus/bus-socket.c
        sd-bus/bus-socket.h
        sd-bus/bus-track.c
        sd-bus/bus-track.h
        sd-bus/bus-type.c
        sd-bus/bus-type.h
        sd-bus/sd-bus.c
        sd-daemon/sd-daemon.c
        sd-event/sd-event.c
        sd-id128/id128-util.c
        sd-id128/id128-util.h
        sd-id128/sd-id128.c
'''.split()) + sd_login_c
#endif // 0

libelogind_static = static_library(
        'elogind',
        libelogind_sources,
        install : false,
        include_directories : includes,
        link_with : libbasic,
#if 0 /// elogind does not need librt
#         dependencies : [threads,
#                         librt],
#         c_args : ['-fvisibility=default'])
# 
# libsystemd_sym = 'src/libsystemd/libsystemd.sym'
# 
# libsystemd_pc = configure_file(
#         input : 'libsystemd.pc.in',
#         output : 'libsystemd.pc',
# install_data(libsystemd_pc,
#else
        dependencies : [threads])
#endif // 0
        configuration : substs)
             install_dir : pkgconfiglibdir)