mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Now that we have applied the [1] patch, the diff is much nicer and less noisy. [1]: https://www.github.com/mesonbuild/meson/pull/14861
12 lines
260 B
Meson
12 lines
260 B
Meson
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',
|
|
)
|