diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-03 20:51:11 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-03 20:51:11 +0000 |
| commit | afe52947d057ab33af8914d712bb4bbac785446a (patch) | |
| tree | c12b9881609c3d6cbc56b47da6d213eec3fc9c41 /unityplugin | |
| parent | Added DG icon to MacOS bundles (diff) | |
| download | DiligentEngine-afe52947d057ab33af8914d712bb4bbac785446a.tar.gz DiligentEngine-afe52947d057ab33af8914d712bb4bbac785446a.zip | |
Enabled IOS build
Diffstat (limited to 'unityplugin')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | unityplugin/GhostCubeScene/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | unityplugin/UnityEmulator/CMakeLists.txt | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt index ffd9b99..95871e8 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt +++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt @@ -119,6 +119,8 @@ elseif(PLATFORM_LINUX) set(UNITY_PLUGIN_PATH ${UNITY_PLUGIN_PATH}/libGhostCubePlugin.so) elseif(PLATFORM_MACOS) set(UNITY_PLUGIN_PATH ${UNITY_PLUGIN_PATH}/MacOS/libGhostCubePlugin.so) +elseif(PLATFORM_IOS) + message(WARNING "No unity plugin path specified") else() message(FATAL_ERROR "Unsupported platform") endif() diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt index 4372595..a46e60b 100644 --- a/unityplugin/GhostCubeScene/CMakeLists.txt +++ b/unityplugin/GhostCubeScene/CMakeLists.txt @@ -107,6 +107,11 @@ elseif(PLATFORM_MACOS) message(FATAL_ERROR "CoreVideo not found") endif() target_link_libraries(GhostCubeScene PRIVATE ${OPENGL_LIBRARY} ${CORE_VIDEO}) +elseif(PLATFORM_IOS) + list(APPEND SOURCE src/LoadPluginFunctions.cpp) + #get_emulator_ios_source(IOS_SOURCE IOS_INCLUDE IOS_RESOURCES IOS_INFO_PLIST IOS_INCLUDE_DIRS) + add_executable(GhostCubeScene MACOSX_BUNDLE ${SOURCE} ${IOS_SOURCE} ${INCLUDE} ${IOS_INCLUDE} ${ASSETS} ${SHADERS} ${IOS_RESOURCES}) + else() message(FATAL_ERROR "Unknown platform") endif() diff --git a/unityplugin/UnityEmulator/CMakeLists.txt b/unityplugin/UnityEmulator/CMakeLists.txt index 66f71a8..a3ac326 100644 --- a/unityplugin/UnityEmulator/CMakeLists.txt +++ b/unityplugin/UnityEmulator/CMakeLists.txt @@ -136,6 +136,9 @@ elseif(PLATFORM_MACOS) PARENT_SCOPE
)
endfunction() + +elseif(PLATFORM_IOS) + else() message(FATAL_ERROR "Unknown platform") endif() |
