]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - share/meson.build
lxc.mount.hook: Skip cpu sysfs logic if missing target
[mirror_lxcfs.git] / share / meson.build
index edeb5b91526726b09434fca23a3f71e64b715e3f..895666393c1cea69e37786ca2d03962b3195a170 100644 (file)
@@ -1,24 +1,40 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-lxcfs_conf_data = configuration_data()
-lxcfs_conf_data.set('LXCFSSHAREDIR', lxcfssharedir)
-lxcfs_conf_data = configure_file(
-                       configuration : lxcfs_conf_data,
-                        input : '00-lxcfs.conf.in',
-                        output : '00-lxcfs.conf',
-                       install: true,
-                       install_dir: lxcconfdir)
+lxcfs_conf_data = custom_target(
+    '00-lxcfs.conf',
+    input: '00-lxcfs.conf.in',
+    output: '00-lxcfs.conf',
+    command: [
+        meson_render_jinja2,
+        config_h,
+        '@INPUT@',
+        '@OUTPUT@',
+    ],
+    install: true,
+    install_dir: lxcconfdir)
 
-lxcfs_hook_mount_data = configure_file(
-                       configuration : conf,
-                        input : 'lxc.mount.hook.in',
-                        output : 'lxc.mount.hook',
-                       install: true,
-                       install_dir: lxcfssharedir)
+lxcfs_hook_mount_data = custom_target(
+    'lxc.mount.hook',
+    input: 'lxc.mount.hook.in',
+    output: 'lxc.mount.hook',
+    command: [
+        meson_render_jinja2,
+        config_h,
+        '@INPUT@',
+        '@OUTPUT@',
+    ],
+    install: true,
+    install_dir: lxcfssharedir)
 
-lxcfs_hook_reboot_data = configure_file(
-                       configuration : configuration_data(),
-                        input : 'lxc.reboot.hook.in',
-                        output : 'lxc.reboot.hook',
-                       install: true,
-                       install_dir: lxcfssharedir)
+lxcfs_hook_reboot_data = custom_target(
+    'lxc.reboot.hook',
+    input: 'lxc.reboot.hook.in',
+    output: 'lxc.reboot.hook',
+    command: [
+        meson_render_jinja2,
+        config_h,
+        '@INPUT@',
+        '@OUTPUT@',
+    ],
+    install: true,
+    install_dir: lxcfssharedir)