Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
compnerd committed Nov 13, 2023
1 parent 5ad92ca commit f339d09
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,23 @@ target_link_directories(firebase INTERFACE
third_party/firebase-development/usr/libs/windows/deps/app
third_party/firebase-development/usr/libs/windows/deps/app/external)

add_library(FirebaseCore
add_library(FirebaseCore SHARED
Sources/FirebaseCore/FirebaseApp+Swift.swift
Sources/FirebaseCore/FirebaseConfiguration.swift
Sources/FirebaseCore/FirebaseError.swift
Sources/FirebaseCore/FirebaseLogging+Swift.swift
Sources/FirebaseCore/FirebaseOptions+Swift.swift)
target_compile_options(FirebaseCore PRIVATE
-cxx-interoperability-mode=default)
target_link_libraries(FirebaseCore PUBLIC
firebase)
target_link_libraries(FirebaseCore PRIVATE
libcurl
firebase
firebase_app
flatbuffers
zlibstatic)

add_library(FirebaseAuth
add_library(FirebaseAuth SHARED
Sources/FirebaseAuth/FIRActionCodeOperation.swift
Sources/FirebaseAuth/FIRAuthTokenResult.swift
Sources/FirebaseAuth/FirebaseAuth+Swift.swift
Expand All @@ -45,14 +48,17 @@ add_library(FirebaseAuth
target_compile_options(FirebaseAuth PRIVATE
-cxx-interoperability-mode=default)
target_link_libraries(FirebaseAuth PUBLIC
firebase
FirebaseCore)
target_link_libraries(FirebaseAuth PRIVATE
crypto
firebase
firebase_rest_lib
flatbuffers)
flatbuffers
libcurl
ssl
zlibstatic)

add_library(FirebaseFirestore
add_library(FirebaseFirestore SHARED
Sources/FirebaseFirestore/CollectionReference+Swift.swift
Sources/FirebaseFirestore/DocumentReference+Swift.swift
Sources/FirebaseFirestore/DocumentSnapshot+Swift.swift
Expand All @@ -62,6 +68,7 @@ add_library(FirebaseFirestore
target_compile_options(FirebaseFirestore PRIVATE
-cxx-interoperability-mode=default)
target_link_libraries(FirebaseFirestore PUBLIC
firebase
FirebaseCore)
target_link_libraries(FirebaseFirestore PRIVATE
absl_bad_optional_access
Expand Down Expand Up @@ -103,7 +110,7 @@ target_link_libraries(FirebaseFirestore PRIVATE
absl_time_zone
address_sorting
cares
firebase
crypto
firestore_core
firestore_nanopb
firestore_protos_nanopb
Expand All @@ -112,11 +119,13 @@ target_link_libraries(FirebaseFirestore PRIVATE
grpc
grpc++
leveldb
libcurl
protobuf-nanopb
re2
snappy
ssl
upb)
upb
zlibstatic)

FetchContent_Declare(SwiftWin32
GIT_REPOSITORY https://github.com/compnerd/swift-win32
Expand Down

0 comments on commit f339d09

Please sign in to comment.