MCPcopy Index your code
hub / github.com/kivy/python-for-android / distribute_libs

Method distribute_libs

pythonforandroid/bootstrap.py:369–377  ·  view source on GitHub ↗

Copy existing arch libs from build dirs to current dist dir.

(self, arch, src_dirs, wildcard='*', dest_dir="libs")

Source from the content-addressed store, hash-verified

367 return bootstrap
368
369 def distribute_libs(self, arch, src_dirs, wildcard='*', dest_dir="libs"):
370 '''Copy existing arch libs from build dirs to current dist dir.'''
371 info('Copying libs')
372 tgt_dir = join(dest_dir, arch.arch)
373 ensure_dir(tgt_dir)
374 for src_dir in src_dirs:
375 libs = glob.glob(join(src_dir, wildcard))
376 if libs:
377 shprint(sh.cp, '-a', *libs, tgt_dir)
378
379 def distribute_javaclasses(self, javaclass_dir, dest_dir="src"):
380 '''Copy existing javaclasses from build dir to current dist dir.'''

Calls 2

ensure_dirFunction · 0.90
shprintFunction · 0.90

Tested by 1