summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubePlugin/PluginSource
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-16 20:24:15 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-16 20:24:15 +0000
commitb627a510d3ea60b4748e171d5702bedca399bfd9 (patch)
tree0eb4d5cdd09a534940a11d96eb25a32ad1784092 /unityplugin/GhostCubePlugin/PluginSource
parentMinor update to CMake; fixed compiler warning; updated DiligentCore submodule (diff)
downloadDiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.tar.gz
DiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.zip
CMake: updated Android build rules
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
-rw-r--r--unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
index 7b5b5a6..1763759 100644
--- a/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
+++ b/unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.10)
+cmake_minimum_required (VERSION 3.6)
project(GhostCubePlugin CXX)
@@ -87,6 +87,11 @@ if(MSVC)
endif()
endif()
+if(PLATFORM_ANDROID)
+ target_compile_definitions(GhostCubePlugin-shared PRIVATE UNITY_ANDROID)
+ set_target_properties(GhostCubePlugin-shared PROPERTIES CXX_VISIBILITY_PRESET hidden) # -fvisibility=hidden
+endif()
+
set(UNITY_PLUGIN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../UnityProject/Assets/Plugins)
if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS)
if(PLATFORM_WIN32)