From b627a510d3ea60b4748e171d5702bedca399bfd9 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 16 Dec 2017 12:24:15 -0800 Subject: CMake: updated Android build rules --- unityplugin/GhostCubePlugin/PluginSource/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'unityplugin/GhostCubePlugin/PluginSource') 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) -- cgit v1.2.3