1
0
Fork 0

MSVC Builds: "Install" the .pdb Files

"Install" the .pdb files with the built DLLs and examples, as the .pdb
files are already generated for all builds, which are useful for debugging
during Cogl development, or during development of Cogl-using items.

Also be more selective on the LIBs, DLLs and EXEs that are copied, so that
we only copy the items built during Cogl compilation when the project set
is used in a grand solution, such as when building the entire Clutter
stack, which will avoid items being incorrectly copied or extra and
unneeded items being copied.
This commit is contained in:
Chun-wei Fan 2015-03-06 17:46:18 +08:00
parent 7c40f060cc
commit 0809fbfe03
2 changed files with 48 additions and 18 deletions

View file

@ -15,22 +15,37 @@ mkdir $(CopyDir)\lib
if "$(Configuration)" == "Release_SDL" goto DO_REL_BIN
if "$(Configuration)" == "Debug_SDL" goto DO_DBG_BIN
copy $(BinDir)\*.dll $(CopyDir)\bin
copy $(BinDir)\*-$(ApiVersion).lib $(CopyDir)\lib
copy $(BinDir)\*.exe $(CopyDir)\bin
copy $(BinDir)\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin
copy $(BinDir)\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin
copy $(BinDir)\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin
copy $(BinDir)\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin
copy $(BinDir)\cogl-$(ApiVersion).lib $(CopyDir)\lib
copy $(BinDir)\cogl-*-$(ApiVersion).lib $(CopyDir)\lib
copy $(BinDir)\cogl-*.exe $(CopyDir)\bin
copy $(BinDir)\cogl-*.pdb $(CopyDir)\bin
goto DONE_BIN
:DO_REL_BIN
copy Release\$(Platform)\bin\*.dll $(CopyDir)\bin
copy Release\$(Platform)\bin\*-$(ApiVersion).lib $(CopyDir)\lib
copy Release\$(Platform)\bin\*.exe $(CopyDir)\bin
copy Release\$(Platform)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin
copy Release\$(Platform)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin
copy Release\$(Platform)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin
copy Release\$(Platform)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin
copy Release\$(Platform)\bin\cogl-$(ApiVersion).lib $(CopyDir)\lib
copy Release\$(Platform)\bin\cogl-*-$(ApiVersion).lib $(CopyDir)\lib
copy Release\$(Platform)\bin\cogl-*.exe $(CopyDir)\bin
copy Release\$(Platform)\bin\cogl-*.pdb $(CopyDir)\bin
goto DONE_BIN
:DO_DBG_BIN
copy Debug\$(Platform)\bin\*.dll $(CopyDir)\bin
copy Debug\$(Platform)\bin\*-$(ApiVersion).lib $(CopyDir)\lib
copy Debug\$(Platform)\bin\*.exe $(CopyDir)\bin
copy Debug\$(Platform)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin
copy Debug\$(Platform)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin
copy Debug\$(Platform)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin
copy Debug\$(Platform)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin
copy Debug\$(Platform)\bin\cogl-$(ApiVersion).lib $(CopyDir)\lib
copy Debug\$(Platform)\bin\cogl-*-$(ApiVersion).lib $(CopyDir)\lib
copy Debug\$(Platform)\bin\cogl-*.exe $(CopyDir)\bin
copy Debug\$(Platform)\bin\cogl-*.pdb $(CopyDir)\bin
goto DONE_BIN
:DONE_BIN

View file

@ -14,21 +14,36 @@ mkdir $(CopyDir)\lib

if "$(ConfigurationName)" == "Release_SDL" goto DO_REL_BIN

if "$(ConfigurationName)" == "Debug_SDL" goto DO_DBG_BIN

copy $(ConfigurationName)\$(PlatformName)\bin\*.dll $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\*-$(ApiVersion).lib $(CopyDir)\lib

copy $(ConfigurationName)\$(PlatformName)\bin\*.exe $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\cogl-$(ApiVersion).lib $(CopyDir)\lib

copy $(ConfigurationName)\$(PlatformName)\bin\cogl-*-$(ApiVersion).lib $(CopyDir)\lib

copy $(ConfigurationName)\$(PlatformName)\bin\cogl-*.exe $(CopyDir)\bin

copy $(ConfigurationName)\$(PlatformName)\bin\cogl-*.pdb $(CopyDir)\bin

goto DONE_BIN

:DO_REL_BIN

copy Release\$(PlatformName)\bin\*.dll $(CopyDir)\bin

copy Release\$(PlatformName)\bin\*-$(ApiVersion).lib $(CopyDir)\lib

copy Release\$(PlatformName)\bin\*.exe $(CopyDir)\bin

copy Release\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin

copy Release\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin

copy Release\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin

copy Release\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin

copy Release\$(PlatformName)\bin\cogl-$(ApiVersion).lib $(CopyDir)\lib

copy Release\$(PlatformName)\bin\cogl-*-$(ApiVersion).lib $(CopyDir)\lib

copy Release\$(PlatformName)\bin\cogl-*.exe $(CopyDir)\bin

copy Release\$(PlatformName)\bin\cogl-*.pdb $(CopyDir)\bin

goto DONE_BIN

:DO_DBG_BIN

copy Debug\$(PlatformName)\bin\*.dll $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\*-$(ApiVersion).lib $(CopyDir)\lib

copy Debug\$(PlatformName)\bin\*.exe $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).dll $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\$(CoglDllPrefix)cogl$(CoglDllSuffix).pdb $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).dll $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\$(CoglDllPrefix)cogl-*$(CoglDllSuffix).pdb $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\cogl-$(ApiVersion).lib $(CopyDir)\lib

copy Debug\$(PlatformName)\bin\cogl-*-$(ApiVersion).lib $(CopyDir)\lib

copy Debug\$(PlatformName)\bin\cogl-*.exe $(CopyDir)\bin

copy Debug\$(PlatformName)\bin\cogl-*.pdb $(CopyDir)\bin

goto DONE_BIN

:DONE_BIN