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

Method prepare_build_dir

pythonforandroid/bootstrap.py:171–182  ·  view source on GitHub ↗

Ensure that a build dir exists for the recipe. This same single dir will be used for building all different archs.

(self)

Source from the content-addressed store, hash-verified

169 copy_files(src_dir, target_dir, override=True)
170
171 def prepare_build_dir(self):
172 """Ensure that a build dir exists for the recipe. This same single
173 dir will be used for building all different archs."""
174 bootstrap_dirs = self.get_bootstrap_dirs()
175 # now do a cumulative copy of all bootstrap dirs
176 self.build_dir = self.get_build_dir()
177 for bootstrap_dir in bootstrap_dirs:
178 copy_files(join(bootstrap_dir, 'build'), self.build_dir, symlink=self.ctx.symlink_bootstrap_files)
179
180 with current_directory(self.build_dir):
181 with open('project.properties', 'w') as fileh:
182 fileh.write('target=android-{}'.format(self.ctx.android_api))
183
184 def prepare_dist_dir(self):
185 ensure_dir(self.dist_dir)

Callers

nothing calls this directly

Calls 5

get_bootstrap_dirsMethod · 0.95
get_build_dirMethod · 0.95
current_directoryFunction · 0.90
copy_filesFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected