Skip to content

Commit

Permalink
hostqt6: don't keep build dir around after succesful build
Browse files Browse the repository at this point in the history
  • Loading branch information
accumulator committed Dec 29, 2023
1 parent f534fe9 commit d976b53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pythonforandroid/recipes/hostqt6/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_build_dir(self, arch=None):
return join(self.get_build_container_dir(), self.build_subdir)

def get_install_dir(self):
return join(self.get_build_dir(), 'install')
return join(self.get_build_container_dir(), 'install')

def build_arch(self, arch):
# super().build_arch(arch)
Expand All @@ -67,7 +67,6 @@ def build_arch(self, arch):
shprint(configure, '--help', _env=env, _tail=50, _critical=True)

configure = configure.bake('-opensource', '-confirm-license', '-disable-rpath')
# configure = configure.bake('-extprefix', self.ctx.libs_dir)
configure = configure.bake('-prefix', install_dir)

configure = configure.bake('-nomake', 'tests')
Expand All @@ -85,5 +84,8 @@ def build_arch(self, arch):
shprint(sh.make, '-j' + str(cpu_count()), _critical=True)
shprint(sh.make, '-j' + str(cpu_count()), 'install', _critical=True)

# remove huge build tree
shprint(sh.rm, '-rf', self.get_build_dir())


recipe = HostQt6Recipe()

0 comments on commit d976b53

Please sign in to comment.