@@ -26,21 +26,20 @@ def get_recipe_env(self, arch):
2626 ensure_dir (liblink_path )
2727 return env
2828
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' )):
3131 info ('Pygame already patched, skipping.' )
3232 return
3333 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' ))
3535 self .apply_patch (join ('patches' , 'fix-surface-access.patch' ), arch .arch )
3636 self .apply_patch (join ('patches' , 'fix-array-surface.patch' ), arch .arch )
3737 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' ))
3939
40- def build_armeabi (self ):
40+ def build_arch (self , arch ):
4141 # AND: I'm going to ignore any extra pythonrecipe or cythonrecipe behaviour for now
4242
43- arch = ArchARM (self .ctx ) 4443 env = self .get_recipe_env (arch )
4544
4645 env ['CFLAGS' ] = env ['CFLAGS' ] + ' -I{jni_path}/png -I{jni_path}/jpeg' .format (
@@ -57,7 +56,7 @@ def build_armeabi(self):
5756
5857 env ['LDSHARED' ] = join (self .ctx .root_dir , 'tools' , 'liblink' )
5958
60- with current_directory (self .get_build_dir ('armeabi' )):
59+ with current_directory (self .get_build_dir (arch . arch )):
6160 info ('hostpython is ' + self .ctx .hostpython )
6261 hostpython = sh .Command (self .ctx .hostpython )
6362 shprint (hostpython , 'setup.py' , 'install' , '-O2' , _env = env ,
0 commit comments