summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cb/elogind.cbp1
-rw-r--r--meson.build3
-rw-r--r--src/systemd/meson.build4
-rwxr-xr-xtools/meson-symlink_headers.sh9
4 files changed, 17 insertions, 0 deletions
diff --git a/cb/elogind.cbp b/cb/elogind.cbp
index 81da0c50e..fbe203353 100644
--- a/cb/elogind.cbp
+++ b/cb/elogind.cbp
@@ -582,6 +582,7 @@
</Unit>
<Unit filename="../src/sleep/sleep.h" />
<Unit filename="../src/systemd/_sd-common.h" />
+ <Unit filename="../src/systemd/meson.build" />
<Unit filename="../src/systemd/sd-bus-protocol.h" />
<Unit filename="../src/systemd/sd-bus-vtable.h" />
<Unit filename="../src/systemd/sd-bus.h" />
diff --git a/meson.build b/meson.build
index 7d7f009fc..cdbf920c7 100644
--- a/meson.build
+++ b/meson.build
@@ -524,6 +524,9 @@ stat = find_program('stat')
git = find_program('git', required : false)
meson_make_symlink = meson.source_root() + '/tools/meson-make-symlink.sh'
+#if 1 /// Needed by elogind
+meson_symlink_headers = meson.source_root() + '/tools/meson-symlink_headers.sh'
+#endif // 1
mkdir_p = 'mkdir -p $DESTDIR/@0@'
#if 0 /// unneeded by elogind
# test_efi_create_disk_sh = find_program('test/test-efi-create-disk.sh')
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index 8530f7fd2..aa43dedac 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -52,6 +52,10 @@ install_headers(
subdir : 'elogind/systemd')
#endif // 0
+meson.add_install_script(meson_symlink_headers,
+ includedir,
+ _systemd_headers)
+
############################################################
diff --git a/tools/meson-symlink_headers.sh b/tools/meson-symlink_headers.sh
new file mode 100755
index 000000000..e5ca647d1
--- /dev/null
+++ b/tools/meson-symlink_headers.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -eu
+
+INCDIR="$1"
+shift 1
+
+while [ $# -gt 0 ] ; do
+ ln -vfs "systemd/$1" "${INCDIR}/elogind/$1"
+ shift 1
+done