]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add systemd.pc and udev.pc to 'devel' target/tag
authorLuca Boccassi <bluca@debian.org>
Sun, 11 Jun 2023 23:41:49 +0000 (00:41 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Jun 2023 05:45:42 +0000 (14:45 +0900)
Same as the other pkg-config files, it is useful to install these in a specific
target that doesn't require compiling anything

meson.build
src/core/meson.build
src/udev/meson.build

index 5e97284786fc7b0be83e15a96f42699cf4b732b8..87af0ea15e96976ff9e35b09b17942edf058c371 100644 (file)
@@ -2214,8 +2214,6 @@ subdir('src/udev')
 subdir('src/libudev')
 subdir('src/cryptsetup/cryptsetup-tokens')
 
-alias_target('devel', libsystemd_pc, libudev_pc)
-
 libsystemd = shared_library(
         'systemd',
         version : libsystemd_version,
@@ -2410,6 +2408,8 @@ subdir('rules.d')
 subdir('test')
 subdir('src/ukify/test')  # needs to be last for test_env variable
 
+alias_target('devel', libsystemd_pc, libudev_pc, systemd_pc, udev_pc)
+
 ############################################################
 
 # only static linking apart from libdl, to make sure that the
index 152b5d4c5d227478c821291480411c4d9fb31452..91477afc9cf16b00d0e6adbd645ce6043b77b8fa 100644 (file)
@@ -144,7 +144,6 @@ systemd_sources = files(
 
 in_files = [['system.conf',                     pkgsysconfdir],
             ['user.conf',                       pkgsysconfdir],
-            ['systemd.pc',                      pkgconfigdatadir],
             ['org.freedesktop.systemd1.policy', polkitpolicydir]]
 
 foreach item : in_files
@@ -160,6 +159,15 @@ foreach item : in_files
                 install_dir : dir)
 endforeach
 
+systemd_pc = custom_target(
+        'systemd.pc',
+        input : 'systemd.pc.in',
+        output : 'systemd.pc',
+        command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
+        install : pkgconfigdatadir != 'no',
+        install_tag : 'devel',
+        install_dir : pkgconfigdatadir)
+
 install_data('org.freedesktop.systemd1.conf',
              install_dir : dbuspolicydir)
 install_data('org.freedesktop.systemd1.service',
index 081948d223f59f92148c856c66a69ea4d2831a40..369db33fe4acb8bb0d99d420a43174aceadd9d1a 100644 (file)
@@ -154,12 +154,13 @@ if install_sysconfdir_samples
                      install_dir : sysconfdir / 'udev')
 endif
 
-custom_target(
+udev_pc = custom_target(
         'udev.pc',
         input : 'udev.pc.in',
         output : 'udev.pc',
         command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
         install : pkgconfigdatadir != 'no',
+        install_tag : 'devel',
         install_dir : pkgconfigdatadir)
 
 if install_sysconfdir