Use templates for the package support files

This makes them more easy to reuse in other projects.
This commit is contained in:
Sam Lantinga 2025-01-22 10:11:46 -08:00
parent 1c008d8ed0
commit 44edbf7137
4 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
# Using this package # Using this package
This package contains SDL built for the Android platform. This package contains @<@PROJECT_NAME@>@ built for the Android platform.
## Gradle integration ## Gradle integration
@ -59,7 +59,7 @@ Add `--help` for a list of all available options.
An API reference, tutorials, and additional documentation is available at: An API reference, tutorials, and additional documentation is available at:
https://wiki.libsdl.org/SDL3 https://wiki.libsdl.org/@<@PROJECT_NAME@>@
# Example code # Example code

View File

@ -1,19 +1,19 @@
# Using this package # Using this package
This package contains SDL built for the mingw-w64 toolchain. This package contains @<@PROJECT_NAME@>@ built for the mingw-w64 toolchain.
The files for 32-bit architecture are in i686-w64-mingw32 The files for 32-bit architecture are in i686-w64-mingw32
The files for 64-bit architecture are in x86_64-w64-mingw32 The files for 64-bit architecture are in x86_64-w64-mingw32
You can install them to another location, just type `make` for help. You can install them to another location, just type `make` for help.
To use this package, point your include path at _arch_/include and your library path at _arch_/lib, link with the SDL3 library and copy _arch_/bin/SDL3.dll next to your executable. To use this package, point your include path at _arch_/include and your library path at _arch_/lib, link with the @<@PROJECT_NAME@>@ library and copy _arch_/bin/@<@PROJECT_NAME@>@.dll next to your executable.
e.g. e.g.
```sh ```sh
gcc -o hello.exe hello.c -Ix86_64-w64-mingw32/include -Lx86_64-w64-mingw32/lib -lSDL3 gcc -o hello.exe hello.c -Ix86_64-w64-mingw32/include -Lx86_64-w64-mingw32/lib -l@<@PROJECT_NAME@>@
cp x86_64-w64-mingw32/bin/SDL3.dll . cp x86_64-w64-mingw32/bin/@<@PROJECT_NAME@>@.dll .
./hello.exe ./hello.exe
``` ```
@ -21,7 +21,7 @@ cp x86_64-w64-mingw32/bin/SDL3.dll .
An API reference, tutorials, and additional documentation is available at: An API reference, tutorials, and additional documentation is available at:
https://wiki.libsdl.org/SDL3 https://wiki.libsdl.org/@<@PROJECT_NAME@>@
# Example code # Example code

View File

@ -1,19 +1,19 @@
# Using this package # Using this package
This package contains SDL built for Visual Studio. This package contains @<@PROJECT_NAME@>@ built for Visual Studio.
To use this package, edit your project properties: To use this package, edit your project properties:
- Add the include directory to "VC++ Directories" -> "Include Directories" - Add the include directory to "VC++ Directories" -> "Include Directories"
- Add the lib/_arch_ directory to "VC++ Directories" -> "Library Directories" - Add the lib/_arch_ directory to "VC++ Directories" -> "Library Directories"
- Add SDL3.lib to Linker -> Input -> "Additional Dependencies" - Add @<@PROJECT_NAME@>@.lib to Linker -> Input -> "Additional Dependencies"
- Copy lib/_arch_/SDL3.dll to your project directory. - Copy lib/_arch_/@<@PROJECT_NAME@>@.dll to your project directory.
# Documentation # Documentation
An API reference, tutorials, and additional documentation is available at: An API reference, tutorials, and additional documentation is available at:
https://wiki.libsdl.org/SDL3 https://wiki.libsdl.org/@<@PROJECT_NAME@>@
# Example code # Example code

View File

@ -45,7 +45,7 @@
}, },
"files": { "files": {
"": [ "": [
"build-scripts/pkg-support/mingw/INSTALL.md", "build-scripts/pkg-support/mingw/INSTALL.md.in:INSTALL.md",
"build-scripts/pkg-support/mingw/Makefile", "build-scripts/pkg-support/mingw/Makefile",
"LICENSE.txt", "LICENSE.txt",
"README.md" "README.md"
@ -117,7 +117,7 @@
}, },
"files-devel": { "files-devel": {
"": [ "": [
"build-scripts/pkg-support/msvc/INSTALL.md", "build-scripts/pkg-support/msvc/INSTALL.md.in:INSTALL.md",
"LICENSE.txt", "LICENSE.txt",
"README.md" "README.md"
], ],