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

@@ -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[] )
{