s11n_config.hpp

Go to the documentation of this file.
00001 #ifndef s11n_CONFIG_HPP_INCLUDED
00002 #define s11n_CONFIG_HPP_INCLUDED 1
00003 // Template file for s11n_config.hpp - project-wide defines.  Make
00004 // your changes in s11n_config.hpp.at, not in s11n_config.hpp, as the
00005 // configure script will use s11n_config.hpp.at to create
00006 // s11n_config.hpp.
00007 
00008 ////////////////////////////////////////////////////////////////////////
00009 // Code which wants to check for s11n's inclusion should check
00010 // for:
00011 #define s11n_S11N_INCLUDED 1
00012 // This does not mean that ALL components are loaded, only that
00013 // some part of it has been. Classes may use this to conditionally
00014 // include their s11n registrations.
00015 // As of version 1.0.2, a more configurable approach is to check
00016 // against s11n_S11N_LIBRARY_VERSION_HEX, which contains the
00017 // version number encoded as a hex int. e.g., 1.0.8 == 0x010008
00018 ////////////////////////////////////////////////////////////////////////
00019 
00020 
00021 #define s11n_S11N_PACKAGE_NAME "s11n"
00022 #define s11n_S11N_LIBRARY_VERSION "1.3.1"
00023 #define s11n_S11N_LIBRARY_VERSION_HEX (0x010301)
00024 #define s11n_PACKAGE_RELEASE_CODENAME "Approved by Me"
00025 #define s11n_PACKAGE_LICENSE "Public Domain"
00026 #define s11n_PACKAGE_URL "http://s11n.net/"
00027 #define s11n_PACKAGE_EMAIL_ADDRESS "s11n-devel@lists.sourceforge.net"
00028 #define s11n_S11NLITE_DEFAULT_SERIALIZER_TYPE_NAME std::string("s11n::io::funtxt_serializer")
00029 
00030 /* Shared paths for s11n and clients. */
00031 #if defined(WIN32)
00032 #  define s11n_CONFIG_SHARED_DIR std::string("C:\\s11n.net\\shared")
00033 #  define s11n_CONFIG_LIB_DIR std::string("C:\\s11n.net\\lib")
00034 #else
00035 #  define s11n_CONFIG_SHARED_DIR std::string("/home/stephan/share/s11n")
00036 #  define s11n_CONFIG_LIB_DIR std::string("/home/stephan/lib/s11n")
00037 #endif
00038 
00039 
00040 ////////////////////////////////////////////////////////////////////////
00041 // Optional components...
00042 #if defined(WIN32)
00043  /* have libexpat XML parser? */
00044 #  define s11n_CONFIG_HAVE_LIBEXPAT (0)
00045  /* have libzfstream? */
00046 #  define s11n_CONFIG_HAVE_ZFSTREAM (0)
00047 /* have pthreads? */
00048 #  define s11n_CONFIG_HAVE_PTHREADS (0)
00049 /* have GNU Pth threads? */
00050 #  define s11n_CONFIG_HAVE_GNUPTH_THREADS (0)
00051 /* have win32 threads? */
00052 #  define s11n_CONFIG_HAVE_WIN32_THREADS (1)
00053  /* Enable s11n::plugin module? */
00054 #  define s11n_CONFIG_ENABLE_PLUGINS (1)
00055  /* Enable s11n::io::pstreams addon? */
00056 #  define s11n_CONFIG_ADDON_PSTREAMS_ENABLE (0)
00057 #else
00058 #  define s11n_CONFIG_HAVE_LIBEXPAT (1)
00059 #  define s11n_CONFIG_HAVE_ZFSTREAM (0)
00060 #  define s11n_CONFIG_HAVE_WIN32_THREADS (0)
00061 #  define s11n_CONFIG_HAVE_GNUPTH_THREADS (0)
00062 #  define s11n_CONFIG_HAVE_PTHREADS (0)
00063 #  define s11n_CONFIG_ENABLE_PLUGINS (1)
00064 #  define s11n_CONFIG_ADDON_PSTREAMS_ENABLE (1)
00065 #endif
00066 
00067 
00068 ////////////////////////////////////////////////////////////////////////
00069 // s11n_CONFIG_PURE_ISO is a flag which tells us to turn of
00070 // features which are not ISO-standard C++, like support
00071 // for any external libraries. Set it to 0 or 1
00072 #define s11n_CONFIG_PURE_ISO (0)
00073 #if s11n_CONFIG_PURE_ISO
00074 #  undef s11n_CONFIG_HAVE_LIBEXPAT
00075 #  define s11n_CONFIG_HAVE_LIBEXPAT 0
00076 #  undef s11n_CONFIG_HAVE_ZFSTREAM
00077 #  define s11n_CONFIG_HAVE_ZFSTREAM 0
00078 #  undef s11n_CONFIG_HAVE_WIN32_THREADS
00079 #  define s11n_CONFIG_HAVE_WIN32_THREADS 0
00080 #  undef s11n_CONFIG_HAVE_PTHREADS
00081 #  define s11n_CONFIG_HAVE_PTHREADS 0
00082 #  undef s11n_CONFIG_HAVE_GNUPTH_THREADS
00083 #  define s11n_CONFIG_HAVE_GNUPTH_THREADS 0
00084 #  undef s11n_CONFIG_ENABLE_PLUGINS
00085 #  define s11n_CONFIG_ENABLE_PLUGINS 0
00086 #  define s11n_CONFIG_SINGLE_THREADED 1
00087 #endif // s11n_CONFIG_PURE_ISO
00088 
00089 
00090 #if s11n_CONFIG_HAVE_PTHREADS || s11n_CONFIG_HAVE_GNUPTH_THREADS || defined(WIN32)
00091 #  define s11n_CONFIG_SINGLE_THREADED 0
00092 #endif
00093 
00094 #if !defined(s11n_CONFIG_SINGLE_THREADED)
00095 #    define s11n_CONFIG_SINGLE_THREADED 1
00096 #endif
00097 
00098 #define s11n_CONFIG_HAVE_CPP0X 0
00099 
00100 #endif // s11n_CONFIG_HPP_INCLUDED

Generated on Wed Jun 4 21:45:18 2008 for libs11n by  doxygen 1.5.3