add hunspell to external libs

This commit is contained in:
Matúš Kukan 2011-12-03 14:44:12 +01:00
parent cefb414b37
commit b6bb9bd1e8

View file

@ -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