kivy-ios/recipes/sdl2/__init__.py
Mathieu Virbel e51be2eec8 toolchain: handle addition of frameworks/libraries within the Xcode project depending of the compiled recipes.
Done automatically during the creation time, or use the update command
2015-02-23 11:34:36 +01:00

26 lines
831 B
Python

from toolchain import Recipe, shprint
import sh
class LibSDL2Recipe(Recipe):
#version = "2.0.3"
#url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz"
version = "iOS-improvements"
url = "https://bitbucket.org/slime73/sdl-experiments/get/{version}.tar.gz"
library = "Xcode-iOS/SDL/build/Release-{arch.sdk}/libSDL2.a"
include_dir = "include"
pbx_frameworks = ["OpenGLES", "AudioToolbox", "QuartzCore", "CoreGraphics",
"CoreMotion"]
def build_arch(self, arch):
shprint(sh.xcodebuild,
"ONLY_ACTIVE_ARCH=NO",
"ARCHS={}".format(arch.arch),
"-sdk", arch.sdk,
"-project", "Xcode-iOS/SDL/SDL.xcodeproj",
"-target", "libSDL",
"-configuration", "Release")
recipe = LibSDL2Recipe()