Adding support for custom epanet_py build target

This commit is contained in:
Michael Tryby
2019-02-04 14:28:32 -05:00
parent a16cc7cae1
commit 6a0151b9c7
9 changed files with 412 additions and 312 deletions

View File

@@ -18,26 +18,16 @@
#ifndef EPANET2_2_H
#define EPANET2_2_H
#ifdef WITH_GENX
#include "epanet2_export.h"
#ifdef epanet_py_EXPORTS
#define DLLEXPORT
#else
// --- define WINDOWS
#undef WINDOWS
#ifdef _WIN32
#define WINDOWS
#endif
#ifdef __WIN32__
#define WINDOWS
#endif
// --- define DLLEXPORT
#ifndef DLLEXPORT
#ifdef WINDOWS
#ifdef __cplusplus
#define DLLEXPORT __declspec(dllexport)
#else
#ifdef _WIN32
#ifdef epanet2_EXPORTS
#define DLLEXPORT __declspec(dllexport) __stdcall
#endif // __cplusplus
#else
#define DLLEXPORT __declspec(dllimport) __stdcall
#endif
#elif defined(CYGWIN)
#define DLLEXPORT __stdcall
#else