meson: generate version.h before install_headers (#3612)
Otherwise, meson install would not install version.h as a header in a clean build.
This commit is contained in:
parent
a0b675ec9e
commit
d70cc88dab
2 changed files with 8 additions and 8 deletions
|
|
@ -69,14 +69,14 @@ if get_option('buildtype') == 'debug'
|
|||
add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp')
|
||||
endif
|
||||
|
||||
version_h = run_command('sh', '-c', 'scripts/generateVersion.sh')
|
||||
|
||||
globber = run_command('find', 'src', '-name', '*.h*', check: true)
|
||||
headers = globber.stdout().strip().split('\n')
|
||||
foreach file : headers
|
||||
install_headers(file, subdir: 'hyprland', preserve_path: true)
|
||||
endforeach
|
||||
|
||||
version_h = run_command('sh', '-c', 'scripts/generateVersion.sh')
|
||||
|
||||
subdir('protocols')
|
||||
subdir('src')
|
||||
subdir('hyprctl')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue