Skip to content

Commit

Permalink
Update the regex solution/project to Visual C++ 2015 and remove the 2…
Browse files Browse the repository at this point in the history
…010 batch file. Also fix up the Debug Information Format setting, preventing a warning.
  • Loading branch information
blast007 committed Jan 29, 2017
1 parent 0033f83 commit f7640de
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 255 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ src/SDL2/VisualC/tests/*/x64/
src/SDL2/VisualC/tests/*/*.bmp
src/SDL2/VisualC/tests/*/*.wav
src/SDL2/VisualC/tests/*/*.dat

# Other Visual C++ files
*.VC.db
*.suo
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Here is a list of the upstream source locations:

## Building the libraries

Batch files to build for either Visual C++ 2010 or 2015 are provided. Run the buildVC2010.bat or
buildVC2015.bat file and it should build the libraries. Output will go into a folder such as
output-release-x86. Run a 'git clean -x -f -d' before switching between Visual C++ versions.
A batch file to build for Visual C++ 2015 is provided. Run the buildVC2015.bat file and it should
build the libraries. Output will go into a folder such as output-release-x86. Run a
'git clean -x -f -d' before switching between Visual C++ versions.

## Using the libraries

Create an environment variable called BZ_DEPS that points to the directory that the output
directories are contained within. For instance, if output-release-x86 is at
'D:\bzflag-dependencies\output-release-x86', then BZ_DEPS should be 'D:\bzflag-dependencies\'.
246 changes: 0 additions & 246 deletions buildVC2010.bat

This file was deleted.

6 changes: 4 additions & 2 deletions src/regex/regex.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "regex", "regex.vcxproj", "{6DD493F8-31E1-4958-A240-D157AFFCB07E}"
EndProject
Global
Expand Down
12 changes: 8 additions & 4 deletions src/regex/regex.vcxproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
Expand Down Expand Up @@ -27,18 +27,22 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -85,7 +89,7 @@
<BrowseInformation>true</BrowseInformation>
<WarningLevel>Level3</WarningLevel>
<TreatWarningAsError>false</TreatWarningAsError>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)regex.lib</OutputFile>
Expand All @@ -99,7 +103,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DebugInformationFormat>None</DebugInformationFormat>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)regex.lib</OutputFile>
Expand Down Expand Up @@ -139,7 +143,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<DebugInformationFormat>None</DebugInformationFormat>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)regex.lib</OutputFile>
Expand Down

0 comments on commit f7640de

Please sign in to comment.