[flac-dev] PATCH for all .vcproj files

lvqcl lvqcl.mail at gmail.com
Thu Oct 3 11:39:24 PDT 2013


Ben Allison wrote ( http://lists.xiph.org/pipermail/flac-dev/2013-March/003793.html ):

> The project files could also stand a bit of an overhaul.  It would be good
> to use project references rather than hardcoding .lib paths into the
> linker settings.

Done ;)

The patch replaces
     OutputDirectory="..\..\..\..\objs\debug\bin"
with
     OutputDirectory="$(SolutionDir)objs\$(ConfigurationName)\bin
and so on.

It also removes
     OutputFile="..\..\objs\debug\lib\$(ProjectName).lib
when possible.

Also, in the current version "Whole program optimization" compiler option
is set, but the corresponding linker option isn't. From MSDN:
     "If you do not explicitly specify /LTCG when you pass /GL or MSIL modules
     to the linker, the linker eventually detects this and restarts the link
     by using /LTCG. Explicitly specify /LTCG when you pass /GL and MSIL modules
     to the linker for the fastest possible build performance."
So /LTCG option was added too.


And now Debug build uses libogg_static.lib from .\objs\debug\lib folder.
(the dependency for both release and debug is objs\$(ConfigurationName)\lib\libogg_static.lib)
(not "automatic", but currently "the sanest possible thing", IMHO)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcproj.zip
Type: application/zip
Size: 2326 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20131003/b7257516/attachment-0001.zip 


More information about the flac-dev mailing list