summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-04-19 21:10:00 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-04-20 00:57:24 +0300
commit0d1c24e5f63fb31538d708e9842cec121e3e3f98 (patch)
tree842733b46fefb6f2c94354f89563930f97f754e2 /RepositoryExternal.mk
parentd83e45ae9c97c0722bf63228a62361a8d1d75595 (diff)
Build freetype and fontconfig statically for Android
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 26de78162f7a..b695b115b3c2 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -183,6 +183,12 @@ $(call gb_LinkTarget__use_expat,$(1),expat_xmlparse)
endef
+ifeq ($(OS),ANDROID)
+$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
+ fontconfig \
+ freetype \
+))
+endif
ifeq ($(SYSTEM_HUNSPELL),YES)
@@ -478,7 +484,12 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
$(FREETYPE_CFLAGS) \
)
+
+ifneq ($(OS),ANDROID)
$(call gb_LinkTarget_add_libs,$(1),$(FREETYPE_LIBS))
+else
+$(call gb_LinkTarget_use_static_libraries,$(1),freetype)
+endif
endef
@@ -487,7 +498,12 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
$(FONTCONFIG_CFLAGS) \
)
+
+ifneq ($(OS),ANDROID)
$(call gb_LinkTarget_add_libs,$(1),$(FONTCONFIG_LIBS))
+else
+$(call gb_LinkTarget_use_static_libraries,$(1),fontconfig)
+endif
endef