Skip to content

Commit 1752226

Browse files
authored
Merge pull request #85 from firebase/fix-firestore
fix linux build
2 parents daffc81 + 83c7c5d commit 1752226

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ set(PROJECT_LIST_HEADER "#define PROJECT_LIST(X)")
247247
list(APPEND PROJECT_LIST_HEADER " X(App)")
248248

249249
# Include Firebase editor tools.
250-
if (DESKTOP AND FIREBASE_INCLUDE_EDITOR_TOOL)
250+
if (DESKTOP AND APPLE AND FIREBASE_INCLUDE_EDITOR_TOOL)
251251
add_subdirectory(editor)
252252
endif()
253253

cmake/FindUnity.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,7 @@ if(FIREBASE_INCLUDE_UNITY)
138138
"${UNITY_CSHARP_BUILD_EXE}" NAME
139139
)
140140

141-
# On Linux, Unity's mono distribution can fail to execute build tools in a
142-
# non-clean environment so wrap in a script that clears the environment.
143-
if(CMAKE_HOST_UNIX AND NOT CMAKE_HOST_APPLE)
144-
set(UNITY_CSHARP_BUILD_WRAPPER_DIR
145-
"${CMAKE_CURRENT_BINARY_DIR}/unity_csharp_build_wrapper"
146-
)
147-
set(UNITY_CSHARP_BUILD_WRAPPER
148-
"${UNITY_CSHARP_BUILD_WRAPPER_DIR}/${UNITY_CSHARP_BUILD_EXE_NAME}"
149-
)
150-
file(MAKE_DIRECTORY "${UNITY_CSHARP_BUILD_WRAPPER_DIR}")
151-
# Copy the build script to preserve the executable bit.
152-
file(COPY "${UNITY_CSHARP_BUILD_EXE}"
153-
DESTINATION "${UNITY_CSHARP_BUILD_WRAPPER_DIR}"
154-
)
155-
file(WRITE "${UNITY_CSHARP_BUILD_WRAPPER}"
156-
"#!/bin/sh\nenv -i ${UNITY_CSHARP_BUILD_EXE} \$@\n"
157-
)
158-
set(UNITY_CSHARP_BUILD_EXE "${UNITY_CSHARP_BUILD_WRAPPER}"
159-
CACHE STRING "" FORCE
160-
)
161-
elseif(CMAKE_HOST_WIN32)
141+
if(CMAKE_HOST_WIN32)
162142
# Mono that is packaged with unity has a bug in resgen.bat where it
163143
# incorrectly forwards arguments. Resgen.bat gets passed an argument
164144
# like 'a,b' and incorrectly forwards it as 'a b'. Copy the mono folder

firestore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ set(firebase_firestore_src
6666
src/ListenerRegistration.cs
6767
src/ListenerRegistrationMap.cs
6868
src/LoadBundleTaskProgress.cs
69-
src/Metadatachanges.cs
69+
src/MetadataChanges.cs
7070
src/MonoPInvokeCallbackAttribute.cs
7171
src/Query.cs
7272
src/QuerySnapshot.cs

0 commit comments

Comments
 (0)