From Chris Hanson, "The following files are drop-in replacements for the include/*/Export files to permit

building statically linked osg libraries under Win32."
This commit is contained in:
Robert Osfield 2005-09-28 14:05:05 +00:00
parent 97f6a82b1e
commit f26c3da074
11 changed files with 33 additions and 11 deletions

View File

@ -31,7 +31,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSG_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSG_EXPORT
# elif defined( OSG_LIBRARY )
# define OSG_EXPORT __declspec(dllexport)
# else
# define OSG_EXPORT __declspec(dllimport)

View File

@ -26,7 +26,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGDB_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGDB_EXPORT
# elif defined( OSGDB_LIBRARY )
# define OSGDB_EXPORT __declspec(dllexport)
# else
# define OSGDB_EXPORT __declspec(dllimport)

View File

@ -16,7 +16,9 @@
#define OSGFX_EXPORT_
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGFX_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGFX_EXPORT
# elif defined( OSGFX_LIBRARY )
# define OSGFX_EXPORT __declspec(dllexport)
# else
# define OSGFX_EXPORT __declspec(dllimport)

View File

@ -27,7 +27,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGGA_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGGA_EXPORT
# elif defined( OSGGA_LIBRARY )
# define OSGGA_EXPORT __declspec(dllexport)
# else
# define OSGGA_EXPORT __declspec(dllimport)

View File

@ -25,7 +25,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGINTROSPECTION_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGINTROSPECTION_EXPORT
# elif defined( OSGINTROSPECTION_LIBRARY )
# define OSGINTROSPECTION_EXPORT __declspec(dllexport)
# else
# define OSGINTROSPECTION_EXPORT __declspec(dllimport)

View File

@ -27,7 +27,9 @@
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGPARTICLE_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGPARTICLE_EXPORT
# elif defined( OSGPARTICLE_LIBRARY )
# define OSGPARTICLE_EXPORT __declspec(dllexport)
# else
# define OSGPARTICLE_EXPORT __declspec(dllimport)

View File

@ -27,7 +27,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGPRODUCER_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGPRODUCER_EXPORT
# elif defined( OSGPRODUCER_LIBRARY )
# define OSGPRODUCER_EXPORT __declspec(dllexport)
# else
# define OSGPRODUCER_EXPORT __declspec(dllimport)

View File

@ -25,7 +25,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGSIM_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGSIM_EXPORT
# elif defined( OSGSIM_LIBRARY )
# define OSGSIM_EXPORT __declspec(dllexport)
# else
# define OSGSIM_EXPORT __declspec(dllimport)

View File

@ -26,7 +26,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
# ifdef OSGTERRAIN_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGTERRAIN_EXPORT
# elif defined( OSGTERRAIN_LIBRARY )
# define OSGTERRAIN_EXPORT __declspec(dllexport)
# else
# define OSGTERRAIN_EXPORT __declspec(dllimport)

View File

@ -26,7 +26,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
# ifdef OSGTEXT_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGTEXT_EXPORT
# elif defined( OSGTEXT_LIBRARY )
# define OSGTEXT_EXPORT __declspec(dllexport)
# else
# define OSGTEXT_EXPORT __declspec(dllimport)

View File

@ -27,7 +27,9 @@
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGUTIL_LIBRARY
# if defined( _LIB ) || defined( USE_STATIC )
# define OSGUTIL_EXPORT
# elif defined( OSGUTIL_LIBRARY )
# define OSGUTIL_EXPORT __declspec(dllexport)
# else
# define OSGUTIL_EXPORT __declspec(dllimport)