stip() function has no effect on @OUTPUT@ ? #13943
-
I have the following snippet in my meson.build:
Given the In order to prove my theory, I did the following instead:
Then I run So I wanted to go one step further:
My intent was to tell meson that the output would be named
so What's the trick? how can I achieve what I want, i.e. generate this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is a string replacement function that results in the string The actual output you want here is You can use I confess I'm surprised by this sqlite2cpp interface. Usually if a tool wants to choose the output filename itself it takes a directory argument, rather than taking the full path to the output filename but then appending the .h suffix on its own. If it doesn't want to choose the output filename, it just takes whatever you tell it. |
Beta Was this translation helpful? Give feedback.
Is a string replacement function that results in the string
'@OUTPUT@'
, which is in turn passed as an argument to the custom target. The custom target function itself specially handles string values containing replacement tokens.The actual output you want here is
@OUTDIR@/schema
, essentially. All that@OUTPUT@
does specially is handle prepending the output directory to the same string you used as theoutput:
kwarg.You can use
@OUTPUT@/@BASENAME@
to strip the.sql
programmatically from the input filename, or just hardcode "schema" here.I confess I'm surprised by this sqlite2cpp interface. Usually if a tool wants to choose the output filename itself it takes a dir…