Replies: 6 comments 5 replies
-
UPDATE: since posting this, I have mostly implemented this, in the SCons source, without needing any changes to vcpkg. However, my last question is still pertinent: without being able to get a list of built files that a package build produces, the integration is...awkward. I basically have to front-load the building of a package into the wrong phase of SCons setup, so that I can get the list of built files early enough for SCons to compute build dependencies. I would like to fix this if possible. I can think of two basic solutions:
Option (1.) seems more desirable, since it avoids the need for setting up additional web service and/or any automated processes on a CI server. However, if (1.) is intractable, then (2.a.) or (2.b.) could provide a viable way to predict build artifacts. |
Beta Was this translation helpful? Give feedback.
-
Is this a planned feature or still in discussion? The integration in cmake works quite well as it doesn't force users to add any custom modifications besides passing the |
Beta Was this translation helpful? Give feedback.
-
@jediry for the meantime it woudl actually be quite useful if you have managed to identify a recommended way to implement this, if you have an example that would be quite useful as well! Thank you |
Beta Was this translation helpful? Give feedback.
-
@jediry Did you ever create a github project for your enhancements to SCons? A PR? I need your integration. Perhaps I can complete it? I am a SCons neophyte, but am willing to give it a go. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@jediry I will definitely give it a try this weekend. Thank you! |
Beta Was this translation helpful? Give feedback.
-
@jediry I will. I started looking at the branch this weekend, but you have a lot of functions in vcpkg.py. Perhaps rather than try to understand it, I will just try to use it. I had installed vcpkg using the gitmodule approach, so I will see whether that works. Thank you again. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am investigating adding SCons support to VCPkg. I see that there is a scripts/buildsystems directory containing integrations for msbuild and CMake, so this seems like the natural place to add a SCons "tool". I imagine the syntax within an SConstruct file using this tool looking something like this:
packages += env.VCPkg('boost-smart-ptr', STATIC=true)
packages += env.VCPkg('fftw3')
...
env.Program('my_program', LIBS=packages.libs())
...possibly with some (currently unspecified) integration with SCons's Configure mechanism for detecting the presence of headers/libs, so that we skip the VCPkg download/build if the desired packages are already otherwise available.
Questions:
Beta Was this translation helpful? Give feedback.
All reactions