Visual Studio 2015 build improvements.
This commit is contained in:
committed by
Pasi Kallinen
parent
98266801b6
commit
77bd37b435
@@ -21,6 +21,10 @@ tty and graphical win32 versions of NetHack 3.6.1.
|
|||||||
You can build a TTY version of NetHack and a Windows Graphical
|
You can build a TTY version of NetHack and a Windows Graphical
|
||||||
version. You can use one of the following build environments:
|
version. You can use one of the following build environments:
|
||||||
|
|
||||||
|
o A copy of Microsoft Visual Studio 2015 Express
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
o A copy of Microsoft Visual Studio 2013 Express
|
o A copy of Microsoft Visual Studio 2013 Express
|
||||||
The current NetHack code has not been tested with earlier versions
|
The current NetHack code has not been tested with earlier versions
|
||||||
of the compiler.
|
of the compiler.
|
||||||
@@ -34,12 +38,35 @@ version. You can use one of the following build environments:
|
|||||||
http://www.mingw.org/
|
http://www.mingw.org/
|
||||||
Earlier versions of MinGW will not allow you to build the Windows
|
Earlier versions of MinGW will not allow you to build the Windows
|
||||||
Graphical version.
|
Graphical version.
|
||||||
|
|
||||||
|
|
||||||
In addition to the makefiles that allow you to build NetHack from the
|
In addition to the makefiles that allow you to build NetHack from the
|
||||||
command line, there is also a set of project files and a workspace file
|
command line, there is also a set of project files and a workspace file
|
||||||
that allow you to build the Windows Graphical version from Microsoft
|
that allow you to build the Windows Graphical version from Microsoft
|
||||||
Visual C's IDE (Integrated Development Environment.)
|
Visual C's IDE (Integrated Development Environment.)
|
||||||
|
|
||||||
|
/-------------------------------------------------------\
|
||||||
|
| Buildig And Running Using Visual Studio 2015 |
|
||||||
|
\-------------------------------------------------------/
|
||||||
|
|
||||||
|
If you are NOT using Visual Studio 2015, proceed to "FIRST STEP -
|
||||||
|
MOVING THINGS AROUND".
|
||||||
|
|
||||||
|
When using Visual Studio 2015, you do not need to move things around.
|
||||||
|
You simply need to load the Visual Studio 2015 NetHack solution file
|
||||||
|
within the IDE, build the solution and run the version of NetHack
|
||||||
|
you wish to run.
|
||||||
|
|
||||||
|
The Visual Studio 2015 NetHack solution file can be found here:
|
||||||
|
win\win32\vs2015\NetHack.sln
|
||||||
|
|
||||||
|
From a command prompt, you can launch and load this solution file by:
|
||||||
|
start win\win32\vs2015\NetHack.sln
|
||||||
|
|
||||||
|
From within the IDE:
|
||||||
|
1. select the build configuration you wish to use.
|
||||||
|
2. from build menu, select build solution.
|
||||||
|
3. type F5 to start debugging.
|
||||||
|
|
||||||
/-----------------------------------\
|
/-----------------------------------\
|
||||||
| FIRST STEP - MOVING THINGS AROUND |
|
| FIRST STEP - MOVING THINGS AROUND |
|
||||||
|
|||||||
1
win/win32/.gitignore
vendored
1
win/win32/.gitignore
vendored
@@ -4,4 +4,5 @@
|
|||||||
*.db
|
*.db
|
||||||
record
|
record
|
||||||
*.user
|
*.user
|
||||||
|
*.opendb
|
||||||
|
|
||||||
|
|||||||
@@ -34,5 +34,8 @@
|
|||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,13 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="config.props" />
|
<Import Project="config.props" />
|
||||||
|
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{6813477F-64B6-4B97-B230-438D0D233385}</ProjectGuid>
|
<ProjectGuid>{6813477F-64B6-4B97-B230-438D0D233385}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>nhdefkey</RootNamespace>
|
<RootNamespace>nhdefkey</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<Import Project="default_dll.props" />
|
<Import Project="default_dll.props" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
@@ -15,17 +13,18 @@
|
|||||||
<Import Project="common.props" />
|
<Import Project="common.props" />
|
||||||
<Import Project="dirs.props" />
|
<Import Project="dirs.props" />
|
||||||
<Import Project="files.props" />
|
<Import Project="files.props" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutDir>$(BinDir)</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>NHDEFKEY_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<AdditionalIncludeDirectories>$(IncDir);$(SysWinntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(IncDir);$(SysWinntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<ModuleDefinitionFile>nhdefkey.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>nhdefkey.def</ModuleDefinitionFile>
|
||||||
|
<ImportLibrary>$(ToolsDir)$(TargetName).lib</ImportLibrary>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="$(SysWinntDir)nhdefkey.c" />
|
<ClCompile Include="$(SysWinntDir)nhdefkey.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
Changes made to vs2015 build
|
Changes made to vs2015 build
|
||||||
|
|
||||||
|
To Do
|
||||||
|
1. Build other key handler DLLs.
|
||||||
|
2. Ensure Release build does not have unexpected files after clean build.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
1. Removed the use of /FS.
|
1. Removed the use of /FS.
|
||||||
2. Allow multi-processor compilation.
|
2. Allow multi-processor compilation.
|
||||||
|
|||||||
Reference in New Issue
Block a user