New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add include() function #3557
base: master
Are you sure you want to change the base?
Add include() function #3557
Conversation
Add a check to test inclusion of the same file several times.
Nice! This fixes issue #375 for what it's worth. Does it already include detection to make sure the same (actual) file can't be included multiple times? If not, that may be required. |
I guess it could be accepted if a file can be included only once, otherwise it would be equivalent to having functions, which is explicitly rejected by meson design. If I understand correctly. |
+1 for adding this feature to meson. To what directory will the object files go? |
It includes cyclic dependency detection but doesn't forbid including in a
meson.build file the same include file several times.
Le jeu. 10 mai 2018 à 00:09, Tim-Philipp Müller <notifications@github.com>
a écrit :
… Nice! This fixes issue #375
<#375> for what it's worth.
Does it already include detection to make sure the same (actual) file can't
be included multiple times? If not, that may be required.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3557 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQ3p5vlieBCZG3LHttOhOJ60IAs2jOplks5tw2kSgaJpZM4T5DY_>
.
|
Object files destination directory is based on the directory of meson.build
file which did the inclusion.
Le jeu. 10 mai 2018 à 16:19, Amit D. <notifications@github.com> a écrit :
… +1 for adding this feature to meson.
To what directory will the object files go?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3557 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQ3p5tckF72_HvuVDS0S0zfo69IxdEOkks5txExcgaJpZM4T5DY_>
.
|
Please have it require a prefix of |
IMO, the included filename should have a limit imposed, e.g. FILENAME.meson or meson.FILENAME, for the ease of tracking such includes (imagine [EDIT] @leio was faster :D |
Hello, here's a proposal to add an include() function in order to be able to parse other build files.
included file must be valid meson file.
It's like subdir() except that: