mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Use a meson "generator" to deduplicate .gen.hh
creation
This commit is contained in:
parent
d8850618b6
commit
6e5cec292b
5 changed files with 18 additions and 22 deletions
7
build-utils-meson/generate-header/meson.build
Normal file
7
build-utils-meson/generate-header/meson.build
Normal file
|
@ -0,0 +1,7 @@
|
|||
bash = find_program('bash', native: true)
|
||||
|
||||
gen_header = generator(
|
||||
bash,
|
||||
arguments : [ '-c', '{ echo \'R"__NIX_STR(\' && cat @INPUT@ && echo \')__NIX_STR"\'; } > "$1"', '_ignored_argv0', '@OUTPUT@' ],
|
||||
output : '@PLAINNAME@.gen.hh',
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue