Replies: 5 comments 3 replies
-
|
Vcpkg usually does not rename output file names. If the upstream produces the same file name for both debug and release builds, vcpkg does not attempt to patch that out.
If glib built from unmodified sources has |
Beta Was this translation helpful? Give feedback.
-
|
There is no easy way to do it. Things are integrated, and integration is tested, as is, with debug binaries stored to a different path. In the broad spectrum of ports in vcpkg, even installing different names would (and did) lead to mixup because it is tricky to lookup different names in correct order for names and paths. Many upstreams are not prepared for it. Apart from preference, is there any actual problem? |
Beta Was this translation helpful? Give feedback.
-
|
Yes I can see the problem. For example, glib is dependent on other packages, such as libintl and gettext, so they'd need to get changed too. What would be nice would be if vcpkg install came with some command-line option to just do this automatically for Debug builds but I guess that'd be difficult too? So far, there haven't been any issues here with the current naming but I can well imagine it causing problems at some point and they'd be very difficult to track down :-( |
Beta Was this translation helpful? Give feedback.
-
|
I suppose this raises an obvious question:- i.e. does vcpkg utilise each library's build system directly, or does it simple emulate it? Taking glib as an example, I'm pretty sure that it's build system (on Windows) is all based around MSVC project files (.vcxproj) So if those files were being used directly, it'd be quite simple to edit them. OTOH if their actions are being emulated, that makes it more difficult (and other packages won't even be using .vcxproj file of course). |
Beta Was this translation helpful? Give feedback.
-
|
I just looked at our build of glib here (version 2.54.3) and there are loads of MSVC projects - though to be fair, they're the older .vcproj files - so yes, maybe this all got changed in the more recent versions.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm finding vcpkg pretty useful but there's one thing niggling me...
Packages tend to build both a Release target and a Debug target but AFAICT for the majority of packages, the built names are identical for both targets. For example the built DLLs for glib are both called glib-2.0.0.dll. And in some cases, Debug DLL and Release DLL have identical sizes - so it can only be a matter of time here before someone gets them mixed up.
I prefer to use the old Microsoft format whereby Debug builds had a letter 'D' added at the end - i.e. for glib, the Debug DLL would be called glib-2.0.0D.dll.
Is there some way I can achieve that locally? And of so, where/what would I need to edit?
Beta Was this translation helpful? Give feedback.
All reactions