Test EXPORTS definition with target name as suggested by cmake

This commit is contained in:
adam 2009-03-06 16:00:11 +00:00
parent f408ed4ef2
commit c9cb7f7c5d
16 changed files with 16 additions and 16 deletions

View File

@ -46,7 +46,7 @@
#include "SMESH_Controls.hxx" #include "SMESH_Controls.hxx"
#ifdef WNT #ifdef WNT
#if defined SMESHCONTROLS_EXPORTS #if defined SMESHCONTROLS_EXPORTS || defined SMESHControls_EXPORTS
#define SMESHCONTROLS_EXPORT __declspec( dllexport ) #define SMESHCONTROLS_EXPORT __declspec( dllexport )
#else #else
#define SMESHCONTROLS_EXPORT __declspec( dllimport ) #define SMESHCONTROLS_EXPORT __declspec( dllimport )

View File

@ -29,7 +29,7 @@
#include <string> #include <string>
#ifdef WNT #ifdef WNT
#if defined MESHDRIVER_EXPORTS #if defined MESHDRIVER_EXPORTS || defined MeshDriver_EXPORTS
#define MESHDRIVER_EXPORT __declspec( dllexport ) #define MESHDRIVER_EXPORT __declspec( dllexport )
#else #else
#define MESHDRIVER_EXPORT __declspec( dllimport ) #define MESHDRIVER_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define _SMESH_DriverDAT_HXX_ #define _SMESH_DriverDAT_HXX_
#ifdef WNT #ifdef WNT
#if defined MESHDRIVERDAT_EXPORTS #if defined MESHDRIVERDAT_EXPORTS || defined MeshDriverDAT_EXPORTS
#define MESHDRIVERDAT_EXPORT __declspec( dllexport ) #define MESHDRIVERDAT_EXPORT __declspec( dllexport )
#else #else
#define MESHDRIVERDAT_EXPORT __declspec( dllimport ) #define MESHDRIVERDAT_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define _SMESH_DriverMED_HXX_ #define _SMESH_DriverMED_HXX_
#ifdef WNT #ifdef WNT
#if defined MESHDRIVERMED_EXPORTS #if defined MESHDRIVERMED_EXPORTS || defined MeshDriverMED_EXPORTS
#define MESHDRIVERMED_EXPORT __declspec( dllexport ) #define MESHDRIVERMED_EXPORT __declspec( dllexport )
#else #else
#define MESHDRIVERMED_EXPORT __declspec( dllimport ) #define MESHDRIVERMED_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define _SMESH_DriverSTL_HXX_ #define _SMESH_DriverSTL_HXX_
#ifdef WNT #ifdef WNT
#if defined MESHDRIVERSTL_EXPORTS #if defined MESHDRIVERSTL_EXPORTS || defined MeshDriverSTL_EXPORTS
#define MESHDRIVERSTL_EXPORT __declspec( dllexport ) #define MESHDRIVERSTL_EXPORT __declspec( dllexport )
#else #else
#define MESHDRIVERSTL_EXPORT __declspec( dllimport ) #define MESHDRIVERSTL_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define _SMESH_DriverUNV_HXX_ #define _SMESH_DriverUNV_HXX_
#ifdef WNT #ifdef WNT
#if defined MESHDRIVERUNV_EXPORTS #if defined MESHDRIVERUNV_EXPORTS || defined MeshDriverUNV_EXPORTS
#define MESHDRIVERUNV_EXPORT __declspec( dllexport ) #define MESHDRIVERUNV_EXPORT __declspec( dllexport )
#else #else
#define MESHDRIVERUNV_EXPORT __declspec( dllimport ) #define MESHDRIVERUNV_EXPORT __declspec( dllimport )

View File

@ -29,7 +29,7 @@
#define SMESH_OBJECT_H #define SMESH_OBJECT_H
#ifdef WNT #ifdef WNT
#if defined SMESHOBJECT_EXPORTS #if defined SMESHOBJECT_EXPORTS || defined SMESHObject_EXPORTS
#define SMESHOBJECT_EXPORT __declspec( dllexport ) #define SMESHOBJECT_EXPORT __declspec( dllexport )
#else #else
#define SMESHOBJECT_EXPORT __declspec( dllimport ) #define SMESHOBJECT_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define _SMESH_SMESH_HXX_ #define _SMESH_SMESH_HXX_
#ifdef WNT #ifdef WNT
#if defined SMESH_EXPORTS #if defined SMESHimpl_EXPORTS
#define SMESH_EXPORT __declspec( dllexport ) #define SMESH_EXPORT __declspec( dllexport )
#else #else
#define SMESH_EXPORT __declspec( dllimport ) #define SMESH_EXPORT __declspec( dllimport )

View File

@ -32,7 +32,7 @@
#include CORBA_SERVER_HEADER(SMESH_Mesh) #include CORBA_SERVER_HEADER(SMESH_Mesh)
#ifdef WNT #ifdef WNT
# ifdef SMESHCLIENT_EXPORTS # if defined SMESHCLIENT_EXPORTS || defined SMESHClient_EXPORTS
# define SMESHCLIENT_EXPORT __declspec( dllexport ) # define SMESHCLIENT_EXPORT __declspec( dllexport )
# else # else
# define SMESHCLIENT_EXPORT __declspec( dllimport ) # define SMESHCLIENT_EXPORT __declspec( dllimport )

View File

@ -30,7 +30,7 @@
#define SMESH_TYPE_HEADER #define SMESH_TYPE_HEADER
#ifdef WNT #ifdef WNT
#if defined SMESHFILTERSSELECTION_EXPORTS #if defined SMESHFILTERSSELECTION_EXPORTS || defined SMESHFiltersSelection_EXPORTS
#define SMESHFILTERSSELECTION_EXPORT __declspec( dllexport ) #define SMESHFILTERSSELECTION_EXPORT __declspec( dllexport )
#else #else
#define SMESHFILTERSSELECTION_EXPORT __declspec( dllimport ) #define SMESHFILTERSSELECTION_EXPORT __declspec( dllimport )

View File

@ -26,7 +26,7 @@
#define SMESH_SMESHGUI_HXX #define SMESH_SMESHGUI_HXX
#ifdef WNT #ifdef WNT
#if defined SMESHGUI_EXPORTS #if defined SMESHGUI_EXPORTS || defined SMESH_EXPORTS
#define SMESHGUI_EXPORT __declspec( dllexport ) #define SMESHGUI_EXPORT __declspec( dllexport )
#else #else
#define SMESHGUI_EXPORT __declspec( dllimport ) #define SMESHGUI_EXPORT __declspec( dllimport )

View File

@ -29,7 +29,7 @@
#define _SMESH_I_SMESH_HXX_ #define _SMESH_I_SMESH_HXX_
#ifdef WNT #ifdef WNT
#if defined SMESH_I_EXPORTS #if defined SMESH_I_EXPORTS || defined SMESHEngine_EXPORTS
#define SMESH_I_EXPORT __declspec( dllexport ) #define SMESH_I_EXPORT __declspec( dllexport )
#else #else
#define SMESH_I_EXPORT __declspec( dllimport ) #define SMESH_I_EXPORT __declspec( dllimport )

View File

@ -27,7 +27,7 @@
#define LIBSMESH_SWIG_H #define LIBSMESH_SWIG_H
#ifdef WNT #ifdef WNT
#if defined SMESH_SWIG_EXPORTS #if defined SMESH_SWIG_EXPORTS || defined _libSMESH_Swig_EXPORTS
#define SMESH_SWIG_EXPORT __declspec( dllexport ) #define SMESH_SWIG_EXPORT __declspec( dllexport )
#else #else
#define SMESH_SWIG_EXPORT __declspec( dllimport ) #define SMESH_SWIG_EXPORT __declspec( dllimport )

View File

@ -28,7 +28,7 @@
#define _SMESH_StdMeshers_HXX_ #define _SMESH_StdMeshers_HXX_
#ifdef WNT #ifdef WNT
#if defined STDMESHERS_EXPORTS #if defined STDMESHERS_EXPORTS || defined StdMeshers_EXPORTS
#define STDMESHERS_EXPORT __declspec( dllexport ) #define STDMESHERS_EXPORT __declspec( dllexport )
#else #else
#define STDMESHERS_EXPORT __declspec( dllimport ) #define STDMESHERS_EXPORT __declspec( dllimport )

View File

@ -26,7 +26,7 @@
#define SMESH_STDMESHERSGUI_HXX #define SMESH_STDMESHERSGUI_HXX
#ifdef WNT #ifdef WNT
#if defined STDMESHERSGUI_EXPORTS #if defined STDMESHERSGUI_EXPORTS || defined StdMeshersGUI_EXPORTS
#define STDMESHERSGUI_EXPORT __declspec( dllexport ) #define STDMESHERSGUI_EXPORT __declspec( dllexport )
#else #else
#define STDMESHERSGUI_EXPORT __declspec( dllimport ) #define STDMESHERSGUI_EXPORT __declspec( dllimport )

View File

@ -28,7 +28,7 @@
#define _SMESH_StdMeshers_I_HXX_ #define _SMESH_StdMeshers_I_HXX_
#ifdef WNT #ifdef WNT
#if defined STDMESHERS_I_EXPORTS #if defined STDMESHERS_I_EXPORTS || defined StdMeshersEngine_EXPORTS
#define STDMESHERS_I_EXPORT __declspec( dllexport ) #define STDMESHERS_I_EXPORT __declspec( dllexport )
#else #else
#define STDMESHERS_I_EXPORT __declspec( dllimport ) #define STDMESHERS_I_EXPORT __declspec( dllimport )