Ensure that a build dir exists for the recipe. This same single dir will be used for building all different archs.
(self)
| 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) |
nothing calls this directly
no test coverage detected