Fix building SDL for iOS

This commit is contained in:
ゾロアーク 2020-11-26 00:30:37 -05:00
parent 5a4143298b
commit ead4088c88
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
SDK := iphoneos
ARCH := armv7
HOST := $(ARCH)-iphone-darwin
HOST := $(ARCH)-ios-darwin
MINIMUM_REQUIRED := 10.0
SDL_FLAGS := ${SDL_FLAGS}

View file

@ -172,8 +172,7 @@ $(DOWNLOADS)/sdl2/configure: $(DOWNLOADS)/sdl2/autogen.sh
cd $(DOWNLOADS)/sdl2; ./autogen.sh
$(DOWNLOADS)/sdl2/autogen.sh:
$(CLONE) $(GITHUB)/SDL-mirror/SDL $(DOWNLOADS)/sdl2; \
cd $(DOWNLOADS)/sdl2; git checkout 49052b8a81be445eb178be5270db6b3ed140d9f5
$(CLONE) $(GITLAB)/mkxp-z/SDL $(DOWNLOADS)/sdl2 -b mkxp-z; cd $(DOWNLOADS)/sdl2
# SDL2 (Image)
sdl2image: init_dirs sdl2 libpng libjpeg $(LIBDIR)/libSDL2_image.a
@ -277,7 +276,7 @@ custom-ruby-configure: $(RUBY_PATH)/*.c
# ====
init_dirs:
mkdir -p $(LIBDIR) $(INCLUDEDIR)
@mkdir -p $(LIBDIR) $(INCLUDEDIR)
clean: clean-compiled