Skip to content

Commit 427c70b

Browse files
authored
Merge pull request #196 from Wolf3s/SDL2_net
Add SDL_net
2 parents c884a21 + e17f249 commit 427c70b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-cmakelibs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ $FETCH 1.7.1 https://github.com/fjtrujy/ps2_drivers &
111111
$FETCH release-2.32.10 https://github.com/libsdl-org/SDL.git &
112112
$FETCH release-2.8.1 https://github.com/libsdl-org/SDL_mixer.git &
113113
$FETCH release-2.8.8 https://github.com/libsdl-org/SDL_image.git &
114+
$FETCH release-2.2.0 https://github.com/libsdl-org/SDL_net.git
114115
$FETCH release-2.24.0 https://github.com/libsdl-org/SDL_ttf.git &
115116

116117
$FETCH libsmb2-6.2 https://github.com/sahlberg/libsmb2.git &
@@ -160,6 +161,10 @@ sed -i -e 's/defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__
160161
sed -i -e 's/defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L/0 \&\& \0/' libarchive/xxhash.c
161162
popd
162163

164+
pushd build/SDL_net
165+
sed -i -e 's|#include <net/if.h>||' SDLnetsys.h
166+
popd
167+
163168
###
164169
### Change to the build folder
165170
###
@@ -201,6 +206,7 @@ build_ee gsKit -DCMAKE_POLICY_VERSION_MINIMUM=3.5
201206
build_ee ps2_drivers -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DBUILD_SAMPLES=OFF
202207
build_ee SDL -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL_TESTS=OFF
203208
build_ee SDL_mixer -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2MIXER_DEPS_SHARED=OFF -DSDL2MIXER_MOD_MODPLUG=ON -DSDL2MIXER_OPUS=OFF -DSDL2MIXER_WAVPACK=OFF -DSDL2MIXER_MIDI=OFF -DSDL2MIXER_FLAC=OFF -DSDL2MIXER_SAMPLES=OFF
209+
build_ee SDL_net -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2NET_SAMPLES=OFF
204210
build_ee SDL_image -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2IMAGE_TIF=OFF
205211
build_ee SDL_ttf -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2TTF_SAMPLES=OFF
206212

0 commit comments

Comments
 (0)