Open marstaik opened 2 years ago
Actually, I don't know how this would work even with @BUILD_DIR@
being fixed, or another one added, because I would have to be able to specify the output of the generator as output: '@FIXED_BUILD_DIR@/@BASENAME@_generated.h'
, but that wont work because:
meson.build:3:0: ERROR: "output" must not contain a directory separator.
When you combine this with the generator
process()
functionspreserve_path_from
argument, you cannot then specify to the generator a correct output directory, and you cannot use'@BUILD_DIR@'
as that is the current meson source files build directory.
This is exactly the problem I am facing now.
I have a generator (namely
flatc
for flatbuffers) that requires specifying the output directory for the generated file, otherwise, it will be the current build directory.When you combine this with the generator
process()
functionspreserve_path_from
argument, you cannot then specify to the generator a correct output directory, and you cannot use'@BUILD_DIR@'
as that is the current meson source files build directory.e.g.