Skip to content

Commit ab5cbce

Browse files
committed
Added strip to pygame recipe
1 parent 6ad131c commit ab5cbce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

recipes/pygame/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from toolchain import PythonRecipe, shprint, ArchAndroid, current_directory
33
from os.path import exists, join
44
import sh
5+
import glob
56

67
class PygameRecipe(PythonRecipe):
78
name = 'pygame'
@@ -45,7 +46,15 @@ def build_armeabi(self):
4546
shprint(hostpython, 'setup.py', 'install', '-O2', _env=env)
4647

4748
print('strip is', env['STRIP'])
48-
exit(1)
49+
build_lib = glob.glob('./build/lib*')
50+
assert len(build_lib) == 1
51+
print('stripping pygame')
52+
shprint(sh.find, build_lib[0], '-name', '"*.o"', '-exec',
53+
env['STRIP'], '{}', ';')
54+
55+
python_install_path = join(self.ctx.build_dir, 'python-install')
56+
# AND: Should do some deleting here!
57+
print('Should remove pygame tests etc. here, but skipping for now')
4958

5059

5160
recipe = PygameRecipe()

0 commit comments

Comments
 (0)