Skip to content

Commit 1d9e046

Browse files
committed
Made freetype recipe generate a shared library and not use harfbuzz
1 parent 416b750 commit 1d9e046

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pythonforandroid/recipes/freetype/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,19 @@ def build_arch(self, arch, with_harfbuzz=False):
116116
# recipes to the definitive library, located at: objs/.libs
117117
self.install_libs(arch, 'objs/.libs/libfreetype.so')
118118

119+
with current_directory(self.get_build_dir(arch.arch)):
120+
configure = sh.Command('./configure')
121+
shprint(configure,
122+
'--host=arm-linux-androideabi',
123+
'--prefix={}'.format(realpath('.')),
124+
'--without-zlib',
125+
'--without-harfbuzz',
126+
'--with-png=no',
127+
_env=env)
128+
shprint(sh.make, '-j5', _env=env)
129+
130+
def postbuild_arch(self, arch):
131+
shprint(sh.cp, 'objs/.libs/libfreetype.so', self.ctx.get_libs_dir(arch.arch))
132+
119133

120134
recipe = FreetypeRecipe()

0 commit comments

Comments
 (0)