diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Modules/ExportModules.h |
Diffstat (limited to 'Runtime/Modules/ExportModules.h')
-rw-r--r-- | Runtime/Modules/ExportModules.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Runtime/Modules/ExportModules.h b/Runtime/Modules/ExportModules.h new file mode 100644 index 0000000..47f6b02 --- /dev/null +++ b/Runtime/Modules/ExportModules.h @@ -0,0 +1,32 @@ +#pragma once + +#ifndef BUILDING_COREMODULE +#define BUILDING_COREMODULE 1 +#endif + +#if UNITY_WIN && UNITY_STANDALONE && !UNITY_WINRT && 0 + +#if BUILDING_COREMODULE +#define EXPORT_COREMODULE __declspec(dllexport) +#else +#define EXPORT_COREMODULE __declspec(dllimport) +#endif + +#define EXPORT_MODULE __declspec(dllexport) + +#elif UNITY_OSX && UNITY_STANDALONE && 0 + +#if BUILDING_COREMODULE +#define EXPORT_COREMODULE __attribute__((visibility("default"))) +#else +#define EXPORT_COREMODULE +#endif + +#define EXPORT_MODULE __attribute__((visibility("default"))) + +#else + +#define EXPORT_COREMODULE +#define EXPORT_MODULE + +#endif |