mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
[1] says: > Since 0.60.0 the name argument is optional and defaults to the basename of > the first output We specify >= 0.62 as the supported version, so drop the duplicate name in all cases where it is the same as outputs[0], i.e. almost all cases. [1] https://mesonbuild.com/Reference-manual_functions.html#custom_target
47 lines
1.3 KiB
Meson
47 lines
1.3 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
libudev_sources = files(
|
|
'libudev-device.c',
|
|
'libudev-enumerate.c',
|
|
'libudev-hwdb.c',
|
|
'libudev-list.c',
|
|
'libudev-monitor.c',
|
|
'libudev-queue.c',
|
|
'libudev-util.c',
|
|
'libudev.c',
|
|
)
|
|
|
|
sources += libudev_sources
|
|
|
|
############################################################
|
|
|
|
libudev_includes = [includes, include_directories('.')]
|
|
|
|
libudev_dir_path = meson.current_source_dir()
|
|
|
|
libudev_sym = files('libudev.sym')
|
|
libudev_sym_path = libudev_dir_path / 'libudev.sym'
|
|
|
|
install_headers('libudev.h')
|
|
libudev_h_path = libudev_dir_path / 'libudev.h'
|
|
|
|
libudev_basic = static_library(
|
|
'udev-basic',
|
|
libudev_sources,
|
|
include_directories : includes,
|
|
implicit_include_directories : false,
|
|
dependencies : userspace,
|
|
c_args : ['-fvisibility=default'],
|
|
build_by_default : false)
|
|
|
|
static_libudev = get_option('static-libudev')
|
|
static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic'
|
|
|
|
libudev_pc = custom_target(
|
|
input : 'libudev.pc.in',
|
|
output : 'libudev.pc',
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : pkgconfiglibdir != 'no',
|
|
install_tag : 'devel',
|
|
install_dir : pkgconfiglibdir)
|