-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsdl_linux.sh
executable file
·47 lines (39 loc) · 941 Bytes
/
sdl_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh
. ./common_linux.sh
# cmake autodetection should set SDL_VIDEO_OPENGL=ON/SDL_VIDEO_OPENGL_GLX=ON
# but cmake is a shithole build system so it doesn't and we have to do it
# manually here
flags="\
-DSDL_SHARED=OFF \
-DSDL_STATIC=ON \
-DSDL_TEST_LIBRARY=OFF
-DSDL_AUDIO=ON \
-DSDL_VIDEO=ON \
-DSDL_GPU=OFF \
-DSDL_RENDER=OFF \
-DSDL_CAMERA=OFF \
-DSDL_JOYSTICK=ON \
-DSDL_HAPTIC=OFF \
-DSDL_HIDAPI=OFF \
-DSDL_POWER=OFF \
-DSDL_SENSOR=OFF \
-DSDL_DIALOG=OFF \
-DSDL_DUMMYVIDEO=OFF \
-DSDL_OFFSCREEN=OFF \
-DSDL_OPENGL=ON \
-DSDL_OPENGLES=OFF \
-DSDL_VULKAN=OFF \
-DSDL_X11=ON \
-DSDL_WAYLAND=ON \
-DSDL_VIDEO_OPENGL=ON \
-DSDL_VIDEO_OPENGL_GLX=ON \
-DSDL_DUMMYAUDIO=OFF \
-DSDL_DISKAUDIO=OFF \
-DSDL_ALSA=ON \
-DSDL_JACK=OFF \
-DSDL_PULSEAUDIO=ON \
-DSDL_PIPEWIRE=ON"
EXTRA_PREBUILD_COMMANDS="patch -p1 -i ../sdl_linux.patch"
standard_cmake sdl SDL-3.2.4 "*.a" "$flags"
cp -r SDL-3.2.4/include/SDL3 build/sdl
rm -r sdlbuild