aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authormemchr <[email protected]>2023-10-18 23:09:06 +0000
committerGitHub <[email protected]>2023-10-19 00:09:06 +0100
commitd70cc88dab11bc6d1095523a0ce655dff40b27a2 (patch)
treecd30dfda920964364650e9e6a9895cd03fb53d92 /nix
parenta0b675ec9e57af8bc631fc8cc54d062b58669a9f (diff)
downloadHyprland-d70cc88dab11bc6d1095523a0ce655dff40b27a2.tar.gz
Hyprland-d70cc88dab11bc6d1095523a0ce655dff40b27a2.zip
meson: generate version.h before install_headers (#3612)
Otherwise, meson install would not install version.h as a header in a clean build.
Diffstat (limited to 'nix')
-rw-r--r--nix/patches/meson-build.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/nix/patches/meson-build.patch b/nix/patches/meson-build.patch
index b8f784e9..844eacae 100644
--- a/nix/patches/meson-build.patch
+++ b/nix/patches/meson-build.patch
@@ -24,15 +24,15 @@ index 1d2c7f9f..c5ef4e67 100644
add_project_arguments('-DNO_XWAYLAND', language: 'cpp')
endif
-@@ -75,8 +62,6 @@ foreach file : headers
- install_headers(file, subdir: 'hyprland', preserve_path: true)
- endforeach
+@@ -69,8 +56,6 @@ if get_option('buildtype') == 'debug'
+ add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp')
+ endif
-version_h = run_command('sh', '-c', 'scripts/generateVersion.sh')
-
- subdir('protocols')
- subdir('src')
- subdir('hyprctl')
+ globber = run_command('find', 'src', '-name', '*.h*', check: true)
+ headers = globber.stdout().strip().split('\n')
+ foreach file : headers
diff --git a/src/meson.build b/src/meson.build
index 0af864b9..38723b8c 100644
--- a/src/meson.build