Commit b256555e authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation errors on Windows

parent 59b69776
...@@ -78,7 +78,7 @@ namespace OpenMM { ...@@ -78,7 +78,7 @@ namespace OpenMM {
* from your interaction code. * from your interaction code.
*/ */
class OPENMM_EXPORT OpenCLBondedUtilities { class OPENMM_EXPORT_OPENCL OpenCLBondedUtilities {
public: public:
OpenCLBondedUtilities(OpenCLContext& context); OpenCLBondedUtilities(OpenCLContext& context);
~OpenCLBondedUtilities(); ~OpenCLBondedUtilities();
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
namespace OpenMM { namespace OpenMM {
class OPENMM_EXPORT OpenCLCompact { class OPENMM_EXPORT_OPENCL OpenCLCompact {
public: public:
OpenCLCompact(OpenCLContext& context); OpenCLCompact(OpenCLContext& context);
~OpenCLCompact(); ~OpenCLCompact();
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define NOMINMAX #define NOMINMAX
#endif #endif
#include <cl.hpp> #include <cl.hpp>
#include "openmm/internal/windowsExport.h" #include "windowsExportOpenCL.h"
#include "OpenCLPlatform.h" #include "OpenCLPlatform.h"
namespace OpenMM { namespace OpenMM {
...@@ -153,7 +153,7 @@ struct mm_int16 { ...@@ -153,7 +153,7 @@ struct mm_int16 {
* thread is not used and calculations are performed on the main application thread. * thread is not used and calculations are performed on the main application thread.
*/ */
class OPENMM_EXPORT OpenCLContext { class OPENMM_EXPORT_OPENCL OpenCLContext {
public: public:
class WorkTask; class WorkTask;
class WorkThread; class WorkThread;
......
...@@ -43,7 +43,7 @@ namespace OpenMM { ...@@ -43,7 +43,7 @@ namespace OpenMM {
* user defined mathematical expressions. * user defined mathematical expressions.
*/ */
class OPENMM_EXPORT OpenCLExpressionUtilities { class OPENMM_EXPORT_OPENCL OpenCLExpressionUtilities {
public: public:
OpenCLExpressionUtilities(OpenCLContext& context) : context(context) { OpenCLExpressionUtilities(OpenCLContext& context) : context(context) {
} }
......
...@@ -52,7 +52,7 @@ namespace OpenMM { ...@@ -52,7 +52,7 @@ namespace OpenMM {
* multiply every value of the original data set by the total number of data points. * multiply every value of the original data set by the total number of data points.
*/ */
class OPENMM_EXPORT OpenCLFFT3D { class OPENMM_EXPORT_OPENCL OpenCLFFT3D {
public: public:
/** /**
* Create an OpenCLFFT3D object for performing transforms of a particular size. * Create an OpenCLFFT3D object for performing transforms of a particular size.
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * * along with this program. If not, see <http://www.gnu.org/licenses/>. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/internal/windowsExport.h" #include "windowsExportOpenCL.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -37,7 +37,7 @@ namespace OpenMM { ...@@ -37,7 +37,7 @@ namespace OpenMM {
* about the behavior and requirements of that force. * about the behavior and requirements of that force.
*/ */
class OPENMM_EXPORT OpenCLForceInfo { class OPENMM_EXPORT_OPENCL OpenCLForceInfo {
public: public:
OpenCLForceInfo(int requiredForceBuffers) : requiredForceBuffers(requiredForceBuffers) { OpenCLForceInfo(int requiredForceBuffers) : requiredForceBuffers(requiredForceBuffers) {
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "openmm/System.h" #include "openmm/System.h"
#include "OpenCLContext.h" #include "OpenCLContext.h"
#include "openmm/internal/windowsExport.h" #include "windowsExportOpenCL.h"
#include <iosfwd> #include <iosfwd>
namespace OpenMM { namespace OpenMM {
...@@ -39,7 +39,7 @@ namespace OpenMM { ...@@ -39,7 +39,7 @@ namespace OpenMM {
* common workspace arrays, random number generation, and enforcing constraints. * common workspace arrays, random number generation, and enforcing constraints.
*/ */
class OPENMM_EXPORT OpenCLIntegrationUtilities { class OPENMM_EXPORT_OPENCL OpenCLIntegrationUtilities {
public: public:
OpenCLIntegrationUtilities(OpenCLContext& context, const System& system); OpenCLIntegrationUtilities(OpenCLContext& context, const System& system);
~OpenCLIntegrationUtilities(); ~OpenCLIntegrationUtilities();
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * * along with this program. If not, see <http://www.gnu.org/licenses/>. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/internal/windowsExport.h" #include "windowsExportOpenCL.h"
#include <string> #include <string>
namespace OpenMM { namespace OpenMM {
...@@ -38,7 +38,7 @@ namespace OpenMM { ...@@ -38,7 +38,7 @@ namespace OpenMM {
* kernels subfolder. * kernels subfolder.
*/ */
class OPENMM_EXPORT OpenCLKernelSources { class OPENMM_EXPORT_OPENCL OpenCLKernelSources {
public: public:
@CL_FILE_DECLARATIONS@ @CL_FILE_DECLARATIONS@
}; };
......
...@@ -61,7 +61,7 @@ namespace OpenMM { ...@@ -61,7 +61,7 @@ namespace OpenMM {
* by ForceImpls during calcForcesAndEnergy(). * by ForceImpls during calcForcesAndEnergy().
*/ */
class OPENMM_EXPORT OpenCLNonbondedUtilities { class OPENMM_EXPORT_OPENCL OpenCLNonbondedUtilities {
public: public:
class ParameterInfo; class ParameterInfo;
OpenCLNonbondedUtilities(OpenCLContext& context); OpenCLNonbondedUtilities(OpenCLContext& context);
......
...@@ -40,7 +40,7 @@ class OpenCLNonbondedUtilities; ...@@ -40,7 +40,7 @@ class OpenCLNonbondedUtilities;
* on the number of parameters required. * on the number of parameters required.
*/ */
class OPENMM_EXPORT OpenCLParameterSet { class OPENMM_EXPORT_OPENCL OpenCLParameterSet {
public: public:
/** /**
* Create an OpenCLParameterSet. * Create an OpenCLParameterSet.
......
...@@ -39,7 +39,7 @@ using std::string; ...@@ -39,7 +39,7 @@ using std::string;
using std::stringstream; using std::stringstream;
using std::vector; using std::vector;
extern "C" OPENMM_EXPORT void registerPlatforms() { extern "C" OPENMM_EXPORT_OPENCL void registerPlatforms() {
Platform::registerPlatform(new OpenCLPlatform()); Platform::registerPlatform(new OpenCLPlatform());
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "OpenCLArray.h" #include "OpenCLArray.h"
#include "OpenCLKernelSources.h" #include "OpenCLKernelSources.h"
#include "openmm/internal/windowsExport.h" #include "windowsExportOpenCL.h"
#include <map> #include <map>
namespace OpenMM { namespace OpenMM {
......
...@@ -111,11 +111,11 @@ ENDIF(OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS) ...@@ -111,11 +111,11 @@ ENDIF(OPENMM_BUILD_C_AND_FORTRAN_WRAPPERS)
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src) INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src)
ADD_LIBRARY(${SHARED_AMOEBA_TARGET} SHARED ${SOURCE_AMOEBA_FILES} ${SOURCE_AMOEBA_INCLUDE_FILES} ${API_AMOEBA_ABS_INCLUDE_FILES}) ADD_LIBRARY(${SHARED_AMOEBA_TARGET} SHARED ${SOURCE_AMOEBA_FILES} ${SOURCE_AMOEBA_INCLUDE_FILES} ${API_AMOEBA_ABS_INCLUDE_FILES})
SET_TARGET_PROPERTIES(${SHARED_AMOEBA_TARGET} PROPERTIES COMPILE_FLAGS "-DOPENMM_BUILDING_SHARED_LIBRARY -DLEPTON_BUILDING_SHARED_LIBRARY") SET_TARGET_PROPERTIES(${SHARED_AMOEBA_TARGET} PROPERTIES COMPILE_FLAGS "-DOPENMM_AMOEBA_BUILDING_SHARED_LIBRARY -DLEPTON_BUILDING_SHARED_LIBRARY")
IF( CREATE_SERIALIZABLE_OPENMM_AMOEBA ) IF( CREATE_SERIALIZABLE_OPENMM_AMOEBA )
ADD_LIBRARY(${SHARED_AMOEBA_SERIALIZABLE_TARGET} SHARED ${SOURCE_AMOEBA_FILES} ${SOURCE_AMOEBA_INCLUDE_FILES} ${API_AMOEBA_ABS_INCLUDE_FILES}) ADD_LIBRARY(${SHARED_AMOEBA_SERIALIZABLE_TARGET} SHARED ${SOURCE_AMOEBA_FILES} ${SOURCE_AMOEBA_INCLUDE_FILES} ${API_AMOEBA_ABS_INCLUDE_FILES})
SET_TARGET_PROPERTIES(${SHARED_AMOEBA_SERIALIZABLE_TARGET} PROPERTIES COMPILE_FLAGS "-DOPENMM_BUILDING_SHARED_LIBRARY -DLEPTON_BUILDING_SHARED_LIBRARY -DOPENMM_SERIALIZE") SET_TARGET_PROPERTIES(${SHARED_AMOEBA_SERIALIZABLE_TARGET} PROPERTIES COMPILE_FLAGS "-DOPENMM_AMOEBA_BUILDING_SHARED_LIBRARY -DLEPTON_BUILDING_SHARED_LIBRARY -DOPENMM_SERIALIZE")
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../serialization/include) INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../serialization/include)
ENDIF( CREATE_SERIALIZABLE_OPENMM_AMOEBA ) ENDIF( CREATE_SERIALIZABLE_OPENMM_AMOEBA )
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -48,7 +48,7 @@ namespace OpenMM { ...@@ -48,7 +48,7 @@ namespace OpenMM {
* an angle has been added, you can modify its force field parameters by calling setAngleParameters(). * an angle has been added, you can modify its force field parameters by calling setAngleParameters().
*/ */
class OPENMM_EXPORT AmoebaAngleForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaAngleForce : public Force {
public: public:
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/Vec3.h" #include "openmm/Vec3.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <map> #include <map>
#include <vector> #include <vector>
...@@ -50,7 +50,7 @@ namespace OpenMM { ...@@ -50,7 +50,7 @@ namespace OpenMM {
* a bond has been added, you can modify its force field parameters by calling setBondParameters(). * a bond has been added, you can modify its force field parameters by calling setBondParameters().
*/ */
class OPENMM_EXPORT AmoebaBondForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaBondForce : public Force {
public: public:
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -48,7 +48,7 @@ namespace OpenMM { ...@@ -48,7 +48,7 @@ namespace OpenMM {
* by calling setParticleParameters(). * by calling setParticleParameters().
*/ */
class OPENMM_EXPORT AmoebaGeneralizedKirkwoodForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaGeneralizedKirkwoodForce : public Force {
public: public:
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -48,7 +48,7 @@ namespace OpenMM { ...@@ -48,7 +48,7 @@ namespace OpenMM {
* an angle has been added, you can modify its force field parameters by calling setAngleParameters(). * an angle has been added, you can modify its force field parameters by calling setAngleParameters().
*/ */
class OPENMM_EXPORT AmoebaInPlaneAngleForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaInPlaneAngleForce : public Force {
public: public:
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/OpenMMException.h" #include "openmm/OpenMMException.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include "openmm/Vec3.h" #include "openmm/Vec3.h"
#include <sstream> #include <sstream>
...@@ -49,7 +49,7 @@ namespace OpenMM { ...@@ -49,7 +49,7 @@ namespace OpenMM {
* an entry has been added, you can modify its force field parameters by calling setMultipoleParameters(). * an entry has been added, you can modify its force field parameters by calling setMultipoleParameters().
*/ */
class OPENMM_EXPORT AmoebaMultipoleForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaMultipoleForce : public Force {
public: public:
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -45,7 +45,7 @@ namespace OpenMM { ...@@ -45,7 +45,7 @@ namespace OpenMM {
* an out-of-plane bend has been added, you can modify its force field parameters by calling setOutOfPlaneBendParameters(). * an out-of-plane bend has been added, you can modify its force field parameters by calling setOutOfPlaneBendParameters().
*/ */
class OPENMM_EXPORT AmoebaOutOfPlaneBendForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaOutOfPlaneBendForce : public Force {
public: public:
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/Force.h" #include "openmm/Force.h"
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExportAmoeba.h"
#include <vector> #include <vector>
namespace OpenMM { namespace OpenMM {
...@@ -45,7 +45,7 @@ namespace OpenMM { ...@@ -45,7 +45,7 @@ namespace OpenMM {
* a torsion has been added, you can modify its force field parameters by calling setPiTorsionParameters(). * a torsion has been added, you can modify its force field parameters by calling setPiTorsionParameters().
*/ */
class OPENMM_EXPORT AmoebaPiTorsionForce : public Force { class OPENMM_EXPORT_AMOEBA AmoebaPiTorsionForce : public Force {
public: public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment