summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-03 14:44:12 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-13 17:00:22 +0100
commitb6bb9bd1e83b40f14f74f3dcf345c7480ac64c46 (patch)
treeefb9286247130b50109324d19a36fedf59db1653 /RepositoryExternal.mk
parentcefb414b375e3d6be2b722507a9f17faefaae217 (diff)
add hunspell to external libs
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 6be5a13ecf31..264cc1134c2d 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -179,6 +179,36 @@ $(call gb_LinkTarget__use_expat,$(1),expat_xmlparse)
endef
+ifeq ($(SYSTEM_HUNSPELL),YES)
+
+define gb_LinkTarget__use_hunspell
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(HUNSPELL_CFLAGS) \
+)
+$(call gb_LinkTarget_add_libs,$(1),$(HUNSPELL_LIBS))
+
+endef
+
+else # !SYSTEM_HUNSPELL
+
+define gb_LinkTarget__use_hunspell
+$(call gb_LinkTarget_add_defs,$(1),\
+ -DHUNSPELL_STATIC \
+)
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/hunspell \
+)
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(if $(filter WNT,$(OS)),libhunspell.lib,-lhunspell-1.3) \
+)
+
+endef
+
+endif # SYSTEM_HUNSPELL
+
+
ifeq ($(SYSTEM_LIBXML),YES)
define gb_LinkTarget__use_libxml2