From d2dc3702ed690a11821e28985d505428c8c76c45 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 18 Sep 2009 12:46:52 +0000 Subject: [PATCH] windows port --- src/BLSURFPlugin/BLSURFPlugin_i.cxx | 11 +++++++++++ src/BLSURFPlugin/Makefile.am | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_i.cxx index 6eceece..df84e41 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_i.cxx @@ -23,6 +23,16 @@ // #include "utilities.h" +#ifdef WIN32 + #if defined BLSURFPLUGIN_EXPORTS || defined BLSURFEngine_EXPORTS + #define BLSURFPLUGIN_EXPORT __declspec( dllexport ) + #else + #define BLSURFPLUGIN_EXPORT __declspec( dllimport ) + #endif +#else + #define BLSURFPLUGIN_EXPORT +#endif + #include "BLSURFPlugin_BLSURF_i.hxx" #include "BLSURFPlugin_Hypothesis_i.hxx" @@ -40,6 +50,7 @@ template class BLSURFPlugin_Creator_i:public HypothesisCreator_i extern "C" { + BLSURFPLUGIN_EXPORT GenericHypothesisCreator_i* GetHypothesisCreator (const char* aHypName) { MESSAGE("GetHypothesisCreator " << aHypName); diff --git a/src/BLSURFPlugin/Makefile.am b/src/BLSURFPlugin/Makefile.am index aa7f030..209aa9c 100644 --- a/src/BLSURFPlugin/Makefile.am +++ b/src/BLSURFPlugin/Makefile.am @@ -59,6 +59,9 @@ libBLSURFEngine_la_CPPFLAGS = \ libBLSURFEngine_la_LDFLAGS = \ ../../idl/libSalomeIDLBLSURFPLUGIN.la \ + $(PYTHON_LIBS) \ + $(CAS_KERNEL) -lTKBRep -lTKGeomBase -lTKGeomAlgo -lTKTopAlgo -lTKLCAF -lTKXSBase -lTKG2d -lTKG3d \ $(BLSURF_LIBS) \ - $(SMESH_LDFLAGS) -lSMESHimpl -lSMESHEngine -lStdMeshersEngine \ - $(KERNEL_LDFLAGS) -lSalomeGenericObj + $(SMESH_LDFLAGS) -lSMESHimpl -lSMESHEngine -lStdMeshersEngine -lSMDS -lSMESHDS \ + $(GEOM_LDFLAGS) -lGEOMbasic \ + $(KERNEL_LDFLAGS) -lSalomeGenericObj -lSalomeNS -lSALOMELocalTrace -- 2.39.2