Kaydet (Commit) 0d1c24e5 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Build freetype and fontconfig statically for Android

üst d83e45ae
...@@ -183,6 +183,12 @@ $(call gb_LinkTarget__use_expat,$(1),expat_xmlparse) ...@@ -183,6 +183,12 @@ $(call gb_LinkTarget__use_expat,$(1),expat_xmlparse)
endef endef
ifeq ($(OS),ANDROID)
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
fontconfig \
freetype \
))
endif
ifeq ($(SYSTEM_HUNSPELL),YES) ifeq ($(SYSTEM_HUNSPELL),YES)
...@@ -478,7 +484,12 @@ $(call gb_LinkTarget_set_include,$(1),\ ...@@ -478,7 +484,12 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \ $$(INCLUDE) \
$(FREETYPE_CFLAGS) \ $(FREETYPE_CFLAGS) \
) )
ifneq ($(OS),ANDROID)
$(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS)) $(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS))
else
$(call gb_LinkTarget_use_static_libraries,$(1),freetype)
endif
endef endef
...@@ -487,7 +498,12 @@ $(call gb_LinkTarget_set_include,$(1),\ ...@@ -487,7 +498,12 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \ $$(INCLUDE) \
$(FONTCONFIG_CFLAGS) \ $(FONTCONFIG_CFLAGS) \
) )
ifneq ($(OS),ANDROID)
$(call gb_LinkTarget_add_libs,$(1),$(FONTCONFIG_LIBS)) $(call gb_LinkTarget_add_libs,$(1),$(FONTCONFIG_LIBS))
else
$(call gb_LinkTarget_use_static_libraries,$(1),fontconfig)
endif
endef endef
......
...@@ -47,8 +47,10 @@ CONFIGURE_ACTION=./configure ...@@ -47,8 +47,10 @@ CONFIGURE_ACTION=./configure
CONFIGURE_ACTION!:=CFLAGS=-g $(CONFIGURE_ACTION) CONFIGURE_ACTION!:=CFLAGS=-g $(CONFIGURE_ACTION)
.ENDIF .ENDIF
# This "bundled" fontconfig is built only when cross-compiling for Android
CONFIGURE_FLAGS=\ CONFIGURE_FLAGS=\
--disable-static \ --disable-shared \
--with-arch=arm \ --with-arch=arm \
--with-expat-includes=$(SOLARVER)/$(INPATH)/inc/external \ --with-expat-includes=$(SOLARVER)/$(INPATH)/inc/external \
--with-expat-lib=$(SOLARVER)/$(INPATH)/lib \ --with-expat-lib=$(SOLARVER)/$(INPATH)/lib \
......
..\%__SRC%\misc\build\fontconfig*\src\.libs\*.so %_DEST%\lib ..\%__SRC%\misc\build\fontconfig*\src\.libs\*.a %_DEST%\lib
mkdir: %_DEST%\inc\external\fontconfig mkdir: %_DEST%\inc\external\fontconfig
..\%__SRC%\misc\build\fontconfig*\fontconfig\*.h %_DEST%\inc\external\fontconfig ..\%__SRC%\misc\build\fontconfig*\fontconfig\*.h %_DEST%\inc\external\fontconfig
...@@ -44,7 +44,7 @@ PATCH_FILES=$(TARFILE_NAME).patch ...@@ -44,7 +44,7 @@ PATCH_FILES=$(TARFILE_NAME).patch
CONFIGURE_ACTION=./configure CONFIGURE_ACTION=./configure
CONFIGURE_FLAGS=\ CONFIGURE_FLAGS=\
--disable-static \ --disable-shared \
--without-zlib \ --without-zlib \
--without-bzip2 \ --without-bzip2 \
--prefix=$(SOLARVER)/$(INPATH) --includedir=$(SOLARVER)/$(INPATH)/inc/external \ --prefix=$(SOLARVER)/$(INPATH) --includedir=$(SOLARVER)/$(INPATH)/inc/external \
......
..\%__SRC%\misc\build\freetype*\objs\.libs\*.so %_DEST%\lib ..\%__SRC%\misc\build\freetype*\objs\.libs\*.a %_DEST%\lib
..\%__SRC%\misc\build\freetype*\builds\unix\freetype-config %_DEST%\bin ..\%__SRC%\misc\build\freetype*\builds\unix\freetype-config %_DEST%\bin
......
...@@ -501,6 +501,7 @@ $(eval $(call gb_Library_use_libraries,vcl,\ ...@@ -501,6 +501,7 @@ $(eval $(call gb_Library_use_libraries,vcl,\
$(eval $(call gb_Library_use_externals,vcl,\ $(eval $(call gb_Library_use_externals,vcl,\
fontconfig \ fontconfig \
freetype \ freetype \
expat_utf8 \
)) ))
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment