Skip to content

Commit f7640de

Browse files
committed
Update the regex solution/project to Visual C++ 2015 and remove the 2010 batch file. Also fix up the Debug Information Format setting, preventing a warning.
1 parent 0033f83 commit f7640de

File tree

5 files changed

+25
-255
lines changed

5 files changed

+25
-255
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ src/SDL2/VisualC/tests/*/x64/
3636
src/SDL2/VisualC/tests/*/*.bmp
3737
src/SDL2/VisualC/tests/*/*.wav
3838
src/SDL2/VisualC/tests/*/*.dat
39+
40+
# Other Visual C++ files
41+
*.VC.db
42+
*.suo

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Here is a list of the upstream source locations:
1717

1818
## Building the libraries
1919

20-
Batch files to build for either Visual C++ 2010 or 2015 are provided. Run the buildVC2010.bat or
21-
buildVC2015.bat file and it should build the libraries. Output will go into a folder such as
22-
output-release-x86. Run a 'git clean -x -f -d' before switching between Visual C++ versions.
20+
A batch file to build for Visual C++ 2015 is provided. Run the buildVC2015.bat file and it should
21+
build the libraries. Output will go into a folder such as output-release-x86. Run a
22+
'git clean -x -f -d' before switching between Visual C++ versions.
23+
24+
## Using the libraries
25+
26+
Create an environment variable called BZ_DEPS that points to the directory that the output
27+
directories are contained within. For instance, if output-release-x86 is at
28+
'D:\bzflag-dependencies\output-release-x86', then BZ_DEPS should be 'D:\bzflag-dependencies\'.

buildVC2010.bat

-246
This file was deleted.

src/regex/regex.sln

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

2-
Microsoft Visual Studio Solution File, Format Version 11.00
3-
# Visual Studio 2010
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25123.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
46
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "regex", "regex.vcxproj", "{6DD493F8-31E1-4958-A240-D157AFFCB07E}"
57
EndProject
68
Global

src/regex/regex.vcxproj

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup Label="ProjectConfigurations">
44
<ProjectConfiguration Include="Debug|Win32">
55
<Configuration>Debug</Configuration>
@@ -27,18 +27,22 @@
2727
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
2828
<ConfigurationType>StaticLibrary</ConfigurationType>
2929
<CharacterSet>MultiByte</CharacterSet>
30+
<PlatformToolset>v140</PlatformToolset>
3031
</PropertyGroup>
3132
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3233
<ConfigurationType>StaticLibrary</ConfigurationType>
3334
<CharacterSet>MultiByte</CharacterSet>
35+
<PlatformToolset>v140</PlatformToolset>
3436
</PropertyGroup>
3537
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
3638
<ConfigurationType>StaticLibrary</ConfigurationType>
3739
<CharacterSet>MultiByte</CharacterSet>
40+
<PlatformToolset>v140</PlatformToolset>
3841
</PropertyGroup>
3942
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4043
<ConfigurationType>StaticLibrary</ConfigurationType>
4144
<CharacterSet>MultiByte</CharacterSet>
45+
<PlatformToolset>v140</PlatformToolset>
4246
</PropertyGroup>
4347
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4448
<ImportGroup Label="ExtensionSettings">
@@ -85,7 +89,7 @@
8589
<BrowseInformation>true</BrowseInformation>
8690
<WarningLevel>Level3</WarningLevel>
8791
<TreatWarningAsError>false</TreatWarningAsError>
88-
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
92+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
8993
</ClCompile>
9094
<Lib>
9195
<OutputFile>$(OutDir)regex.lib</OutputFile>
@@ -99,7 +103,7 @@
99103
<PrecompiledHeader>
100104
</PrecompiledHeader>
101105
<WarningLevel>Level3</WarningLevel>
102-
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
106+
<DebugInformationFormat>None</DebugInformationFormat>
103107
</ClCompile>
104108
<Lib>
105109
<OutputFile>$(OutDir)regex.lib</OutputFile>
@@ -139,7 +143,7 @@
139143
<PrecompiledHeader>
140144
</PrecompiledHeader>
141145
<WarningLevel>Level3</WarningLevel>
142-
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
146+
<DebugInformationFormat>None</DebugInformationFormat>
143147
</ClCompile>
144148
<Lib>
145149
<OutputFile>$(OutDir)regex.lib</OutputFile>

0 commit comments

Comments
 (0)