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
162
162
src/jni/throwable.h
163
163
src/jni/traits.h )
164
164
165
- set (ios_SRCS
165
+ set (ios_and_desktop_SRCS
166
166
src/ios/collection_reference_ios.cc
167
167
src/ios/collection_reference_ios.h
168
168
src/ios/converter_ios.h
@@ -203,13 +203,24 @@ set(wrapper_assertions_SRCS
203
203
src/common/wrapper_assertions.cc
204
204
src/common/wrapper_assertions.h )
205
205
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
+
206
213
if (ANDROID )
207
214
set (firestore_platform_SRCS "${android_SRCS} " )
208
215
209
216
else ()
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 ()
213
224
endif ()
214
225
215
226
add_library (firebase_firestore STATIC
You can’t perform that action at this time.
0 commit comments