Skip to content

Commit 4f3fcb8

Browse files
committed
Removed references to sdl from audiostream and genericndkbuild
1 parent 94abb96 commit 4f3fcb8

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

pythonforandroid/recipes/audiostream/__init__.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ class AudiostreamRecipe(CythonRecipe):
77
version = 'master'
88
url = 'https://github.com/kivy/audiostream/archive/{version}.zip'
99
name = 'audiostream'
10-
depends = [('python2', 'python3'), ('sdl', 'sdl2'), 'pyjnius']
10+
depends = [('python2', 'python3'), 'sdl2', 'pyjnius']
1111

1212
def get_recipe_env(self, arch):
1313
env = super(AudiostreamRecipe, self).get_recipe_env(arch)
14-
if 'sdl' in self.ctx.recipe_build_order:
15-
sdl_include = 'sdl'
16-
sdl_mixer_include = 'sdl_mixer'
17-
elif 'sdl2' in self.ctx.recipe_build_order:
18-
sdl_include = 'SDL2'
19-
sdl_mixer_include = 'SDL2_mixer'
20-
env['USE_SDL2'] = 'True'
21-
env['SDL2_INCLUDE_DIR'] = join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include')
14+
sdl_include = 'SDL2'
15+
sdl_mixer_include = 'SDL2_mixer'
16+
env['USE_SDL2'] = 'True'
17+
env['SDL2_INCLUDE_DIR'] = join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include')
2218

2319
env['CFLAGS'] += ' -I{jni_path}/{sdl_include}/include -I{jni_path}/{sdl_mixer_include}'.format(
2420
jni_path=join(self.ctx.bootstrap.build_dir, 'jni'),

pythonforandroid/recipes/genericndkbuild/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GenericNDKBuildRecipe(BootstrapNDKRecipe):
88
url = None
99

1010
depends = [('python2', 'python3', 'python3crystax')]
11-
conflicts = ['sdl2', 'sdl']
11+
conflicts = ['sdl2']
1212

1313
def should_build(self, arch):
1414
return True

0 commit comments

Comments
 (0)