From 87df21f062176a7075b93895b959cb22bb4a1241 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 16 May 2006 14:26:32 +0000 Subject: [PATCH] Windows porting. --- src/NOTIFICATION_SWIG/NOTIFICATION.i | 5 ++ src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx | 5 +- .../SALOME_NOTIFICATION_SWIG.hxx | 47 +++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100755 src/NOTIFICATION_SWIG/SALOME_NOTIFICATION_SWIG.hxx diff --git a/src/NOTIFICATION_SWIG/NOTIFICATION.i b/src/NOTIFICATION_SWIG/NOTIFICATION.i index 38f506176..daaae3d0c 100644 --- a/src/NOTIFICATION_SWIG/NOTIFICATION.i +++ b/src/NOTIFICATION_SWIG/NOTIFICATION.i @@ -32,3 +32,8 @@ %{ #include "NOTIFICATION_Swig.hxx" %} + +%include SALOME_NOTIFICATION.hxx +%include SALOME_NOTIFICATION_SWIG.hxx +%include NOTIFICATION.hxx +%include NOTIFICATION_Swig.hxx diff --git a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx index a56c730c5..e3a202950 100644 --- a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx +++ b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx @@ -26,8 +26,9 @@ // Module : SALOME #include "NOTIFICATION.hxx" +#include "SALOME_NOTIFICATION_SWIG.hxx" -class NOTIFICATION_Supplier_Swig { +class NOTIFICATION_SWIG_EXPORT NOTIFICATION_Supplier_Swig { public: NOTIFICATION_Supplier_Swig(const char* instanceName, bool notif); ~NOTIFICATION_Supplier_Swig(); @@ -37,7 +38,7 @@ class NOTIFICATION_Supplier_Swig { NOTIFICATION_Supplier* _supplier; }; -class NOTIFICATION_Consumer_Swig { +class NOTIFICATION_SWIG_EXPORT NOTIFICATION_Consumer_Swig { public: NOTIFICATION_Consumer_Swig(); ~NOTIFICATION_Consumer_Swig(); diff --git a/src/NOTIFICATION_SWIG/SALOME_NOTIFICATION_SWIG.hxx b/src/NOTIFICATION_SWIG/SALOME_NOTIFICATION_SWIG.hxx new file mode 100755 index 000000000..15149f84e --- /dev/null +++ b/src/NOTIFICATION_SWIG/SALOME_NOTIFICATION_SWIG.hxx @@ -0,0 +1,47 @@ +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SALOME_NOTIFICATION_SWIG.hxx +// Author : Oleg UVAROV +// Module : SALOME + +#ifndef _SALOME_NOTIFICATION_SWIG_HXX_ +#define _SALOME_NOTIFICATION_SWIG_HXX_ + +#ifdef WNT + #if defined NOTIFICATION_SWIG_EXPORTS + #if defined WIN32 + #define NOTIFICATION_SWIG_EXPORT __declspec( dllexport ) + #else + #define NOTIFICATION_SWIG_EXPORT + #endif + #else + #if defined WIN32 + #define NOTIFICATION_SWIG_EXPORT __declspec( dllimport ) + #else + #define NOTIFICATION_SWIG_EXPORT + #endif + #endif +#else + #define NOTIFICATION_SWIG_EXPORT +#endif + +#endif \ No newline at end of file -- 2.39.2