Closed vijay8i closed 4 months ago
Hi @vijay8i
Thanks for your suggestion. I think this might be a duplicate of https://github.com/conan-io/conan/issues/13751, which is assigned for 2.X milestone (meaning that it is planned to try it, just it hasn't become enough high priority yet).
Please track and comment that other ticket instead, and close this one if indeed a duplicate. Thanks!
Hi @memsharded
Indeed my request seems related to #13751. Closing my request and will track it instead. Thanks!
Option to suppress generation of script files
For context, I am using
gn
+ninja
+conan
for my build system. I am usingconan
only to fetch, build and intall third-party dependencies and use them from either the shared cache location or usingdirect_deploy
, by utilizingPkgConfigDeps
to providepkgconfig
info togn
. This works well (so far).I like to keep my
third-party
folder clean containing only artefacts related to my dependencies. Currentlyconan
also generates and saves script files to manage theenvironment
. This is how mythird-party
folder looks for a shared install:The
*.sh
files are being generated by various generators that eventually invokesave_script
method inconan/tools/env/environment.py
:I would like to have an option to skip the generation of script files so that my
third-party
folder looks more like this:OR like this:
Looking into the code I don't think there is an option to skip generation of the script files. The feature request is to have an option that would allow this to be possible. The motivation is to reduce the cognitive load by staying as much as possible in one domain (
gn
for dealing with environment) and use conan for a very specific task of managing external dependencies.If any one of the maintainers of
conan
can guide me I would be happy to submit a PR for this feature request.TIA.
Have you read the CONTRIBUTING guide?