summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-04-01 20:49:35 +0000
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-06-17 09:55:38 +0200
commit990111d87aa2589a93455828aa59352ba7ee25d2 (patch)
tree29b07fbc1819863f8964bf5b267c2e7cc647a9a7 /sax
parentf3ef6ed5400ae3cb024a889a9688cf52f2eccab7 (diff)
gnumake4: #i117610#: add RepositoryExternal.mk, and use it. [hg:62e2f8dc95a7]
Diffstat (limited to 'sax')
-rw-r--r--sax/Library_expwrap.mk26
-rw-r--r--sax/Library_fastsax.mk15
2 files changed, 2 insertions, 39 deletions
diff --git a/sax/Library_expwrap.mk b/sax/Library_expwrap.mk
index 2c03ccf20f07..6bea2f3e077b 100644
--- a/sax/Library_expwrap.mk
+++ b/sax/Library_expwrap.mk
@@ -39,13 +39,6 @@ $(eval $(call gb_Library_set_defs,expwrap,\
$$(DEFS) \
))
-ifeq ($(SYSTEM_ZLIB),YES)
-$(eval $(call gb_Library_set_defs,expwrap,\
- $$(DEFS) \
- -DSYSTEM_ZLIB \
-))
-endif
-
$(eval $(call gb_Library_add_linked_libs,expwrap,\
sal \
cppu \
@@ -54,24 +47,7 @@ $(eval $(call gb_Library_add_linked_libs,expwrap,\
$(gb_STDLIBS) \
))
-ifeq ($(SYSTEM_EXPAT),YES)
-$(eval $(call gb_Library_set_defs,expwrap,\
- $$(DEFS) \
- -DSYSTEM_EXPAT \
-))
-$(eval $(call gb_Library_add_linked_libs,expwrap,\
- expat \
-))
-else
-$(eval $(call gb_Library_set_defs,expwrap,\
- $$(DEFS) \
- -DXML_UNICODE \
-))
-$(eval $(call gb_Library_add_linked_static_libs,expwrap,\
- expat_xmlparse \
- expat_xmltok \
-))
-endif
+$(call gb_Library_use_external,expwrap,expat_utf16)
$(eval $(call gb_Library_add_exception_objects,expwrap,\
sax/source/expatwrap/attrlistimpl \
diff --git a/sax/Library_fastsax.mk b/sax/Library_fastsax.mk
index 1ee51eeffb92..e45fa5021311 100644
--- a/sax/Library_fastsax.mk
+++ b/sax/Library_fastsax.mk
@@ -55,20 +55,7 @@ $(eval $(call gb_Library_set_defs,fastsax,\
))
endif
-ifeq ($(SYSTEM_EXPAT),YES)
-$(eval $(call gb_Library_set_defs,fastsax,\
- $$(DEFS) \
- -DSYSTEM_EXPAT \
-))
-$(eval $(call gb_Library_add_linked_libs,fastsax,\
- expat \
-))
-else
-$(eval $(call gb_Library_add_linked_static_libs,fastsax,\
- expat_xmlparse \
- expat_xmltok \
-))
-endif
+$(call gb_Library_use_external,fastsax,expat_utf8)
# re-uses xml2utf object from sax.uno lib (see below)
$(eval $(call gb_Library_add_exception_objects,fastsax,\