#NEWLINE# def execute_build_package( self , build_cmd ) : #NEWLINE# #INDENT# dist_name = self . buildozer . config . get ( 'app' , 'package.name' ) #NEWLINE# cmd = [ self . p4a_apk_cmd , '--dist_name' , dist_name ] #NEWLINE# for args in build_cmd : #NEWLINE# #INDENT# ( option , values ) = ( args [ 0 ] , args [ 1 : ] ) #NEWLINE# if ( option == 'debug' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self == 'release' ) : #NEWLINE# #INDENT# cmd . append ( '--release' ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# if ( option == '--window' ) : #NEWLINE# #INDENT# cmd . append ( '--window' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( option == '--sdk' ) : #NEWLINE# #INDENT# cmd . append ( '--android_api' ) #NEWLINE# cmd . extend ( values ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmd . extend ( args ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# services = self . buildozer . config . getlist ( 'app' , 'services' , [ ] ) #NEWLINE# for service in services : #NEWLINE# #INDENT# cmd . append ( '--service' ) #NEWLINE# cmd . append ( service ) #NEWLINE# #UNINDENT# if self . buildozer . config . getbooldefault ( 'app' , 'android.copy_libs' , True ) : #NEWLINE# #INDENT# cmd . append ( '--copy-libs' ) #NEWLINE# #UNINDENT# cmd = ' ' . join ( cmd ) #NEWLINE# self . _p4a ( cmd )