Remove SDL_main from VS Solutions in VisualC/ and VisualC-GDK/

and update README-visualc.md and README-gdk.md accordingly

Also moved src/main/windows/version.rc to src/core/windows/
and adjusted VS solutions, CMakeLists.txt and versioning scripts
in build-scripts/ accordingly.

This will eventually allow us to remove all of src/main/

# Conflicts:
#	VisualC/tests/testgesture/testgesture.vcxproj
This commit is contained in:
Daniel Gibson
2022-12-15 05:59:27 +01:00
committed by Sam Lantinga
parent 28b93451dc
commit 2aee3e654d
41 changed files with 82 additions and 627 deletions

View File

@@ -53,7 +53,7 @@ These steps assume you already have a game using SDL that runs on Windows x64 al
In your game's existing Visual Studio Solution, go to Build > Configuration Manager. From the "Active solution platform" drop-down select "New...". From the drop-down list, select Gaming.Desktop.x64 and copy the settings from the x64 configuration.
### 2. Build SDL3 and SDL3_main for GDK ###
### 2. Build SDL3 for GDK ###
Open `VisualC-GDK/SDL.sln` in Visual Studio, you need to build the SDL3 target for the Gaming.Desktop.x64 platform (Release is recommended). You will need to copy/keep track of the `SDL3.dll`, `XCurl.dll` (which is output by Gaming.Desktop.x64), and `SDL3.lib` output files for your game project.

View File

@@ -29,7 +29,6 @@ Later, we will refer to the following `.lib` and `.dll` files that have just bee
- `./VisualC/Win32/Debug/SDL3.dll` or `./VisualC/Win32/Release/SDL3.dll`
- `./VisualC/Win32/Debug/SDL3.lib` or `./VisualC/Win32/Release/SDL3.lib`
- `./VisualC/Win32/Debug/SDL3_main.lib` or `./VisualC/Win32/Release/SDL3_main.lib`
_Note for the `x64` versions, just replace `Win32` in the path with `x64`_
@@ -61,10 +60,9 @@ Copy the following file into your Project directory:
- `SDL3.dll`
Add the following files to your project (It is not necessary to copy them to your project directory):
Add the following file to your project (It is not necessary to copy it to your project directory):
- `SDL3.lib`
- `SDL3_main.lib`
To add them to your project, right click on your project, and select
`Add files to project`.
@@ -78,7 +76,8 @@ and type the names of the libraries to link with in the "Additional Options:" bo
Here's a sample SDL snippet to verify everything is setup in your IDE:
```
#include "SDL.h"
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h> // only include this one in the source file with main()!
int main( int argc, char* argv[] )
{