Support both VS 2017 and VS 2019 without making changes to project files.

Renamed 'vs2017' folder to 'vs'.
This commit is contained in:
Bart House
2020-10-10 15:15:59 -07:00
parent 75f3ccd770
commit bb04a9b041
98 changed files with 15 additions and 24 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ matrix:
os: windows os: windows
language: shell language: shell
script: script:
- ./win/win32/vs2017/travisci.sh - ./win/win32/vs/travisci.sh
- name: windows-mingw - name: windows-mingw
os: windows os: windows
# install: choco install mingw # install: choco install mingw
+3 -3
View File
@@ -429,8 +429,8 @@ record.uu resource.h rip.uu
splash.uu tiles-mingw32.mak tiles.mak splash.uu tiles-mingw32.mak tiles.mak
winMS.h winMS.h
win/win32/vs2017: win/win32/vs:
(files for Visual Studio 2017 Community Edition builds) (files for Visual Studio 2017 or 2019 Community Edition builds)
NetHack.sln NetHack.vcxproj NetHack.sln NetHack.vcxproj
NetHackPackage.appxmanifest NetHackPackage.wapproj NetHackPackage.appxmanifest NetHackPackage.wapproj
NetHackProperties.props NetHackW.vcxproj NetHackProperties.props NetHackW.vcxproj
@@ -452,7 +452,7 @@ recover.vcxproj tile2bmp.vcxproj
tilemap.vcxproj tiles.vcxproj tilemap.vcxproj tiles.vcxproj
travisci.sh uudecode.vcxproj travisci.sh uudecode.vcxproj
win/win32/vs2017/Images: win/win32/vs/Images:
(files for Visual Studio 2017 Community Edition builds) (files for Visual Studio 2017 Community Edition builds)
BadgeLogo.scale-100.png BadgeLogo.scale-100.png
BadgeLogo.scale-125.png BadgeLogo.scale-125.png
+7 -15
View File
@@ -49,10 +49,10 @@ version. You can use one of the following build environments:
| | | | | | | | | | | |
share winnt tty win32 Lua-5.4.0 pdcurses share winnt tty win32 Lua-5.4.0 pdcurses
| |
vs2017 vs
/--------------------------------------------------------\ /--------------------------------------------------------\
| Building And Running Using Visual Studio 2017 | | Building And Running Using Visual Studio 2017 or 2019 |
\--------------------------------------------------------/ \--------------------------------------------------------/
Before proceeding, please obtain the lua-5.4.0 sources and copy them to Before proceeding, please obtain the lua-5.4.0 sources and copy them to
@@ -61,23 +61,15 @@ http://www.lua.org/ftp/lua-5.4.0.tar.gz or from the git hub mirror
https://github.com/lua/lua.git using the tag 'v5.4.0'. The build expects https://github.com/lua/lua.git using the tag 'v5.4.0'. The build expects
to find lua files such as 'lua.h' at 'lib\lua-5.4.0\src\lua.h'. to find lua files such as 'lua.h' at 'lib\lua-5.4.0\src\lua.h'.
If you are NOT using Visual Studio 2017 IDE, or you prefer to build If you are NOT using Visual Studio 2017 or 2019 IDE, or you prefer to build
using a Make utility and a Makefile proceed to "Building Using Make". using a Make utility and a Makefile proceed to "Building Using Make".
When using either Visual Studio 2017, you simply need to load the When using either Visual Studio 2017 or 2019, you simply need to load the
solution file within the IDE, build the solution and run the version solution file within the IDE, build the solution and run the version
of NetHack you wish to run. of NetHack you wish to run.
The Visual Studio 2017 NetHack solution file can be found here: The Visual Studio NetHack solution file can be found here:
win\win32\vs2017\NetHack.sln win\win32\vs\NetHack.sln
You can use that same win\win32\vs2017\NetHack.sln with Visual Studio 2019,
but you may have to retarget the projects:
Windows SDK Version: 10.0.17763.0 [ There have been some reports of
difficulties if you instead choose
"10.0 (latest installed version)" ]
Platform Toolset: Upgrade to v142
Before executing the steps to build listed in the next paragraph, Before executing the steps to build listed in the next paragraph,
decide if you want to include optional curses window-port. See decide if you want to include optional curses window-port. See
@@ -94,7 +86,7 @@ You can also build all the projects for all platforms and configurations
using a "build.bat" batch file found in the same directory as the solution. using a "build.bat" batch file found in the same directory as the solution.
Open a developer command prompt for the version of Visual Studio you are Open a developer command prompt for the version of Visual Studio you are
using. Change to the directory win\win32\vs2017 and run "build.bat". using. Change to the directory win\win32\vs and run "build.bat".
* Optional curses window-port support * * Optional curses window-port support *
+1 -1
View File
@@ -593,7 +593,7 @@ VSVER=2999 #untested future version
!include <win32.mak> !include <win32.mak>
! ENDIF ! ENDIF
#These will be in the environment variables with one of the VS2017 #These will be in the environment variables with one of the Visual Studio
#developer command prompts. #developer command prompts.
#VSCMD_ARG_HOST_ARCH=x64 #VSCMD_ARG_HOST_ARCH=x64
#VSCMD_ARG_TGT_ARCH=x86 #VSCMD_ARG_TGT_ARCH=x86

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 238 B

Before

Width:  |  Height:  |  Size: 300 B

After

Width:  |  Height:  |  Size: 300 B

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 520 B

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 770 B

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 954 B

After

Width:  |  Height:  |  Size: 954 B

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

@@ -4,7 +4,7 @@
<ConfigurationType>Application</ConfigurationType> <ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc> <UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet> <CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v141</PlatformToolset> <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<LocalDebuggerWorkingDirectory>$(BinDir)</LocalDebuggerWorkingDirectory> <LocalDebuggerWorkingDirectory>$(BinDir)</LocalDebuggerWorkingDirectory>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" > <PropertyGroup Condition="'$(Configuration)'=='Debug'" >
@@ -14,5 +14,4 @@
<UseDebugLibraries>false</UseDebugLibraries> <UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization> <WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
@@ -4,7 +4,7 @@
<ConfigurationType>DynamicLibrary</ConfigurationType> <ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc> <UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet> <CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v141</PlatformToolset> <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" > <PropertyGroup Condition="'$(Configuration)'=='Debug'" >
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
@@ -4,7 +4,7 @@
<ConfigurationType>StaticLibrary</ConfigurationType> <ConfigurationType>StaticLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc> <UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet> <CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v141</PlatformToolset> <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" > <PropertyGroup Condition="'$(Configuration)'=='Debug'" >
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>