Skip to content

Commit

Permalink
[msvc] duplicate 1d6b8a7 for eglib
Browse files Browse the repository at this point in the history
(cherry picked from commit 9bdd779)
  • Loading branch information
Jo Shields committed Nov 26, 2014
1 parent 2d61e91 commit a067aa1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions eglib/winconfig.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */

#ifndef _MSC_VER
#include "cygconfig.h"
#else

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

Expand Down Expand Up @@ -74,3 +78,4 @@
#define VERSION "0.1"

#define HAVE_STRTOK_R 1
#endif
18 changes: 9 additions & 9 deletions msvc/eglib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<ClCompile>
<Optimization>Disabled</Optimization>
Expand All @@ -145,7 +145,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_SGen|Win32'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<ClCompile>
<Optimization>Disabled</Optimization>
Expand All @@ -161,7 +161,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<ClCompile>
<Optimization>MinSpace</Optimization>
Expand All @@ -175,7 +175,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_SGen|Win32'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<ClCompile>
<Optimization>MinSpace</Optimization>
Expand All @@ -189,7 +189,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
Expand All @@ -208,7 +208,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_SGen|x64'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
Expand All @@ -227,7 +227,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
Expand All @@ -244,7 +244,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_SGen|x64'">
<PreBuildEvent>
<Command>copy ..\eglib\winconfig.h ..\eglib\config.h</Command>
<Command>winsetup.bat</Command>
</PreBuildEvent>
<Midl>
<TargetEnvironment>X64</TargetEnvironment>
Expand Down Expand Up @@ -304,4 +304,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
2 changes: 2 additions & 0 deletions msvc/winsetup.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@echo off
cd ..
if exist config.h if not exist cygconfig.h copy config.h cygconfig.h
if exist eglib\config.h if not exist eglib\cygconfig.h copy eglib\config.h eglib\cygconfig.h
copy winconfig.h config.h
copy eglib\winconfig.h eglib\config.h
goto end
:error
echo fatal error: the VSDepenancies directory was not found in the "mono" directory
Expand Down

0 comments on commit a067aa1

Please sign in to comment.