Update Makefile and Build Docs from VS2017 to VS2019 (#3170)

* Update build.rst

* Update makefile
This commit is contained in:
Markus Stephanides 2023-09-03 21:06:01 +02:00 committed by GitHub
parent 98f16cd125
commit 17ab1e2a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 34 deletions

View File

@ -28,17 +28,17 @@ Enter bgfx directory:
cd bgfx cd bgfx
Generate Visual Studio 2017 project files: Generate Visual Studio 2019 project files:
:: ::
..\bx\tools\bin\windows\genie --with-examples vs2017 ..\bx\tools\bin\windows\genie --with-examples vs2019
Open bgfx solution in Visual Studio 2017: Open bgfx solution in Visual Studio 2019:
:: ::
start .build\projects\vs2017\bgfx.sln start .build\projects\vs2019\bgfx.sln
.. note:: For more detailed prerequisites and build steps on other platforms see below. .. note:: For more detailed prerequisites and build steps on other platforms see below.
@ -111,17 +111,17 @@ Configuration is ``<platform>-<debug/release>[32/64]``. For example:
Windows Windows
~~~~~~~ ~~~~~~~
Visual Studio 2017 command line: Visual Studio 2019 command line:
:: ::
make vs2017-release64 make vs2019-release64
Visual Studio 2017 IDE: Visual Studio 2019 IDE:
:: ::
start .build/projects/vs2017/bgfx.sln start .build/projects/vs2019/bgfx.sln
Xcode Xcode
~~~~~ ~~~~~
@ -162,7 +162,7 @@ WinRT / UWP
:: ::
..\bx\tools\bin\windows\genie --vs=winstore100 vs2017 ..\bx\tools\bin\windows\genie --vs=winstore100 vs2019
Build the resulting solution and deploy to device. Build the resulting solution and deploy to device.
@ -185,7 +185,7 @@ To build bgfx project files for tools, use ``--with-tools`` option:
:: ::
..\bx\tools\bin\windows\genie --with-tools vs2017 ..\bx\tools\bin\windows\genie --with-tools vs2019
Alternative build systems Alternative build systems

View File

@ -40,8 +40,8 @@ clean: ## Clean all intermediate files.
@mkdir .build @mkdir .build
projgen: ## Generate project files for all configurations. projgen: ## Generate project files for all configurations.
$(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2017 $(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2019
$(GENIE) --with-tools --with-combined-examples --vs=winstore100 vs2017 $(GENIE) --with-tools --with-combined-examples --vs=winstore100 vs2019
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=mingw-gcc gmake $(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=mingw-gcc gmake
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-gcc gmake $(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=linux-gcc gmake
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake $(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake
@ -156,29 +156,29 @@ mingw-clang-release64: .build/projects/gmake-mingw-clang ## Build - MinGW Clang
$(MAKE) -R -C .build/projects/gmake-mingw-clang config=release64 $(MAKE) -R -C .build/projects/gmake-mingw-clang config=release64
mingw-clang: mingw-clang-debug32 mingw-clang-release32 mingw-clang-debug64 mingw-clang-release64 ## Build - MinGW Clang x86/x64 Debug and Release mingw-clang: mingw-clang-debug32 mingw-clang-release32 mingw-clang-debug64 mingw-clang-release64 ## Build - MinGW Clang x86/x64 Debug and Release
.build/projects/vs2017: .build/projects/vs2019:
$(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2017 $(GENIE) --with-tools --with-combined-examples --with-shared-lib vs2019
vs2017-debug32: .build/projects/vs2017 ## Build - vs2017 x86 Debug vs2019-debug32: .build/projects/vs2019 ## Build - vs2019 x86 Debug
devenv .build/projects/vs2017/bgfx.sln /Build "Debug|Win32" devenv .build/projects/vs2019/bgfx.sln /Build "Debug|Win32"
vs2017-release32: .build/projects/vs2017 ## Build - vs2017 x86 Release vs2019-release32: .build/projects/vs2019 ## Build - vs2019 x86 Release
devenv .build/projects/vs2017/bgfx.sln /Build "Release|Win32" devenv .build/projects/vs2019/bgfx.sln /Build "Release|Win32"
vs2017-debug64: .build/projects/vs2017 ## Build - vs2017 x64 Debug vs2019-debug64: .build/projects/vs2019 ## Build - vs2019 x64 Debug
devenv .build/projects/vs2017/bgfx.sln /Build "Debug|x64" devenv .build/projects/vs2019/bgfx.sln /Build "Debug|x64"
vs2017-release64: .build/projects/vs2017 ## Build - vs2017 x64 Release vs2019-release64: .build/projects/vs2019 ## Build - vs2019 x64 Release
devenv .build/projects/vs2017/bgfx.sln /Build "Release|x64" devenv .build/projects/vs2019/bgfx.sln /Build "Release|x64"
vs2017: vs2017-debug32 vs2017-release32 vs2017-debug64 vs2017-release64 ## Build - vs2017 x86/x64 Debug and Release vs2019: vs2019-debug32 vs2019-release32 vs2019-debug64 vs2019-release64 ## Build - vs2019 x86/x64 Debug and Release
.build/projects/vs2017-winstore100: .build/projects/vs2019-winstore100:
$(GENIE) --with-combined-examples --vs=winstore100 vs2017 $(GENIE) --with-combined-examples --vs=winstore100 vs2019
vs2017-winstore100-debug32: .build/projects/vs2017-winstore100 ## Build - vs2017-winstore100 x86 Debug vs2019-winstore100-debug32: .build/projects/vs2019-winstore100 ## Build - vs2019-winstore100 x86 Debug
devenv .build/projects/vs2017-winstore100/bgfx.sln /Build "Debug|Win32" devenv .build/projects/vs2019-winstore100/bgfx.sln /Build "Debug|Win32"
vs2017-winstore100-release32: .build/projects/vs2017-winstore100 ## Build - vs2017-winstore100 x86 Release vs2019-winstore100-release32: .build/projects/vs2019-winstore100 ## Build - vs2019-winstore100 x86 Release
devenv .build/projects/vs2017-winstore100/bgfx.sln /Build "Release|Win32" devenv .build/projects/vs2019-winstore100/bgfx.sln /Build "Release|Win32"
vs2017-winstore100-debug64: .build/projects/vs2017-winstore100 ## Build - vs2017-winstore100 x64 Debug vs2019-winstore100-debug64: .build/projects/vs2019-winstore100 ## Build - vs2019-winstore100 x64 Debug
devenv .build/projects/vs2017-winstore100/bgfx.sln /Build "Debug|x64" devenv .build/projects/vs2019-winstore100/bgfx.sln /Build "Debug|x64"
vs2017-winstore100-release64: .build/projects/vs2017-winstore100 ## Build - vs2017-winstore100 x64 Release vs2019-winstore100-release64: .build/projects/vs2019-winstore100 ## Build - vs2019-winstore100 x64 Release
devenv .build/projects/vs2017-winstore100/bgfx.sln /Build "Release|x64" devenv .build/projects/vs2019-winstore100/bgfx.sln /Build "Release|x64"
vs2017-winstore100: vs2017-winstore100-debug32 vs2017-winstore100-release32 vs2017-winstore100-debug64 vs2017-winstore100-release64 ## Build - vs2017-winstore100 x86/x64 Debug and Release vs2019-winstore100: vs2019-winstore100-debug32 vs2019-winstore100-release32 vs2019-winstore100-debug64 vs2019-winstore100-release64 ## Build - vs2019-winstore100 x86/x64 Debug and Release
.build/projects/gmake-osx-x64: .build/projects/gmake-osx-x64:
$(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake $(GENIE) --with-tools --with-combined-examples --with-shared-lib --gcc=osx-x64 gmake