From 0d2b083616c1d1f8a0fd8882ffc0aaac270081f2 Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 25 Dec 2017 14:15:18 -0800 Subject: Enabled Unity Emulator on Linux. Linux platform is now fully supported --- unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unityplugin/GhostCubePlugin/PluginSource') 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() -- cgit v1.2.3