#NEWLINE# def build_arch( self , arch ) : #NEWLINE# #INDENT# if exists ( join ( self . ctx . libs_dir , 'libsdl.so' ) ) : #NEWLINE# #INDENT# info ( 'libsdl.so already exists, skipping sdl build.' ) #NEWLINE# return #NEWLINE# #UNINDENT# env = arch . get_env ( ) #NEWLINE# with current_directory ( self . get_jni_dir ( ) ) : #NEWLINE# #INDENT# shprint ( sh . ndk_build , 'V=1' , _env = env , _tail = 20 , _critical = True ) #NEWLINE# #UNINDENT# libs_dir = join ( self . ctx . bootstrap . build_dir , 'libs' , libs_dir . arch ) #NEWLINE# import os #NEWLINE# contents = list ( os . walk ( libs_dir ) ) [ 0 ] [ ( - 1 ) ] #NEWLINE# for content in contents : #NEWLINE# #INDENT# shprint ( sh . cp , '-a' , join ( self . ctx . bootstrap . build_dir , 'libs' , arch . arch , content ) , self . ctx . libs_dir )