Using the rewriter to add source files to target in a subdir

9 views
Skip to first unread message

Andrew Gillan

unread,
Sep 1, 2023, 7:23:33 PM9/1/23
to The Meson Build System
I was attempting to use the rewriter to add source files to a static library target declared in a subdirectory meson.build file.

I tried using the -s option to specify the subdirectory, but a Python Error is thrown saying it cannot find the file. I did notice the file path built up by meson looks incorrect as the source directory provided appears twice in the path.

If I change to the subdirectory and use the rewriter without the -s option, the rewrite is successful.

I'm not sure if this is a bug or if I'm not clear on how the rewriter is intended to operate.

Any help understanding if the above is a bug or clarification on how to use the rewriter would be appreciated.

Thank you,
Andrew
Reply all
Reply to author
Forward
0 new messages