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

Method _copy_in_final_files

pythonforandroid/bootstrap.py:154–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 return bootstrap_dirs
153
154 def _copy_in_final_files(self):
155 if self.name in SDL_BOOTSTRAPS:
156 # Get the paths for copying SDL's java source code:
157 sdl_recipe = Recipe.get_recipe(self.name, self.ctx)
158 sdl_build_dir = sdl_recipe.get_jni_dir()
159 src_dir = join(sdl_build_dir, "SDL", "android-project",
160 "app", "src", "main", "java",
161 "org", "libsdl", "app")
162 target_dir = join(self.dist_dir, 'src', 'main', 'java', 'org',
163 'libsdl', 'app')
164
165 # Do actual copying:
166 info('Copying in SDL .java files from: ' + str(src_dir))
167 if not os.path.exists(target_dir):
168 os.makedirs(target_dir)
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

Callers 1

assemble_distributionMethod · 0.95

Calls 3

copy_filesFunction · 0.85
get_recipeMethod · 0.80
get_jni_dirMethod · 0.45

Tested by

no test coverage detected