Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ CMAKE_OPTIONS=

if [ -d "../firebase-cpp-sdk" ]; then
CMAKE_OPTIONS="-DFIREBASE_CPP_SDK_DIR=`realpath ../firebase-cpp-sdk` "
cd ../firebase-cpp-sdk
./gradlew
cd ../firebase-unity-sdk
fi

shopt -s nullglob
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindUnityMono.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if(FIREBASE_INCLUDE_UNITY)
See the readme.md for more information.")
endif()

if(NOT EXISTS ${UNITY_EDITOR_IOS_XCODE_DLL})
if(APPLE AND NOT EXISTS ${UNITY_EDITOR_IOS_XCODE_DLL})
message(FATAL_ERROR "Fail to find UnityEditor.iOS.Extensions.Xcode.dll. \
Please install iOS build support from Unity.")
endif()
Expand Down
5 changes: 4 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

mono_add_external_dll(unity_editor_cs "${UNITY_EDITOR_DLL}")
mono_add_external_dll(unity_engine_cs "${UNITY_ENGINE_DLL}")
mono_add_external_dll(unity_ios_extensions_xcode_cs "${UNITY_EDITOR_IOS_XCODE_DLL}")

if(APPLE)
mono_add_external_dll(unity_ios_extensions_xcode_cs "${UNITY_EDITOR_IOS_XCODE_DLL}")
endif()

# Dont pack libraries shipped with unity
unity_pack_skip(unity_editor_cs)
Expand Down