]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libudev/meson.build
meson: use efi-includedir to look for header
[thirdparty/systemd.git] / src / libudev / meson.build
CommitLineData
5c23128d
ZJS
1# -*- mode: meson -*-
2
aac26058 3libudev_sources = files('''
5c23128d
ZJS
4 libudev-private.h
5 libudev-device-internal.h
6 libudev.c
7 libudev-list.c
8 libudev-util.c
9 libudev-device.c
10 libudev-device-private.c
11 libudev-enumerate.c
12 libudev-monitor.c
13 libudev-queue.c
14 libudev-hwdb.c
aac26058 15'''.split())
5c23128d
ZJS
16
17############################################################
18
6b30f280 19libudev_sym = 'libudev.sym'
e0bec52f 20libudev_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libudev_sym)
5c23128d
ZJS
21libudev = shared_library(
22 'udev',
23 libudev_sources,
24 version : '1.6.6',
25 include_directories : includes,
26 link_args : ['-shared',
e0bec52f 27 '-Wl,--version-script=' + libudev_sym_path],
5c23128d 28 link_with : [libbasic,
826472ce
ZJS
29 libsystemd_internal],
30 dependencies : [threads],
6b30f280 31 link_depends : libudev_sym,
5c23128d
ZJS
32 install : true,
33 install_dir : rootlibdir)
34
5c23128d 35install_headers('libudev.h')
e0bec52f 36libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
5c23128d
ZJS
37
38libudev_pc = configure_file(
39 input : 'libudev.pc.in',
40 output : 'libudev.pc',
41 configuration : substs)
42install_data(libudev_pc,
43 install_dir : pkgconfiglibdir)