@@ -12,24 +12,32 @@ class Hostpython2Recipe(Recipe):
12
12
13
13
conflicts = ['hostpython3' ]
14
14
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 ):
16
24
# Override hostpython Setup?
17
25
shprint (sh .cp , join (self .get_recipe_dir (), 'Setup' ),
18
26
join (self .get_build_dir ('armeabi' ), 'Modules' , 'Setup' ))
19
27
20
- def build_armeabi (self ):
28
+ def build_arch (self , arch ):
21
29
# AND: Should use an i386 recipe system
22
30
warning ('Running hostpython build. Arch is armeabi! '
23
31
'This is naughty, need to fix the Arch system!' )
24
32
25
33
# AND: Fix armeabi again
26
- with current_directory (self .get_build_dir ('armeabi' )):
34
+ with current_directory (self .get_build_dir ()):
27
35
28
36
if exists ('hostpython' ):
29
37
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 (),
31
39
'hostpython' )
32
- self .ctx .hostpgen = join (self .get_build_dir ('armeabi' ),
40
+ self .ctx .hostpgen = join (self .get_build_dir (),
33
41
'hostpgen' )
34
42
return
35
43
@@ -49,8 +57,8 @@ def build_armeabi(self):
49
57
'hostpython build! Exiting.' )
50
58
exit (1 )
51
59
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' )
54
62
55
63
56
64
recipe = Hostpython2Recipe ()
0 commit comments