Skip to content

Commit

Permalink
Start porting to SDL2-2.0.20.
Browse files Browse the repository at this point in the history
Windows/Mac/Linux work. Android doesn't, iOS is unknown.
  • Loading branch information
renpytom committed Mar 6, 2022
1 parent fb48c8b commit 20606db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Binary file added source/SDL2-2.0.20.tar.gz
Binary file not shown.
17 changes: 5 additions & 12 deletions tasks/sdl2.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from renpybuild.model import task, annotator
import shutil

version = "2.0.14"
version = "2.0.20"


@annotator
def annotate(c):
c.include("{{ install }}/include/SDL2")
if c.name != "sdl2":
c.include("{{ install }}/include/SDL2")



@task()
Expand All @@ -20,16 +22,7 @@ def unpack(c):
c.run("tar xzf {{source}}/SDL2-{{version}}.tar.gz")

c.chdir("SDL2-{{version}}")
c.patch("sdl2-dinput.diff")
c.patch("sdl2-no-android-hid.diff")
c.patch("sdl2-mac-fix-toggle-fullscreen.diff")
c.patch("sdl2-windows-ime.diff")
c.patch("sdl2-no-android-device-sizes.diff")
c.patch("sdl2-chromebook-mouse.diff")

if c.platform == "ios":
c.patch("sdl2-ios-configure.diff")
c.run("./autogen.sh")
c.patchdir("SDL2-{{version}}")


@task()
Expand Down

0 comments on commit 20606db

Please sign in to comment.