From afe52947d057ab33af8914d712bb4bbac785446a Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 3 Feb 2018 12:51:11 -0800 Subject: Enabled IOS build --- unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 2 ++ unityplugin/GhostCubeScene/CMakeLists.txt | 5 +++++ unityplugin/UnityEmulator/CMakeLists.txt | 3 +++ 3 files changed, 10 insertions(+) (limited to 'unityplugin') 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() -- cgit v1.2.3