diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-01-10 04:11:59 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-01-10 04:11:59 +0000 |
| commit | 6710c248554e991678a7f8aaebb45b12ea962f57 (patch) | |
| tree | dd69ffece1c5abb505e0168c31fc5aadcf573ac9 /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Updated unity plugin source (diff) | |
| download | DiligentEngine-6710c248554e991678a7f8aaebb45b12ea962f57.tar.gz DiligentEngine-6710c248554e991678a7f8aaebb45b12ea962f57.zip | |
Update platform defition in Unity plugin
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/src/PlatformBase.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt index 8737991..4275979 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt +++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt @@ -90,6 +90,10 @@ elseif(PLATFORM_ANDROID) target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_ANDROID=1) elseif(PLATFORM_LINUX) target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_LINUX=1) +elseif(PLATFORM_MACOS) + target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_OSX=1) +elseif(PLATFORM_IOS) + target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_IPHONE=1) endif() if(MSVC) diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/PlatformBase.h b/unityplugin/GhostCubePlugin/PluginSource/src/PlatformBase.h index ce25db7..9b11d35 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/PlatformBase.h +++ b/unityplugin/GhostCubePlugin/PluginSource/src/PlatformBase.h @@ -13,7 +13,7 @@ // UNITY_ANDROID - Android // UNITY_METRO - WSA or UWP // UNITY_WEBGL - WebGL -#if defined(UNITY_WIN) || defined(UNITY_METRO) || defined(UNITY_ANDROID) || defined(UNITY_LINUX) || defined(UNITY_WEBGL) +#if defined(UNITY_WIN) || defined(UNITY_METRO) || defined(UNITY_ANDROID) || defined(UNITY_LINUX) || defined(UNITY_WEBGL) || defined(UNITY_OSX) || defined(UNITY_IPHONE) // these are defined externally #elif _MSC_VER #define UNITY_WIN 1 |
