@@ -533,12 +533,13 @@ class ArchARM(Arch):
533
533
arch = "armeabi"
534
534
535
535
class ArchARMv7_a (ArchARM ):
536
- arch = 'armeabi-v7 '
536
+ arch = 'armeabi-v7a '
537
537
538
538
def get_env (self ):
539
539
env = super (ArchARMv7_a , self ).get_env ()
540
540
env ['CFLAGS' ] = env ['CFLAGS' ] + ' -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb'
541
541
env ['CXXFLAGS' ] = env ['CFLAGS' ]
542
+ return env
542
543
543
544
class Archx86 (Arch ):
544
545
arch = 'x86'
@@ -1918,7 +1919,7 @@ def unpack(self, arch):
1918
1919
ensure_dir (build_dir )
1919
1920
# shprint(sh.ln, '-s', user_dir,
1920
1921
# join(build_dir, get_directory(self.versioned_url)))
1921
- shprint (sh .git , 'clone' , user_dir , self .get_build_dir ('armeabi' ))
1922
+ shprint (sh .git , 'clone' , user_dir , self .get_build_dir (arch ))
1922
1923
return
1923
1924
1924
1925
if self .url is None :
@@ -2225,16 +2226,16 @@ def build_arch(self, arch):
2225
2226
'''Install the Python module by calling setup.py install with
2226
2227
the target Python dir.'''
2227
2228
super (PythonRecipe , self ).build_arch (arch )
2228
- self .install_python_package ()
2229
+ self .install_python_package (arch )
2229
2230
# @cache_execution
2230
2231
# def install(self):
2231
2232
# self.install_python_package()
2232
2233
# self.reduce_python_package()
2233
2234
2234
- def install_python_package (self , name = None , env = None , is_dir = True ):
2235
+ def install_python_package (self , arch , name = None , env = None , is_dir = True ):
2235
2236
'''Automate the installation of a Python package (or a cython
2236
2237
package where the cython components are pre-built).'''
2237
- arch = self .filtered_archs [0 ]
2238
+ # arch = self.filtered_archs[0] # old kivy-ios way
2238
2239
if name is None :
2239
2240
name = self .name
2240
2241
if env is None :
@@ -2276,7 +2277,7 @@ def build_arch(self, arch):
2276
2277
# # after everything else but isn't
2277
2278
# # used by a normal recipe.
2278
2279
self .build_compiled_components (arch )
2279
- self .install_python_package ()
2280
+ self .install_python_package (arch )
2280
2281
2281
2282
def build_compiled_components (self , arch ):
2282
2283
info ('Building compiled components in {}' .format (self .name ))
@@ -2305,7 +2306,7 @@ def build_arch(self, arch):
2305
2306
# # after everything else but isn't
2306
2307
# # used by a normal recipe.
2307
2308
self .build_cython_components (arch )
2308
- self .install_python_package ()
2309
+ self .install_python_package (arch )
2309
2310
2310
2311
def build_cython_components (self , arch ):
2311
2312
# AND: Should we use tito's cythonize methods? How do they work?
@@ -2322,7 +2323,7 @@ def build_cython_components(self, arch):
2322
2323
info ('{} first build failed (as expected)' .format (self .name ))
2323
2324
2324
2325
info ('Running cython where appropriate' )
2325
- shprint (sh .find , self .get_build_dir ('armeabi' ), '-iname' , '*.pyx' ,
2326
+ shprint (sh .find , self .get_build_dir (arch . arch ), '-iname' , '*.pyx' ,
2326
2327
'-exec' , self .ctx .cython , '{}' , ';' , _env = env )
2327
2328
info ('ran cython' )
2328
2329
@@ -2490,6 +2491,7 @@ def biglink(ctx, arch):
2490
2491
2491
2492
# AND: Shouldn't hardcode Arch! In reality need separate
2492
2493
# build dirs for each arch
2494
+ raise ValueError ('hardcoded Arch to fix!' )
2493
2495
arch = ArchARM (ctx )
2494
2496
env = ArchARM (ctx ).get_env ()
2495
2497
env ['LDFLAGS' ] = env ['LDFLAGS' ] + ' -L{}' .format (
0 commit comments