diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-24 14:59:13 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-24 14:59:13 +0000 |
commit | 2eea8e30c3e5b2bdfc4abc19e2e94c0f795ceb6d (patch) | |
tree | 75e03edda4783902370da9d26146a9e6d8c81f05 /bindings/xml/Makefile | |
parent | 03ae3655cd0dd14156f54ac008cf1aa8eb8a39a8 (diff) | |
download | libdom-2eea8e30c3e5b2bdfc4abc19e2e94c0f795ceb6d.tar.gz libdom-2eea8e30c3e5b2bdfc4abc19e2e94c0f795ceb6d.tar.bz2 |
Beginnings of an expat binding -- NOT FUNCTIONAL YET
svn path=/trunk/libdom/; revision=13594
Diffstat (limited to 'bindings/xml/Makefile')
-rw-r--r-- | bindings/xml/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bindings/xml/Makefile b/bindings/xml/Makefile index a015193..12b4ca0 100644 --- a/bindings/xml/Makefile +++ b/bindings/xml/Makefile @@ -1,7 +1,5 @@ ifeq ($(WITH_LIBXML_BINDING),yes) - DIR_SOURCES := xmlparser.c - - DIR_INSTALL_ITEMS := /include/dom/bindings/libxml:xmlerror.h;xmlparser.h + DIR_SOURCES := libxml_xmlparser.c # LibXML2 ifneq ($(PKGCONFIG),) @@ -15,6 +13,20 @@ ifeq ($(WITH_LIBXML_BINDING),yes) # LibXML 2.6.26 has a bug in its headers that expects _POSIX_C_SOURCE to be # defined. Define it here, even though we don't need it. CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE + + DO_XML_INSTALL := yes +endif + +ifeq ($(WITH_EXPAT_BINDING),yes) + DIR_SOURCES := expat_xmlparser.c + + LDFLAGS := $(LDFLAGS) -lexpat + + DO_XML_INSTALL := yes +endif + +ifeq ($(DO_XML_INSTALL),yes) + DIR_INSTALL_ITEMS := /include/dom/bindings/libxml:xmlerror.h;xmlparser.h endif include build/makefiles/Makefile.subdir |