From Rodger James, changed the Win32 static library compilation support to use
OSG_LIBRARY_STATIC to avoid problems with building libs when not required.
This commit is contained in:
parent
91855e7c50
commit
9c93332c03
@ -31,13 +31,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSG_EXPORT
|
||||
# elif defined( OSG_LIBRARY )
|
||||
# define OSG_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSG_EXPORT __declspec(dllimport)
|
||||
# endif /* SG_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSG_EXPORT
|
||||
#endif
|
||||
@ -68,3 +68,4 @@ State and Drawables, and maths and general helper classes.
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -26,13 +26,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGDB_EXPORT
|
||||
# elif defined( OSGDB_LIBRARY )
|
||||
# define OSGDB_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGDB_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGDBSG_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGDB_EXPORT
|
||||
#endif
|
||||
@ -46,3 +46,4 @@ The plugin framework in centred around the osgDB::Registry, and allows plugins w
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -16,13 +16,13 @@
|
||||
#define OSGFX_EXPORT_
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGFX_EXPORT
|
||||
# elif defined( OSGFX_LIBRARY )
|
||||
# define OSGFX_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGFX_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGFX_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGFX_EXPORT
|
||||
#endif
|
||||
|
@ -27,13 +27,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGGA_EXPORT
|
||||
# elif defined( OSGGA_LIBRARY )
|
||||
# define OSGGA_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGGA_EXPORT __declspec(dllimport)
|
||||
#endif /* OSGUTIL_LIBRARY */
|
||||
#endif
|
||||
#else
|
||||
#define OSGGA_EXPORT
|
||||
#endif
|
||||
|
@ -25,13 +25,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGINTROSPECTION_EXPORT
|
||||
# elif defined( OSGINTROSPECTION_LIBRARY )
|
||||
# define OSGINTROSPECTION_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGINTROSPECTION_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGINTROSPECTION_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGINTROSPECTION_EXPORT
|
||||
#endif
|
||||
|
@ -27,13 +27,13 @@
|
||||
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGPARTICLE_EXPORT
|
||||
# elif defined( OSGPARTICLE_LIBRARY )
|
||||
# define OSGPARTICLE_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGPARTICLE_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGPARTICLE_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGPARTICLE_EXPORT
|
||||
#endif
|
||||
|
@ -27,13 +27,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGPRODUCER_EXPORT
|
||||
# elif defined( OSGPRODUCER_LIBRARY )
|
||||
# define OSGPRODUCER_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGPRODUCER_EXPORT __declspec(dllimport)
|
||||
#endif /* OSGPRODUCER_LIBRARY */
|
||||
#endif
|
||||
#else
|
||||
#define OSGPRODUCER_EXPORT
|
||||
#endif
|
||||
|
@ -25,13 +25,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGSIM_EXPORT
|
||||
# elif defined( OSGSIM_LIBRARY )
|
||||
# define OSGSIM_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGSIM_EXPORT __declspec(dllimport)
|
||||
# endif /* SG_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGSIM_EXPORT
|
||||
#endif
|
||||
|
@ -26,13 +26,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGTERRAIN_EXPORT
|
||||
# elif defined( OSGTERRAIN_LIBRARY )
|
||||
# define OSGTERRAIN_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGTERRAIN_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGTERRAIN_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGTERRAIN_EXPORT
|
||||
#endif
|
||||
|
@ -26,13 +26,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGTEXT_EXPORT
|
||||
# elif defined( OSGTEXT_LIBRARY )
|
||||
# define OSGTEXT_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGTEXT_EXPORT __declspec(dllimport)
|
||||
# endif /* OSGTEXT_LIBRARY */
|
||||
# endif
|
||||
#else
|
||||
# define OSGTEXT_EXPORT
|
||||
#endif
|
||||
|
@ -27,13 +27,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
|
||||
# if defined( _LIB ) || defined( USE_STATIC )
|
||||
# if defined( OSG_LIBRARY_STATIC )
|
||||
# define OSGUTIL_EXPORT
|
||||
# elif defined( OSGUTIL_LIBRARY )
|
||||
# define OSGUTIL_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define OSGUTIL_EXPORT __declspec(dllimport)
|
||||
#endif /* OSGUTIL_LIBRARY */
|
||||
#endif
|
||||
#else
|
||||
#define OSGUTIL_EXPORT
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user