@@ -26,21 +26,20 @@ def get_recipe_env(self, arch):
26
26
ensure_dir (liblink_path )
27
27
return env
28
28
29
- def prebuild_armeabi (self ):
30
- if exists (join (self .get_build_container_dir ('armeabi' ), '.patched' )):
29
+ def prebuild_arch (self , arch ):
30
+ if exists (join (self .get_build_container_dir (arch . arch ), '.patched' )):
31
31
info ('Pygame already patched, skipping.' )
32
32
return
33
33
shprint (sh .cp , join (self .get_recipe_dir (), 'Setup' ),
34
- join (self .get_build_dir ('armeabi' ), 'Setup' ))
34
+ join (self .get_build_dir (arch . arch ), 'Setup' ))
35
35
self .apply_patch (join ('patches' , 'fix-surface-access.patch' ), arch .arch )
36
36
self .apply_patch (join ('patches' , 'fix-array-surface.patch' ), arch .arch )
37
37
self .apply_patch (join ('patches' , 'fix-sdl-spam-log.patch' ), arch .arch )
38
- shprint (sh .touch , join (self .get_build_container_dir ('armeabi' ), '.patched' ))
38
+ shprint (sh .touch , join (self .get_build_container_dir (arch . arch ), '.patched' ))
39
39
40
- def build_armeabi (self ):
40
+ def build_arch (self , arch ):
41
41
# AND: I'm going to ignore any extra pythonrecipe or cythonrecipe behaviour for now
42
42
43
- arch = ArchARM (self .ctx )
44
43
env = self .get_recipe_env (arch )
45
44
46
45
env ['CFLAGS' ] = env ['CFLAGS' ] + ' -I{jni_path}/png -I{jni_path}/jpeg' .format (
@@ -57,7 +56,7 @@ def build_armeabi(self):
57
56
58
57
env ['LDSHARED' ] = join (self .ctx .root_dir , 'tools' , 'liblink' )
59
58
60
- with current_directory (self .get_build_dir ('armeabi' )):
59
+ with current_directory (self .get_build_dir (arch . arch )):
61
60
info ('hostpython is ' + self .ctx .hostpython )
62
61
hostpython = sh .Command (self .ctx .hostpython )
63
62
shprint (hostpython , 'setup.py' , 'install' , '-O2' , _env = env ,
0 commit comments