1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 libudev_sources = files(
5 'libudev-device-internal.h',
9 'libudev-list-internal.h',
17 ############################################################
19 libudev_includes = [includes, include_directories('.')]
21 libudev_sym = files('libudev.sym')
22 libudev_sym_path = join_paths(meson.current_source_dir(), 'libudev.sym')
24 install_headers('libudev.h')
25 libudev_h_path = join_paths(meson.current_source_dir(), 'libudev.h')
27 libudev_basic = static_library(
30 include_directories : includes,
31 c_args : ['-fvisibility=default'])
33 libudev_static = static_library(
35 include_directories : includes,
36 link_with : udev_link_with,
37 link_whole : libudev_basic)
39 static_libudev = get_option('static-libudev')
40 static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic'
44 input : 'libudev.pc.in',
45 output : 'libudev.pc',
46 command : [meson_render_jinja2, config_h, '@INPUT@'],
48 install : pkgconfiglibdir != 'no',
49 install_dir : pkgconfiglibdir)
51 ############################################################
54 [['src/libudev/test-libudev.c'],