meson: only install pkgconfig if library is built

pull/1549/head
Thomas Weißschuh 11 months ago
parent 38bb89ee84
commit 3f7734ae6a
  1. 10
      libblkid/meson.build
  2. 10
      libfdisk/meson.build
  3. 10
      libmount/meson.build
  4. 10
      libsmartcols/meson.build
  5. 12
      libuuid/meson.build

@ -144,7 +144,9 @@ lib_blkid = both_libraries(
lib_blkid_static = lib_blkid.get_static_lib()
pkgconfig.generate(lib_blkid,
description : 'Block device id library',
subdirs : 'blkid',
version : pc_version)
if build_libblkid
pkgconfig.generate(lib_blkid,
description : 'Block device id library',
subdirs : 'blkid',
version : pc_version)
endif

@ -75,7 +75,9 @@ lib_fdisk = library(
lib_uuid],
install : build_libfdisk)
pkgconfig.generate(lib_fdisk,
description : 'fdisk library',
subdirs : 'libfdisk',
version : pc_version)
if build_libfdisk
pkgconfig.generate(lib_fdisk,
description : 'fdisk library',
subdirs : 'libfdisk',
version : pc_version)
endif

@ -88,9 +88,11 @@ lib_mount = library(
realtime_libs],
install : build_libmount)
pkgconfig.generate(lib_mount,
description : 'mount library',
subdirs : 'libmount',
version : pc_version)
if build_libmount
pkgconfig.generate(lib_mount,
description : 'mount library',
subdirs : 'libmount',
version : pc_version)
endif
subdir('python')

@ -45,7 +45,9 @@ lib_smartcols = both_libraries(
lib_smartcols_static = lib_smartcols.get_static_lib()
pkgconfig.generate(lib_smartcols,
description : 'table or tree library',
subdirs : 'libsmartcols',
version : pc_version)
if build_libsmartcols
pkgconfig.generate(lib_smartcols,
description : 'table or tree library',
subdirs : 'libsmartcols',
version : pc_version)
endif

@ -38,8 +38,10 @@ lib_uuid = both_libraries(
build_libuuid ? [] : disabler()],
install : build_libuuid)
pkgconfig.generate(lib_uuid,
description : 'Universally unique id library',
subdirs : 'uuid',
version : pc_version)
install_headers('src/uuid.h', subdir : 'uuid')
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

Loading…
Cancel
Save