mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
53464e8963
re: https://github.com/Unidata/netcdf-c/issues/2119 H/T to [Egbert Eich](https://github.com/e4t) and [Bas Couwenberg](https://github.com/sebastic) for this PR. It is undesirable to make netcdf be dependent on the availability of libxml2, but it is desirable to allow its use if available. In order to do this, a wrapper API (include/ncxml.h) was constructed that supports either ezxml or libxml2 as the implementation. Additionally, the xml support code was moved to a new directory netcdf-c/libncxml. Primary changes: * Create a new sub-directory named netcdf-c/libncxml to hold all the xml implementation code. * Move ezxml.c and ezxml.h to libncxml * Create a wrapper API -- include/ncxml.h * Create an implementation, ncxml_ezxml.c to support use of ezxml. * Create an implementation, ncxml_xml2.c to support use of libxml2. * Add a check for libxml2 in configure.ac and CMakeLists.txt * Modify libdap to use the wrapper API instead of ezxml directly. Misc. Other Changes: * Change include/netcdf_json.h from built source to be part of the distribution.
68 lines
1.1 KiB
Makefile
68 lines
1.1 KiB
Makefile
## This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2008, see the COPYRIGHT file for more information.
|
|
|
|
# This automake file generates the Makefile to libdap2. Whatever that
|
|
# is!
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libncxml
|
|
libdap4_la_CPPFLAGS = ${AM_CPPFLAGS}
|
|
|
|
# We may have to add to these later.
|
|
DISTCLEANFILES =
|
|
MAINTAINERCLEANFILES =
|
|
CLEANFILES =
|
|
EXTRA_DIST = CMakeLists.txt
|
|
|
|
LDADD=
|
|
|
|
#d4curlflags.c
|
|
|
|
SRC= \
|
|
d4curlfunctions.c \
|
|
d4fix.c \
|
|
d4data.c \
|
|
d4file.c \
|
|
d4parser.c \
|
|
d4meta.c \
|
|
d4varx.c \
|
|
d4dump.c \
|
|
d4swap.c \
|
|
d4chunk.c \
|
|
d4printer.c \
|
|
d4read.c \
|
|
d4http.c \
|
|
d4util.c \
|
|
d4odom.c \
|
|
d4cvt.c \
|
|
d4debug.c \
|
|
ncd4dispatch.c
|
|
|
|
HDRS= \
|
|
ncd4dispatch.h \
|
|
ncd4types.h \
|
|
ncd4.h \
|
|
d4chunk.h \
|
|
d4http.h \
|
|
d4read.h \
|
|
d4curlfunctions.h \
|
|
d4util.h \
|
|
d4debug.h \
|
|
d4odom.h \
|
|
d4bytes.h \
|
|
d4includes.h
|
|
|
|
if ENABLE_DAP4
|
|
if USE_NETCDF4
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libsrc4
|
|
endif
|
|
|
|
# Build convenience library
|
|
noinst_LTLIBRARIES = libdap4.la
|
|
libdap4_la_SOURCES = $(SRC) $(HDRS)
|
|
libdap4_la_CPPFLAGS += $(AM_CPPFLAGS)
|
|
libdap4_la_LIBADD =
|
|
|
|
endif # ENABLE_DAP4
|