? libs/date_time/test/bcb5-regress.log ? libs/date_time/test/borland-regress.log ? libs/date_time/test/cs-CYGWIN_NT-5.1-links.html ? libs/date_time/test/cs-CYGWIN_NT-5.1.html ? libs/date_time/test/gcc-regress.log ? libs/date_time/test/msvc-regress.log ? libs/date_time/test/msvc-stlport-regress.log ? libs/date_time/test/test_facet_file.out ? libs/date_time/test/vc7-regress.log ? libs/date_time/test/vc7.1-regress.log ? libs/date_time/test/vc7.1-stlport-regress.log Index: boost/date_time/compiler_config.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/date_time/compiler_config.hpp,v retrieving revision 1.19 diff -u -b -r1.19 compiler_config.hpp --- boost/date_time/compiler_config.hpp 3 Dec 2003 03:36:14 -0000 1.19 +++ boost/date_time/compiler_config.hpp 7 Jan 2004 13:34:43 -0000 @@ -61,24 +61,45 @@ * */ -#if defined(_MSC_VER) && defined(_DLL) -# define BOOST_DATE_TIME_HAS_DLL_RUNTIME -#endif - -// BOOST_DATE_TIME_STATIC_LINK is defined in libs/date_time/build/Jamfile -#if (defined(BOOST_DATE_TIME_HAS_DLL_RUNTIME) && \ - !defined(BOOST_DATE_TIME_STATIC_LINK)) -# if defined(BOOST_DATE_TIME_SOURCE) +#ifdef BOOST_HAS_DECLSPEC // defined in config system + // we need to import/export our code only if the user has specifically + // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost + // libraries to be dynamically linked, or BOOST_DATE_TIME_DYN_LINK + // if they want just this one to be dynamically liked: +# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK) + // export if this is our own source, otherwise import: +# ifdef BOOST_DATE_TIME_SOURCE # define BOOST_DATE_TIME_DECL __declspec(dllexport) -# define BOOST_DATE_TIME_BUILD_DLL # else # define BOOST_DATE_TIME_DECL __declspec(dllimport) -# endif -#endif - +# endif // BOOST_DATE_TIME_SOURCE +# endif // DYN_LINK +#endif // BOOST_HAS_DECLSPEC +// +// if BOOST_WHATEVER_DECL isn't defined yet define it now: #ifndef BOOST_DATE_TIME_DECL # define BOOST_DATE_TIME_DECL #endif +// +// Automatically link to the correct build variant where possible. +// +#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_DATE_TIME_NO_LIB) && !defined(BOOST_DATE_TIME_SOURCE) +// +// Set the name of our library, this will get undef'ed by auto_link.hpp +// once it's done with it: +// +#define BOOST_LIB_NAME boost_date_time +// +// If we're importing code from a dll, then tell auto_link.hpp about it: +// +#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK) +# define BOOST_DYN_LINK +#endif +// +// And include the header that does the work: +// +#include +#endif // auto-linking disabled #endif Index: libs/date_time/build/Jamfile =================================================================== RCS file: /cvsroot/boost/boost/libs/date_time/build/Jamfile,v retrieving revision 1.13 diff -u -b -r1.13 Jamfile --- libs/date_time/build/Jamfile 20 Dec 2003 12:53:29 -0000 1.13 +++ libs/date_time/build/Jamfile 7 Jan 2004 13:34:43 -0000 @@ -17,14 +17,30 @@ dll boost_date_time : ../src/gregorian/$(CPP_SOURCES).cpp - : $(BOOST_ROOT) + : + $(BOOST_ROOT) $(DATE_TIME_PROPERTIES) dynamic + BOOST_ALL_DYN_LINK=1 + # the common names rule ensures that the library will + # be named according to the rules used by the install + # and auto-link features: + common-variant-tag : debug release ; lib boost_date_time : ../src/gregorian/$(CPP_SOURCES).cpp - : $(BOOST_ROOT) $(DATE_TIME_PROPERTIES) BOOST_DATE_TIME_STATIC_LINK - : debug release static + : + $(BOOST_ROOT) + $(DATE_TIME_PROPERTIES) + BOOST_DATE_TIME_STATIC_LINK + # the common names rule ensures that the library will + # be named according to the rules used by the install + # and auto-link features: + common-variant-tag + : + debug + release + static ; install date_time lib Index: libs/date_time/test/Jamfile =================================================================== RCS file: /cvsroot/boost/boost/libs/date_time/test/Jamfile,v retrieving revision 1.11 diff -u -b -r1.11 Jamfile --- libs/date_time/test/Jamfile 23 Nov 2003 16:13:28 -0000 1.11 +++ libs/date_time/test/Jamfile 7 Jan 2004 13:34:43 -0000 @@ -39,6 +39,22 @@ [ run gregorian/testparse_date.cpp ../build/boost_date_time : : : $(DATE_TIME_PROPERTIES) ] ; + test-suite date_time_gregorian_dll + : + [ run gregorian/testdate.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testdate_dll ] + [ run gregorian/testdate_duration.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testdate_duration_dll ] + [ run gregorian/testperiod.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testperiod_dll ] + [ run gregorian/testdate_iterator.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testdate_iterator_dll ] + [ run gregorian/testfacet.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testfacet_dll ] + [ run gregorian/testformatters.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testformatters_dll ] + [ run gregorian/testgenerators.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testgenerators_dll ] + [ run gregorian/testgreg_cal.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testgreg_cal_dll ] + [ run gregorian/testgreg_day.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testgreg_day_dll ] + [ run gregorian/testgreg_month.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testgreg_month_dll ] + [ run gregorian/testgreg_year.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testgreg_year_dll ] + [ run gregorian/testparse_date.cpp ../build/boost_date_time : : : BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG BOOST_ALL_DYN_LINK dynamic : testparse_date_dll ] + ; + test-suite date_time_posixtime : [ run posix_time/testlocal_adjustor.cpp