diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/build-scripts/pkg-support/mingw | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/build-scripts/pkg-support/mingw')
| -rw-r--r-- | contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/INSTALL.md.in | 53 | ||||
| -rw-r--r-- | contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/Makefile | 39 |
2 files changed, 92 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/INSTALL.md.in b/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/INSTALL.md.in new file mode 100644 index 0000000..f1a6a78 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/INSTALL.md.in | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | |||
| 2 | # Using this package | ||
| 3 | |||
| 4 | This package contains @<@PROJECT_NAME@>@ built for the mingw-w64 toolchain. | ||
| 5 | |||
| 6 | The files for 32-bit architecture are in i686-w64-mingw32 | ||
| 7 | The files for 64-bit architecture are in x86_64-w64-mingw32 | ||
| 8 | |||
| 9 | You can install them to another location, just type `make` for help. | ||
| 10 | |||
| 11 | 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. | ||
| 12 | |||
| 13 | e.g. | ||
| 14 | ```sh | ||
| 15 | gcc -o hello.exe hello.c -Ix86_64-w64-mingw32/include -Lx86_64-w64-mingw32/lib -l@<@PROJECT_NAME@>@ | ||
| 16 | cp x86_64-w64-mingw32/bin/@<@PROJECT_NAME@>@.dll . | ||
| 17 | ./hello.exe | ||
| 18 | ``` | ||
| 19 | |||
| 20 | # Documentation | ||
| 21 | |||
| 22 | An API reference, tutorials, and additional documentation is available at: | ||
| 23 | |||
| 24 | https://wiki.libsdl.org/@<@PROJECT_NAME@>@ | ||
| 25 | |||
| 26 | # Example code | ||
| 27 | |||
| 28 | There are simple example programs available at: | ||
| 29 | |||
| 30 | https://examples.libsdl.org/SDL3 | ||
| 31 | |||
| 32 | # Discussions | ||
| 33 | |||
| 34 | ## Discord | ||
| 35 | |||
| 36 | You can join the official Discord server at: | ||
| 37 | |||
| 38 | https://discord.com/invite/BwpFGBWsv8 | ||
| 39 | |||
| 40 | ## Forums/mailing lists | ||
| 41 | |||
| 42 | You can join SDL development discussions at: | ||
| 43 | |||
| 44 | https://discourse.libsdl.org/ | ||
| 45 | |||
| 46 | Once you sign up, you can use the forum through the website or as a mailing list from your email client. | ||
| 47 | |||
| 48 | ## Announcement list | ||
| 49 | |||
| 50 | You can sign up for the low traffic announcement list at: | ||
| 51 | |||
| 52 | https://www.libsdl.org/mailing-list.php | ||
| 53 | |||
diff --git a/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/Makefile b/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/Makefile new file mode 100644 index 0000000..9b6cd55 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/pkg-support/mingw/Makefile | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | # | ||
| 2 | # Makefile for installing the mingw32 version of the SDL library | ||
| 3 | |||
| 4 | DESTDIR = /usr/local | ||
| 5 | ARCHITECTURES := i686-w64-mingw32 x86_64-w64-mingw32 | ||
| 6 | |||
| 7 | default: | ||
| 8 | @echo "Run \"make install-i686\" to install 32-bit" | ||
| 9 | @echo "Run \"make install-x86_64\" to install 64-bit" | ||
| 10 | @echo "Run \"make install-all\" to install both" | ||
| 11 | @echo "Add DESTDIR=/custom/path to change the destination folder" | ||
| 12 | |||
| 13 | install: | ||
| 14 | @if test -d $(ARCH) && test -d $(DESTDIR); then \ | ||
| 15 | (cd $(ARCH) && cp -rv bin include lib share $(DESTDIR)/); \ | ||
| 16 | else \ | ||
| 17 | echo "*** ERROR: $(ARCH) or $(DESTDIR) does not exist!"; \ | ||
| 18 | exit 1; \ | ||
| 19 | fi | ||
| 20 | |||
| 21 | install-i686: | ||
| 22 | $(MAKE) install ARCH=i686-w64-mingw32 | ||
| 23 | |||
| 24 | install-x86_64: | ||
| 25 | $(MAKE) install ARCH=x86_64-w64-mingw32 | ||
| 26 | |||
| 27 | install-all: | ||
| 28 | @if test -d $(DESTDIR); then \ | ||
| 29 | mkdir -p $(DESTDIR)/cmake; \ | ||
| 30 | cp -rv cmake/* $(DESTDIR)/cmake; \ | ||
| 31 | for arch in $(ARCHITECTURES); do \ | ||
| 32 | $(MAKE) install ARCH=$$arch DESTDIR=$(DESTDIR)/$$arch; \ | ||
| 33 | done \ | ||
| 34 | else \ | ||
| 35 | echo "*** ERROR: $(DESTDIR) does not exist!"; \ | ||
| 36 | exit 1; \ | ||
| 37 | fi | ||
| 38 | |||
| 39 | .PHONY: default install install-i686 install-x86_64 install-all | ||
