@@ -12,24 +12,32 @@ class Hostpython2Recipe(Recipe):
1212
1313 conflicts = ['hostpython3' ]
1414
15- def prebuild_armeabi (self ):
15+ def get_build_container_dir (self , arch = None ):
16+ choices = self .check_recipe_choices ()
17+ dir_name = '-' .join ([self .name ] + choices )
18+ return join (self .ctx .build_dir , 'other_builds' , dir_name , 'desktop' )
19+
20+ def get_build_dir (self , arch = None ):
21+ return join (self .get_build_container_dir (), self .name )
22+
23+ def prebuild_arch (self , arch ):
1624 # Override hostpython Setup?
1725 shprint (sh .cp , join (self .get_recipe_dir (), 'Setup' ),
1826 join (self .get_build_dir ('armeabi' ), 'Modules' , 'Setup' ))
1927
20- def build_armeabi (self ):
28+ def build_arch (self , arch ):
2129 # AND: Should use an i386 recipe system
2230 warning ('Running hostpython build. Arch is armeabi! '
2331 'This is naughty, need to fix the Arch system!' )
2432
2533 # AND: Fix armeabi again
26- with current_directory (self .get_build_dir ('armeabi' )):
34+ with current_directory (self .get_build_dir ()):
2735
2836 if exists ('hostpython' ):
2937 info ('hostpython already exists, skipping build' )
30- self .ctx .hostpython = join (self .get_build_dir ('armeabi' ),
38+ self .ctx .hostpython = join (self .get_build_dir (),
3139 'hostpython' )
32- self .ctx .hostpgen = join (self .get_build_dir ('armeabi' ),
40+ self .ctx .hostpgen = join (self .get_build_dir (),
3341 'hostpgen' )
3442 return
3543
@@ -49,8 +57,8 @@ def build_armeabi(self):
4957 'hostpython build! Exiting.' )
5058 exit (1 )
5159
52- self .ctx .hostpython = join (self .get_build_dir ('armeabi' ), 'hostpython' )
53- self .ctx .hostpgen = join (self .get_build_dir ('armeabi' ), 'hostpgen' )
60+ self .ctx .hostpython = join (self .get_build_dir (), 'hostpython' )
61+ self .ctx .hostpgen = join (self .get_build_dir (), 'hostpgen' )
5462
5563
5664recipe = Hostpython2Recipe ()
0 commit comments