2022-12-02 21:15:34 +01:00
|
|
|
import os
|
|
|
|
|
2019-03-30 21:58:45 +01:00
|
|
|
from pythonforandroid.recipe import BootstrapNDKRecipe
|
2017-08-13 03:24:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
class LibSDL2Mixer(BootstrapNDKRecipe):
|
2022-12-02 21:15:34 +01:00
|
|
|
version = '2.6.2'
|
|
|
|
url = 'https://github.com/libsdl-org/SDL_mixer/releases/download/release-{version}/SDL2_mixer-{version}.tar.gz'
|
2017-08-13 03:24:00 +02:00
|
|
|
dir_name = 'SDL2_mixer'
|
|
|
|
|
2022-12-02 21:15:34 +01:00
|
|
|
def get_include_dirs(self, arch):
|
|
|
|
return [
|
|
|
|
os.path.join(self.ctx.bootstrap.build_dir, "jni", "SDL2_mixer", "include")
|
|
|
|
]
|
2017-08-13 03:24:00 +02:00
|
|
|
|
2019-03-30 21:58:45 +01:00
|
|
|
|
2017-08-13 03:24:00 +02:00
|
|
|
recipe = LibSDL2Mixer()
|