File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ set(android_SRCS
162162 src/jni/throwable.h
163163 src/jni/traits.h)
164164
165- set (ios_SRCS
165+ set (ios_and_desktop_SRCS
166166 src/ios/collection_reference_ios.cc
167167 src/ios/collection_reference_ios.h
168168 src/ios/converter_ios.h
@@ -203,13 +203,24 @@ set(wrapper_assertions_SRCS
203203 src/common/wrapper_assertions.cc
204204 src/common/wrapper_assertions.h)
205205
206+ set (ios_only_SRCS
207+ src/ios/create_firebase_metadata_provider_apple.mm)
208+
209+ set (desktop_only_SRCS
210+ src/ios/create_firebase_metadata_provider_desktop.cc
211+ src/ios/firebase_metadata_provider_desktop.cc)
212+
206213if (ANDROID)
207214 set (firestore_platform_SRCS "${android_SRCS} " )
208215
209216else ()
210- # The iOS implementation is actually portable to desktop environments as
211- # well.
212- set (firestore_platform_SRCS "${ios_SRCS} " )
217+ if (IOS)
218+ set (firestore_platform_SRCS "${ios_and_desktop_SRCS} " "${ios_only_SRCS} " )
219+ else ()
220+ # The iOS implementation is actually portable to desktop environments as
221+ # well.
222+ set (firestore_platform_SRCS "${ios_and_desktop_SRCS} " "${desktop_only_SRCS} " )
223+ endif ()
213224endif ()
214225
215226add_library (firebase_firestore STATIC
You can’t perform that action at this time.
0 commit comments