Copy wx/msw/setup0.h to setup.h if none already exists

Automatically create setup.h when using a git checkout with MSVS.

Closes https://github.com/wxWidgets/wxWidgets/pull/52
This commit is contained in:
Peter Tissen 2015-07-23 13:24:34 +02:00 committed by Vadim Zeitlin
parent b65a3f5520
commit cfd4da8fdb

View File

@ -131,6 +131,12 @@
<TargetName Condition="'$(Configuration)|$(Platform)'=='DLL Release|Win32'">$(wxToolkitDllNamePrefix)$(ProjectName)$(wxToolkitDllNameSuffix)</TargetName>
<TargetName Condition="'$(Configuration)|$(Platform)'=='DLL Release|x64'">$(wxToolkitDllNamePrefix)$(ProjectName)$(wxToolkitDllNameSuffix)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="!Exists('..\..\include\wx\msw\setup.h')">
<PreBuildEvent>
<Message>Didn't find "include\wx\setup.h", copying setup0.h</Message>
<Command>copy ..\..\include\wx\msw\setup0.h ..\..\include\wx\msw\setup.h</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">