]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libudev/meson.build
meson: use a convenience lib for journal user sources
[thirdparty/systemd.git] / src / libudev / meson.build
CommitLineData
3a726fcd
ZJS
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
aac26058 18libudev_sources = files('''
37efbbd8
ZJS
19 libudev-private.h
20 libudev-device-internal.h
21 libudev.c
22 libudev-list.c
23 libudev-util.c
24 libudev-device.c
25 libudev-device-private.c
26 libudev-enumerate.c
27 libudev-monitor.c
28 libudev-queue.c
29 libudev-hwdb.c
aac26058 30'''.split())
5c23128d
ZJS
31
32############################################################
33
6b30f280 34libudev_sym = 'libudev.sym'
e0bec52f 35libudev_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libudev_sym)
5c23128d 36libudev = shared_library(
37efbbd8
ZJS
37 'udev',
38 libudev_sources,
56d50ab1 39 version : libudev_version,
37efbbd8
ZJS
40 include_directories : includes,
41 link_args : ['-shared',
42 '-Wl,--version-script=' + libudev_sym_path],
43 link_with : [libbasic,
37e4d7a8 44 libsystemd_static],
37efbbd8
ZJS
45 dependencies : [threads],
46 link_depends : libudev_sym,
47 install : true,
48 install_dir : rootlibdir)
5c23128d 49
5c23128d 50install_headers('libudev.h')
e0bec52f 51libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
5c23128d
ZJS
52
53libudev_pc = configure_file(
37efbbd8
ZJS
54 input : 'libudev.pc.in',
55 output : 'libudev.pc',
56 configuration : substs)
5c23128d
ZJS
57install_data(libudev_pc,
58 install_dir : pkgconfiglibdir)