Skip to content

Commit 998b937

Browse files
committed
feature: add SDL2
1 parent d94926b commit 998b937

File tree

10 files changed

+188
-0
lines changed

10 files changed

+188
-0
lines changed

src/sdl/SDL2/bin/SDL2.dll

2.41 MB
Binary file not shown.

src/sdl/SDL2/bin/sdl2-config

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/bin/sh
2+
3+
# Get the canonical path of the folder containing this script
4+
bindir=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
5+
6+
# Calculate the canonical path of the prefix, relative to the folder of this script
7+
prefix=$(cd -P -- "$bindir/.." && printf '%s\n' "$(pwd -P)")
8+
exec_prefix=${prefix}
9+
exec_prefix_set=no
10+
libdir=${exec_prefix}/lib
11+
12+
#usage="\
13+
#Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
14+
usage="\
15+
Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
16+
17+
if test $# -eq 0; then
18+
echo "${usage}" 1>&2
19+
exit 1
20+
fi
21+
22+
while test $# -gt 0; do
23+
case "$1" in
24+
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
25+
*) optarg= ;;
26+
esac
27+
28+
case $1 in
29+
--prefix=*)
30+
prefix=$optarg
31+
if test $exec_prefix_set = no ; then
32+
exec_prefix=$optarg
33+
fi
34+
;;
35+
--prefix)
36+
echo $prefix
37+
;;
38+
--exec-prefix=*)
39+
exec_prefix=$optarg
40+
exec_prefix_set=yes
41+
;;
42+
--exec-prefix)
43+
echo $exec_prefix
44+
;;
45+
--version)
46+
echo 2.30.5
47+
;;
48+
--cflags)
49+
echo -I${prefix}/include/SDL2 -Dmain=SDL_main
50+
;;
51+
--libs)
52+
echo -L${exec_prefix}/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
53+
;;
54+
--static-libs)
55+
# --libs|--static-libs)
56+
sdl_static_libs=$(echo "-lmingw32 -lSDL2main -lSDL2 -mwindows -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid" | sed -E "s#-lSDL2[ $]#$libdir/libSDL2.a #g")
57+
echo -L${exec_prefix}/lib $sdl_static_libs
58+
;;
59+
*)
60+
echo "${usage}" 1>&2
61+
exit 1
62+
;;
63+
esac
64+
shift
65+
done
1.91 MB
Binary file not shown.

src/sdl/SDL2/lib/libSDL2.a

21.2 MB
Binary file not shown.

src/sdl/SDL2/lib/libSDL2.dll.a

540 KB
Binary file not shown.

src/sdl/SDL2/lib/libSDL2.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libSDL2.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname='../bin/SDL2.dll'
9+
10+
# Names of this library.
11+
library_names='libSDL2.dll.a'
12+
13+
# The name of the static archive.
14+
old_library='libSDL2.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libSDL2.
26+
current=3000
27+
age=3000
28+
revision=5
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/Users/valve/release/SDL2/SDL2-2.30.5/x86_64-w64-mingw32/lib'

src/sdl/SDL2/lib/libSDL2_test.a

645 KB
Binary file not shown.

src/sdl/SDL2/lib/libSDL2_test.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libSDL2_test.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libSDL2_test.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=''
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libSDL2_test.
26+
current=0
27+
age=0
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/Users/valve/release/SDL2/SDL2-2.30.5/x86_64-w64-mingw32/lib'

src/sdl/SDL2/lib/libSDL2main.a

9.26 KB
Binary file not shown.

src/sdl/SDL2/lib/libSDL2main.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libSDL2main.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libSDL2main.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=''
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libSDL2main.
26+
current=0
27+
age=0
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/Users/valve/release/SDL2/SDL2-2.30.5/x86_64-w64-mingw32/lib'

0 commit comments

Comments
 (0)