Skip to content

Commit 7f33d2f

Browse files
committed
Updated all projects to support Windows 32-bit and 64-bit builds.
1 parent 39cc466 commit 7f33d2f

File tree

3 files changed

+150
-8
lines changed

3 files changed

+150
-8
lines changed

chenard.sln

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.31101.0
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xchenard", "xchenard\xchenard.vcxproj", "{2C475FDB-466E-43C6-8B12-4005E11D41E8}"
77
EndProject
@@ -81,38 +81,44 @@ Global
8181
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|Mixed Platforms.Build.0 = Debug|x64
8282
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|Win32.ActiveCfg = Debug|Win32
8383
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|Win32.Build.0 = Debug|Win32
84-
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|x64.ActiveCfg = Debug|Win32
84+
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|x64.ActiveCfg = Debug|x64
85+
{7016A623-EFFF-4678-8B19-03411A258510}.Debug|x64.Build.0 = Debug|x64
8586
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Any CPU.ActiveCfg = Release|Win32
8687
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Any CPU.Build.0 = Release|Win32
8788
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Mixed Platforms.ActiveCfg = Release|x64
8889
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Mixed Platforms.Build.0 = Release|x64
8990
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Win32.ActiveCfg = Release|Win32
9091
{7016A623-EFFF-4678-8B19-03411A258510}.Release|Win32.Build.0 = Release|Win32
91-
{7016A623-EFFF-4678-8B19-03411A258510}.Release|x64.ActiveCfg = Release|Win32
92+
{7016A623-EFFF-4678-8B19-03411A258510}.Release|x64.ActiveCfg = Release|x64
93+
{7016A623-EFFF-4678-8B19-03411A258510}.Release|x64.Build.0 = Release|x64
9294
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|Any CPU.ActiveCfg = Debug|Win32
9395
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
9496
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|Mixed Platforms.Build.0 = Debug|Win32
9597
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|Win32.ActiveCfg = Debug|Win32
9698
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|Win32.Build.0 = Debug|Win32
97-
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|x64.ActiveCfg = Debug|Win32
99+
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|x64.ActiveCfg = Debug|x64
100+
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Debug|x64.Build.0 = Debug|x64
98101
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|Any CPU.ActiveCfg = Release|Win32
99102
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|Mixed Platforms.ActiveCfg = Release|Win32
100103
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|Mixed Platforms.Build.0 = Release|Win32
101104
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|Win32.ActiveCfg = Release|Win32
102105
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|Win32.Build.0 = Release|Win32
103-
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|x64.ActiveCfg = Release|Win32
106+
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|x64.ActiveCfg = Release|x64
107+
{F168B4B2-EA7F-4F77-922B-B5473612AB04}.Release|x64.Build.0 = Release|x64
104108
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|Any CPU.ActiveCfg = Debug|Win32
105109
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
106110
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|Mixed Platforms.Build.0 = Debug|Win32
107111
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|Win32.ActiveCfg = Debug|Win32
108112
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|Win32.Build.0 = Debug|Win32
109-
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|x64.ActiveCfg = Debug|Win32
113+
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|x64.ActiveCfg = Debug|x64
114+
{979085C2-49AD-4184-9B5B-F093525B1C40}.Debug|x64.Build.0 = Debug|x64
110115
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|Any CPU.ActiveCfg = Release|Win32
111116
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|Mixed Platforms.ActiveCfg = Release|Win32
112117
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|Mixed Platforms.Build.0 = Release|Win32
113118
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|Win32.ActiveCfg = Release|Win32
114119
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|Win32.Build.0 = Release|Win32
115-
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|x64.ActiveCfg = Release|Win32
120+
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|x64.ActiveCfg = Release|x64
121+
{979085C2-49AD-4184-9B5B-F093525B1C40}.Release|x64.Build.0 = Release|x64
116122
EndGlobalSection
117123
GlobalSection(SolutionProperties) = preSolution
118124
HideSolutionNode = FALSE

chenclient/chenclient.vcxproj

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
<Configuration>Debug</Configuration>
66
<Platform>Win32</Platform>
77
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
812
<ProjectConfiguration Include="Release|Win32">
913
<Configuration>Release</Configuration>
1014
<Platform>Win32</Platform>
1115
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
1220
</ItemGroup>
1321
<PropertyGroup Label="Globals">
1422
<ProjectGuid>{979085C2-49AD-4184-9B5B-F093525B1C40}</ProjectGuid>
@@ -22,29 +30,54 @@
2230
<PlatformToolset>v140</PlatformToolset>
2331
<CharacterSet>Unicode</CharacterSet>
2432
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34+
<ConfigurationType>Application</ConfigurationType>
35+
<UseDebugLibraries>true</UseDebugLibraries>
36+
<PlatformToolset>v140</PlatformToolset>
37+
<CharacterSet>Unicode</CharacterSet>
38+
</PropertyGroup>
2539
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
2640
<ConfigurationType>Application</ConfigurationType>
2741
<UseDebugLibraries>false</UseDebugLibraries>
2842
<PlatformToolset>v140</PlatformToolset>
2943
<WholeProgramOptimization>true</WholeProgramOptimization>
3044
<CharacterSet>Unicode</CharacterSet>
3145
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47+
<ConfigurationType>Application</ConfigurationType>
48+
<UseDebugLibraries>false</UseDebugLibraries>
49+
<PlatformToolset>v140</PlatformToolset>
50+
<WholeProgramOptimization>true</WholeProgramOptimization>
51+
<CharacterSet>Unicode</CharacterSet>
52+
</PropertyGroup>
3253
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3354
<ImportGroup Label="ExtensionSettings">
3455
</ImportGroup>
3556
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
3657
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
3758
</ImportGroup>
59+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
3862
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
3963
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4064
</ImportGroup>
65+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
4168
<PropertyGroup Label="UserMacros" />
4269
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4370
<LinkIncremental>true</LinkIncremental>
4471
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
73+
<LinkIncremental>true</LinkIncremental>
74+
</PropertyGroup>
4575
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4676
<LinkIncremental>false</LinkIncremental>
4777
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
79+
<LinkIncremental>false</LinkIncremental>
80+
</PropertyGroup>
4881
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4982
<ClCompile>
5083
<PrecompiledHeader>
@@ -60,6 +93,21 @@
6093
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
6194
</Link>
6295
</ItemDefinitionGroup>
96+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
97+
<ClCompile>
98+
<PrecompiledHeader>
99+
</PrecompiledHeader>
100+
<WarningLevel>Level3</WarningLevel>
101+
<Optimization>Disabled</Optimization>
102+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103+
<SDLCheck>true</SDLCheck>
104+
</ClCompile>
105+
<Link>
106+
<SubSystem>Console</SubSystem>
107+
<GenerateDebugInformation>true</GenerateDebugInformation>
108+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
109+
</Link>
110+
</ItemDefinitionGroup>
63111
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64112
<ClCompile>
65113
<WarningLevel>Level3</WarningLevel>
@@ -79,6 +127,25 @@
79127
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
80128
</Link>
81129
</ItemDefinitionGroup>
130+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
131+
<ClCompile>
132+
<WarningLevel>Level3</WarningLevel>
133+
<PrecompiledHeader>
134+
</PrecompiledHeader>
135+
<Optimization>MaxSpeed</Optimization>
136+
<FunctionLevelLinking>true</FunctionLevelLinking>
137+
<IntrinsicFunctions>true</IntrinsicFunctions>
138+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
139+
<SDLCheck>true</SDLCheck>
140+
</ClCompile>
141+
<Link>
142+
<SubSystem>Console</SubSystem>
143+
<GenerateDebugInformation>true</GenerateDebugInformation>
144+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
145+
<OptimizeReferences>true</OptimizeReferences>
146+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
147+
</Link>
148+
</ItemDefinitionGroup>
82149
<ItemGroup>
83150
<ClCompile Include="main.cpp" />
84151
</ItemGroup>

chenserver/chenserver.vcxproj

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
<Configuration>Debug</Configuration>
66
<Platform>Win32</Platform>
77
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
812
<ProjectConfiguration Include="Release|Win32">
913
<Configuration>Release</Configuration>
1014
<Platform>Win32</Platform>
1115
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
1220
</ItemGroup>
1321
<PropertyGroup Label="Globals">
1422
<ProjectGuid>{F168B4B2-EA7F-4F77-922B-B5473612AB04}</ProjectGuid>
@@ -22,29 +30,54 @@
2230
<PlatformToolset>v140</PlatformToolset>
2331
<CharacterSet>Unicode</CharacterSet>
2432
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34+
<ConfigurationType>Application</ConfigurationType>
35+
<UseDebugLibraries>true</UseDebugLibraries>
36+
<PlatformToolset>v140</PlatformToolset>
37+
<CharacterSet>Unicode</CharacterSet>
38+
</PropertyGroup>
2539
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
2640
<ConfigurationType>Application</ConfigurationType>
2741
<UseDebugLibraries>false</UseDebugLibraries>
2842
<PlatformToolset>v140</PlatformToolset>
2943
<WholeProgramOptimization>true</WholeProgramOptimization>
3044
<CharacterSet>Unicode</CharacterSet>
3145
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47+
<ConfigurationType>Application</ConfigurationType>
48+
<UseDebugLibraries>false</UseDebugLibraries>
49+
<PlatformToolset>v140</PlatformToolset>
50+
<WholeProgramOptimization>true</WholeProgramOptimization>
51+
<CharacterSet>Unicode</CharacterSet>
52+
</PropertyGroup>
3253
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
3354
<ImportGroup Label="ExtensionSettings">
3455
</ImportGroup>
3556
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
3657
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
3758
</ImportGroup>
59+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
3862
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
3963
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4064
</ImportGroup>
65+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
4168
<PropertyGroup Label="UserMacros" />
4269
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4370
<LinkIncremental>true</LinkIncremental>
4471
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
73+
<LinkIncremental>true</LinkIncremental>
74+
</PropertyGroup>
4575
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4676
<LinkIncremental>false</LinkIncremental>
4777
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
79+
<LinkIncremental>false</LinkIncremental>
80+
</PropertyGroup>
4881
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4982
<ClCompile>
5083
<PrecompiledHeader>
@@ -61,6 +94,22 @@
6194
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
6295
</Link>
6396
</ItemDefinitionGroup>
97+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98+
<ClCompile>
99+
<PrecompiledHeader>
100+
</PrecompiledHeader>
101+
<WarningLevel>Level3</WarningLevel>
102+
<Optimization>Disabled</Optimization>
103+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104+
<SDLCheck>true</SDLCheck>
105+
<AdditionalIncludeDirectories>..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
106+
</ClCompile>
107+
<Link>
108+
<SubSystem>Console</SubSystem>
109+
<GenerateDebugInformation>true</GenerateDebugInformation>
110+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
111+
</Link>
112+
</ItemDefinitionGroup>
64113
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
65114
<ClCompile>
66115
<WarningLevel>Level3</WarningLevel>
@@ -81,6 +130,26 @@
81130
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
82131
</Link>
83132
</ItemDefinitionGroup>
133+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
134+
<ClCompile>
135+
<WarningLevel>Level3</WarningLevel>
136+
<PrecompiledHeader>
137+
</PrecompiledHeader>
138+
<Optimization>MaxSpeed</Optimization>
139+
<FunctionLevelLinking>true</FunctionLevelLinking>
140+
<IntrinsicFunctions>true</IntrinsicFunctions>
141+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
142+
<SDLCheck>true</SDLCheck>
143+
<AdditionalIncludeDirectories>..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
144+
</ClCompile>
145+
<Link>
146+
<SubSystem>Console</SubSystem>
147+
<GenerateDebugInformation>true</GenerateDebugInformation>
148+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
149+
<OptimizeReferences>true</OptimizeReferences>
150+
<AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
151+
</Link>
152+
</ItemDefinitionGroup>
84153
<ItemGroup>
85154
<ClCompile Include="..\src\attack.cpp" />
86155
<ClCompile Include="..\src\board.cpp" />

0 commit comments

Comments
 (0)