mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
Merge pull request #1863 from DennisHeimbigner/winpath2path.dmh
Prepare for the path management code
This commit is contained in:
commit
7c720ab3ee
@ -22,7 +22,7 @@
|
||||
|
||||
#include "netcdf.h"
|
||||
#include "ncbytes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
extern void NCD4_dumpbytes(size_t size, const void* data0, int swap);
|
||||
extern void NCD4_tagdump(size_t size, const void* data0, int swap, const char* tag);
|
||||
|
10
debug/cf
10
debug/cf
@ -11,12 +11,12 @@ FAST=1
|
||||
#PROF=1
|
||||
#BENCH=1
|
||||
|
||||
#NCZARR=1
|
||||
#HDF5=1
|
||||
NCZARR=1
|
||||
HDF5=1
|
||||
DAP=1
|
||||
#S3=1
|
||||
#S3TEST=1
|
||||
#SZIP=1
|
||||
SZIP=1
|
||||
#HDF4=1
|
||||
#PNETCDF=1
|
||||
#PAR4=1
|
||||
@ -129,7 +129,7 @@ else
|
||||
FLAGS="$FLAGS --disable-s3-sdk"
|
||||
fi
|
||||
if test "x$S3TEST" != x ; then
|
||||
FLAGS="$FLAGS --enable-s3-tests"
|
||||
FLAGS="$FLAGS --enable-nczarr-s3-tests"
|
||||
export AWSSDK_DIR="${AWSSDK_DIR}"
|
||||
LDFLAGS="$LDFLAGS $AWSSDK_DIR/bin/aws-cpp-sdk-s3.dll"
|
||||
CPPFLAGS="$CPPFLAGS -I${AWSSDK_DIR}/include"
|
||||
@ -144,6 +144,8 @@ if test "x${BENCH}" = x1 ; then
|
||||
FLAGS="$FLAGS --enable-benchmarks"
|
||||
fi
|
||||
|
||||
FLAGS="$FLAGS --enable-byterange"
|
||||
|
||||
export PATH
|
||||
export CC
|
||||
export CPPFLAGS
|
||||
|
@ -1,12 +1,14 @@
|
||||
# Visual Studio
|
||||
|
||||
NCC="c:/tools/hdf5"
|
||||
NCC="c:/tools/hdf5-1.10.6"
|
||||
HDF5_DIR="$NCC/cmake/hdf5"
|
||||
AWSSDK_DIR="c:/tools/aws-cpp-sdk-all"
|
||||
|
||||
# Is netcdf-4 and/or DAP enabled?
|
||||
NCZARR=1
|
||||
HDF5=1
|
||||
DAP=1
|
||||
S3=1
|
||||
#S3=1
|
||||
#S3TEST=1
|
||||
#CDF5=1
|
||||
#HDF4=1
|
||||
@ -25,26 +27,9 @@ notest|nt) NOTEST=1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if test "x$VS" = x1 ; then
|
||||
if test "x$2" = xsetup ; then
|
||||
VSSETUP=1
|
||||
else
|
||||
unset VSSETUP
|
||||
fi
|
||||
fi
|
||||
|
||||
#TESTSERVERS="localhost:8080,remotetest.unidata.ucar.edu"
|
||||
|
||||
#export NCPATHDEBUG=1
|
||||
|
||||
if test "x$VSSETUP" = x1 ; then
|
||||
CFG="Debug"
|
||||
else
|
||||
CFG="Release"
|
||||
fi
|
||||
|
||||
FLAGS=
|
||||
|
||||
FLAGS="$FLAGS -DNC_FIND_SHARED_LIBS=ON"
|
||||
|
||||
if test "x$VS" != x -a "x$INSTALL" != x ; then
|
||||
@ -55,10 +40,13 @@ mkdir -p /tmp/netcdf
|
||||
|
||||
if test "x$NCZARR" != x ; then
|
||||
FLAGS="$FLAGS -DENABLE_NCZARR=true"
|
||||
else
|
||||
FLAGS="$FLAGS -DENABLE_NCZARR=false"
|
||||
fi
|
||||
|
||||
if test "x$DAP" = x ; then
|
||||
FLAGS="$FLAGS -DENABLE_DAP=false"
|
||||
#FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
||||
fi
|
||||
|
||||
if test "x$HDF5" = x ; then
|
||||
@ -68,7 +56,7 @@ ignore=1
|
||||
#FLAGS="$FLAGS -DDEFAULT_API_VERSION:STRING=v110"
|
||||
#FLAGS="$FLAGS -DHDF5_ROOT=c:/tools/hdf5"
|
||||
#FLAGS="$FLAGS -DHDF5_ROOT_DIR_HINT=c:/tools/hdf5/cmake/hdf5/hdf5-config.cmake"
|
||||
FLAGS="$FLAGS -DHDF5_DIR=c:/tools/hdf5/cmake/hdf5"
|
||||
FLAGS="$FLAGS -DHDF5_DIR=$HDF5_DIR"
|
||||
#hdf5-config.cmake
|
||||
#FLAGS="-DHDF5_LIBRARIES=${NCC}/lib/hdf5 -DHDF5_HL_LIBRARY=${NCC}/lib/hdf5_hl -DHDF5_INCLUDE_DIR=${NCC}/include"
|
||||
fi
|
||||
@ -89,23 +77,21 @@ else
|
||||
FLAGS="$FLAGS -DENABLE_S3_SDK=false"
|
||||
fi
|
||||
if test "x$S3TEST" != x ; then
|
||||
FLAGS="$FLAGS -DENABLE_S3_TESTS=true"
|
||||
FLAGS="$FLAGS -DENABLE_NCZARR_S3_TESTS=true"
|
||||
FLAGS="$FLAGS -DAWSSDK_DIR=${AWSSDK_DIR}"
|
||||
fi
|
||||
|
||||
# Enables
|
||||
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
|
||||
FLAGS="$FLAGS -DENABLE_LOGGING=true"
|
||||
FLAGS="$FLAGS -DENABLE_BYTERANGE=true"
|
||||
#FLAGS="$FLAGS -DENABLE_DOXYGEN=true -DENABLE_INTERNAL_DOCS=true"
|
||||
#FLAGS="$FLAGS -DENABLE_LARGE_FILE_TESTS=true"
|
||||
#FLAGS="$FLAGS -DENABLE_FILTER_TESTING=true"
|
||||
|
||||
# Disables
|
||||
FLAGS="$FLAGS -DENABLE_FILTER_TESTING=true"
|
||||
FLAGS="$FLAGS -DENABLE_EXAMPLES=false"
|
||||
FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false"
|
||||
#FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false"
|
||||
#FLAGS="$FLAGS -DENABLE_TESTS=false"
|
||||
#FLAGS="$FLAGS -DENABLE_DISKLESS=false"
|
||||
FLAGS="$FLAGS -DBUILD_UTILITIES=true"
|
||||
FLAGS="$FLAGS -DENABLE_FILTER_TESTING=false"
|
||||
#FLAGS="$FLAGS -DBUILD_UTILITIES=false"
|
||||
|
||||
FLAGS="$FLAGS -DCURL_NO_CURL_CMAKE=TRUE"
|
||||
|
||||
@ -116,19 +102,31 @@ rm -fr build
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
NCLIB=`pwd`
|
||||
NCWD=`pwd`
|
||||
|
||||
if test "x$VS" != x ; then
|
||||
|
||||
NCLIB=`cygpath -w ${NCWD}/liblib |tr -d ''`
|
||||
NCCYGLIB=`cygpath -u ${NCLIB} |tr -d ''`
|
||||
NCCBIN=`cygpath -u "${NCC}/bin" |tr -d ''`
|
||||
AWSSDKBIN="/cygdrive/c/tools/aws-cpp-sdk-all/bin"
|
||||
|
||||
# Visual Studio
|
||||
PATH="${NCCBIN}:$PATH:$NCCYGLIB"
|
||||
if test "x$S3" != x ; then
|
||||
PATH="$PATH:${AWSSDKBIN}"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
export LD_LIBRARY_PATH="${NCCBIN}:$LD_LIBRARY_PATH:${AWSSDKBIN}:${NCCYGLIB}"
|
||||
|
||||
CFG="Release"
|
||||
NCLIB="${NCLIB}/liblib"
|
||||
export PATH="${NCLIB}:${PATH}"
|
||||
|
||||
#G=
|
||||
#TR=--trace
|
||||
cmake ${TR} "$G" -DCMAKE_BUILD_TYPE=${CFG} $FLAGS ..
|
||||
if test "x$NOBUILD" = x ; then
|
||||
cmake ${TR} --build . --config ${CFG}
|
||||
cmake ${TR} --build . -v --config ${CFG}
|
||||
#cmake ${TR} --build . --config ${CFG} --target ZERO_CHECK
|
||||
#cmake ${TR} --build . --config ${CFG} --target ALL_BUILD
|
||||
if test "x$NOTEST" = x ; then
|
||||
@ -137,7 +135,7 @@ fi
|
||||
fi
|
||||
else
|
||||
# GCC
|
||||
NCLIB="${NCLIB}/build/liblib"
|
||||
NCLIB="${NCWD}/build/liblib"
|
||||
#G="-GUnix Makefiles"
|
||||
#T="--trace-expand"
|
||||
cmake "${G}" $FLAGS ..
|
||||
|
@ -18,7 +18,7 @@ ncuri.h ncutf8.h ncdispatch.h ncdimscale.h netcdf_f.h err_macros.h \
|
||||
ncbytes.h nchashmap.h ceconstraints.h rnd.h nclog.h ncconfigure.h \
|
||||
nc4internal.h nctime.h nc3internal.h onstack.h ncrc.h ncauth.h \
|
||||
ncoffsets.h nctestserver.h nc4dispatch.h nc3dispatch.h ncexternl.h \
|
||||
ncwinpath.h ncindex.h hdf4dispatch.h hdf5internal.h nc_provenance.h \
|
||||
ncpathmgr.h ncindex.h hdf4dispatch.h hdf5internal.h nc_provenance.h \
|
||||
hdf5dispatch.h ncmodel.h isnan.h
|
||||
|
||||
if USE_DAP
|
||||
|
@ -14,7 +14,7 @@ See \ref copyright file for more info.
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
/* Do conversion if this code was compiled via Vis. Studio or Mingw */
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
# University Corporation for Atmospheric Research/Unidata.
|
||||
|
||||
# See netcdf-c/COPYRIGHT file for more info.
|
||||
SET(libdispatch_SOURCES dparallel.c dcopy.c dfile.c ddim.c datt.c dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c dvarinq.c ddispatch.c nclog.c dstring.c dutf8.c dinternal.c doffsets.c ncuri.c nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c utf8proc.h utf8proc.c dwinpath.c dutil.c drc.c dauth.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c daux.c dinfermodel.c)
|
||||
SET(libdispatch_SOURCES dparallel.c dcopy.c dfile.c ddim.c datt.c dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c dvarinq.c ddispatch.c nclog.c dstring.c dutf8.c dinternal.c doffsets.c ncuri.c nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c utf8proc.h utf8proc.c dpathmgr.c dutil.c drc.c dauth.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c daux.c dinfermodel.c)
|
||||
|
||||
# Netcdf-4 only functions. Must be defined even if not used
|
||||
SET(libdispatch_SOURCES ${libdispatch_SOURCES} dgroup.c dvlen.c dcompound.c dtype.c denum.c dopaque.c dfilter.c)
|
||||
|
@ -19,7 +19,7 @@ libdispatch_la_SOURCES = dparallel.c dcopy.c dfile.c ddim.c datt.c \
|
||||
dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c \
|
||||
dvarinq.c dinternal.c ddispatch.c dutf8.c nclog.c dstring.c ncuri.c \
|
||||
nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c dauth.c \
|
||||
doffsets.c dwinpath.c dutil.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c \
|
||||
doffsets.c dpathmgr.c dutil.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c \
|
||||
crc32.h daux.c dinfermodel.c
|
||||
|
||||
# Add the utf8 codebase
|
||||
|
@ -19,7 +19,7 @@ See COPYRIGHT for license information.
|
||||
#include "ncuri.h"
|
||||
#include "ncauth.h"
|
||||
#include "nclog.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include "ncdispatch.h"
|
||||
#include "netcdf_mem.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#include "fbits.h"
|
||||
|
||||
#undef DEBUG
|
||||
|
@ -18,7 +18,7 @@
|
||||
#endif
|
||||
|
||||
#include "ncdispatch.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#include "netcdf_mem.h"
|
||||
#include "fbits.h"
|
||||
#include "ncbytes.h"
|
||||
|
@ -23,7 +23,7 @@
|
||||
#endif
|
||||
|
||||
#include "ncexternl.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
extern char *realpath(const char *path, char *resolved_path);
|
||||
|
@ -18,7 +18,7 @@ See COPYRIGHT for license information.
|
||||
#include "ncuri.h"
|
||||
#include "ncrc.h"
|
||||
#include "nclog.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#define RCFILEENV "DAPRCFILE"
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include "ncdispatch.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#include "ncurlmodel.h"
|
||||
|
||||
/*
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "ncbytes.h"
|
||||
#include "nclist.h"
|
||||
#include "nclog.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
extern int mkstemp(char *template);
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "zincludes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
/**************************************************/
|
||||
/* Import the current implementations */
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "zincludes.h"
|
||||
|
||||
#include "fbits.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
/*
|
||||
Do a simple mapping of our simplified map model
|
||||
|
@ -42,7 +42,7 @@
|
||||
#endif
|
||||
|
||||
#include "fbits.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#define VERIFY
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "ncdispatch.h"
|
||||
#include "nc3internal.h"
|
||||
#include "netcdf_mem.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#undef DEBUG
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include "nc3internal.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#undef DEBUG
|
||||
|
||||
|
@ -19,7 +19,7 @@ See \ref copyright file for more info.
|
||||
#include "netcdf.h"
|
||||
#include "netcdf_mem.h"
|
||||
#include "ncbytes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#include "nc_tests.h"
|
||||
|
||||
#ifdef USE_HDF5
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "dimmap.h"
|
||||
#include "nccomps.h"
|
||||
#include "list.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#undef DEBUGFILTER
|
||||
|
||||
|
@ -43,7 +43,7 @@ Research/Unidata. See \ref copyright file for more info. */
|
||||
#include "isnan.h"
|
||||
#include "cdl.h"
|
||||
#include "nclog.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#include "nclist.h"
|
||||
#include "ncuri.h"
|
||||
#include "nc_provenance.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "ncoffsets.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
@ -25,7 +25,7 @@
|
||||
#endif
|
||||
|
||||
#include "netcdf.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#include "generic.h"
|
||||
#include "ncgen.h"
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "ut_includes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
|
@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
#include "zincludes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#define DEBUG
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
#include "zincludes.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#define DEBUG
|
||||
|
||||
|
2
oc2/oc.c
2
oc2/oc.c
@ -17,7 +17,7 @@
|
||||
#include "ncrc.h"
|
||||
#include "occurlfunctions.h"
|
||||
#include "ochttp.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#undef TRACK
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "ochttp.h"
|
||||
#include "ocread.h"
|
||||
#include "dapparselex.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#define DATADDSFILE "datadds"
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "ochttp.h"
|
||||
#include "ocread.h"
|
||||
#include "occurlfunctions.h"
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
/*Forward*/
|
||||
static int readpacket(OCstate* state, NCURI*, NCbytes*, OCdxd, long*);
|
||||
|
@ -10,7 +10,7 @@ Test the NCpathcvt
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "ncwinpath.h"
|
||||
#include "ncpathmgr.h"
|
||||
|
||||
#undef VERBOSE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user