summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libudev/meson.build6
-rw-r--r--src/test/meson.build7
2 files changed, 10 insertions, 3 deletions
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index e303ee8518..9fc3a3c742 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -17,15 +17,14 @@ libudev_sources = '''
############################################################
libudev_sym = 'libudev.sym'
-
-version_script_arg = '@0@/@1@'.format(meson.current_source_dir(), libudev_sym)
+libudev_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libudev_sym)
libudev = shared_library(
'udev',
libudev_sources,
version : '1.6.6',
include_directories : includes,
link_args : ['-shared',
- '-Wl,--version-script=' + version_script_arg],
+ '-Wl,--version-script=' + libudev_sym_path],
link_with : [libbasic,
libsystemd],
link_depends : libudev_sym,
@@ -40,6 +39,7 @@ libudev_internal = static_library(
libsystemd])
install_headers('libudev.h')
+libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
libudev_pc = configure_file(
input : 'libudev.pc.in',
diff --git a/src/test/meson.build b/src/test/meson.build
index 32affa83e3..568378e381 100644
--- a/src/test/meson.build
+++ b/src/test/meson.build
@@ -28,6 +28,13 @@ test_libsystemd_sym_c = custom_target(
command : [generate_sym_test_py, libsystemd_sym_path] + systemd_headers,
capture : true)
+test_libudev_sym_c = custom_target(
+ 'test-libudev-sym.c',
+ input : [libudev_sym_path, libudev_h_path],
+ output : 'test-libudev-sym.c',
+ command : [generate_sym_test_py, '@INPUT0@', '@INPUT1@'],
+ capture : true)
+
############################################################
tests += [