summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubePlugin/PluginSource
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2017-12-25 22:15:18 +0000
committerEgor <egor.yusov@gmail.com>2017-12-25 22:15:18 +0000
commit0d2b083616c1d1f8a0fd8882ffc0aaac270081f2 (patch)
tree3d3a0740bd26f1b58fd3a30ed6499543e02eeb2f /unityplugin/GhostCubePlugin/PluginSource
parentUpdated core & sample submodules (linux implementation) (diff)
downloadDiligentEngine-0d2b083616c1d1f8a0fd8882ffc0aaac270081f2.tar.gz
DiligentEngine-0d2b083616c1d1f8a0fd8882ffc0aaac270081f2.zip
Enabled Unity Emulator on Linux. Linux platform is now fully supported
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
-rw-r--r--unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
index 1763759..40a7740 100644
--- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
+++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
@@ -90,6 +90,9 @@ endif()
if(PLATFORM_ANDROID)
target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_ANDROID)
set_target_properties(GhostCubePlugin-shared PROPERTIES CXX_VISIBILITY_PRESET hidden) # -fvisibility=hidden
+elseif(PLATFORM_LINUX)
+ target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_LINUX)
+ set_target_properties(GhostCubePlugin-shared PROPERTIES CXX_VISIBILITY_PRESET hidden) # -fvisibility=hidden
endif()
set(UNITY_PLUGIN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../UnityProject/Assets/Plugins)
@@ -110,6 +113,8 @@ if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS)
set(UNITY_PLUGIN_PATH ${UNITY_PLUGIN_PATH}/GhostCubePlugin.dll)
elseif(PLATFORM_ANDROID)
set(UNITY_PLUGIN_PATH ${UNITY_PLUGIN_PATH}/Android/libGhostCubePlugin.so)
+elseif(PLATFORM_LINUX)
+ set(UNITY_PLUGIN_PATH ${UNITY_PLUGIN_PATH}/libGhostCubePlugin.so)
else()
message(FATAL_ERROR "Unsupported platform")
endif()