From 378c18e5f024ac5a8aef4cb40d7c9aa9633d144c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:30:35 +0200 Subject: Adding upstream version 2.38.1. Signed-off-by: Daniel Baumann --- libuuid/meson.build | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 libuuid/meson.build (limited to 'libuuid/meson.build') diff --git a/libuuid/meson.build b/libuuid/meson.build new file mode 100644 index 0000000..7d43c61 --- /dev/null +++ b/libuuid/meson.build @@ -0,0 +1,47 @@ +dir_libuuid = include_directories('src') + +lib_uuid_sources = ''' + src/uuidP.h + src/clear.c + src/compare.c + src/copy.c + src/gen_uuid.c + src/isnull.c + src/pack.c + src/parse.c + src/uuidd.h + src/uuid_time.c +'''.split() + +predefined_c = files('src/predefined.c') +unpack_c = files('src/unpack.c') +unparse_c = files('src/unparse.c') + +libuuid_sym = 'src/libuuid.sym' +libuuid_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libuuid_sym) + +lib_uuid = both_libraries( + 'uuid', + list_h, + lib_uuid_sources, + predefined_c, + unpack_c, + unparse_c, + randutils_c, + md5_c, + sha1_c, + include_directories : [dir_include, dir_libuuid], + link_depends : libuuid_sym, + version : libuuid_version, + link_args : ['-Wl,--version-script=@0@'.format(libuuid_sym_path)], + dependencies : [socket_libs, + build_libuuid ? [] : disabler()], + install : build_libuuid) + +if build_libuuid + pkgconfig.generate(lib_uuid, + description : 'Universally unique id library', + subdirs : 'uuid', + version : pc_version) + install_headers('src/uuid.h', subdir : 'uuid') +endif -- cgit v1.2.3