File tree Expand file tree Collapse file tree 14 files changed +47
-45
lines changed Expand file tree Collapse file tree 14 files changed +47
-45
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ endif()
304
304
305
305
if (FIREBASE_UNI_LIBRARY )
306
306
if (FIREBASE_IOS_BUILD )
307
- ios_pack (firebase_lib_uni libFirebaseCppApp DEPS ${TARGET_LINK_LIB_NAMES} )
307
+ ios_pack (firebase_lib_uni libFirebaseCppApp DEPS "firebase_app" "firebase_app_swig" "flatbuffers" )
308
308
else ()
309
309
build_uni (
310
310
"${TARGET_LINK_LIB_NAMES} "
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ mono_add_library(firebase_analytics_cs
51
51
)
52
52
53
53
if (FIREBASE_IOS_BUILD )
54
- ios_pack (firebase_lib_analytics libFirebaseCppAnalytics DEPS firebase_analytics_swig )
54
+ ios_pack (firebase_lib_analytics libFirebaseCppAnalytics DEPS firebase_analytics firebase_analytics_swig )
55
55
else ()
56
56
build_firebase_shared (
57
57
analytics
Original file line number Diff line number Diff line change @@ -65,13 +65,13 @@ mono_add_library(firebase_auth_cs
65
65
)
66
66
67
67
if (FIREBASE_IOS_BUILD )
68
- ios_pack (firebase_lib_auth libFirebaseCppAuth DEPS firebase_auth_swig )
68
+ ios_pack (firebase_lib_auth libFirebaseCppAuth DEPS firebase_auth firebase_auth_swig )
69
69
else ()
70
- build_firebase_shared (
71
- auth
72
- auth
73
- FirebaseCppAuth
74
- )
70
+ build_firebase_shared (
71
+ auth
72
+ auth
73
+ FirebaseCppAuth
74
+ )
75
75
endif ()
76
76
77
77
unity_pack_cs (firebase_auth_cs )
Original file line number Diff line number Diff line change @@ -29,16 +29,11 @@ function(build_firebase_shared LIBRARY_NAME ARTIFACT_NAME OUTPUT_NAME)
29
29
30
30
add_library (${shared_target} SHARED
31
31
${FIREBASE_SOURCE_DIR} /empty.cc
32
+ $< TARGET_OBJECTS:firebase_${LIBRARY_NAME} >
32
33
$< TARGET_OBJECTS:firebase_${LIBRARY_NAME} _swig>
33
34
)
34
-
35
- # add_dependencies(${shared_target}
36
- # firebase_${LIBRARY_NAME}
37
- # firebase_app
38
- # )
39
35
40
- set (SHARED_TARGET_LINK_LIB_NAMES "firebase_${LIBRARY_NAME} _swig" )
41
- message ("SHARED_TARGET_LINK_LIB_NAMES is ${SHARED_TARGET_LINK_LIB_NAMES} " )
36
+ set (SHARED_TARGET_LINK_LIB_NAMES "firebase_${LIBRARY_NAME} " "firebase_${LIBRARY_NAME} _swig" )
42
37
43
38
target_link_libraries (${shared_target}
44
39
${SHARED_TARGET_LINK_LIB_NAMES}
Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ if (CMAKE_INTERPROCEDURAL_OPTIMIZATION)
19
19
set (ar_tool ${CMAKE_CXX_COMPILER_AR} )
20
20
endif ()
21
21
22
+ if (NOT CMAKE_LIBTOOL )
23
+ find_program (CMAKE_LIBTOOL NAMES libtool )
24
+ endif ()
25
+ if (CMAKE_LIBTOOL )
26
+ set (CMAKE_LIBTOOL ${CMAKE_LIBTOOL} CACHE PATH "libtool executable" )
27
+ endif ()
28
+
22
29
# Packs static libraries into one static library for ios and sets up the correct
23
30
# install call for it
24
31
#
@@ -49,7 +56,7 @@ macro(ios_pack name output_name)
49
56
set (first false )
50
57
string (APPEND content "cp $<TARGET_FILE:${dep} > ${TARGET_FILE} \n " )
51
58
else ()
52
- string (APPEND content "${ar_tool } -q $< TARGET_FILE: ${dep} > ${ TARGET_FILE} \n " )
59
+ string (APPEND content "${CMAKE_LIBTOOL } -static -o ${ TARGET_FILE} ${TARGET_FILE} $< TARGET_FILE: ${dep} > \n " )
53
60
endif ()
54
61
endforeach ()
55
62
Original file line number Diff line number Diff line change @@ -90,13 +90,13 @@ mono_add_library(firebase_crashlytics_cs
90
90
)
91
91
92
92
if (FIREBASE_IOS_BUILD )
93
- ios_pack (firebase_lib_crashlytics libFirebaseCppCrashlytics DEPS firebase_crashlytics_swig )
93
+ ios_pack (firebase_lib_crashlytics libFirebaseCppCrashlytics DEPS firebase_crashlytics firebase_crashlytics_swig )
94
94
else ()
95
- build_firebase_shared (
96
- crashlytics
97
- crashlytics
98
- FirebaseCppCrashlytics
99
- )
95
+ build_firebase_shared (
96
+ crashlytics
97
+ crashlytics
98
+ FirebaseCppCrashlytics
99
+ )
100
100
endif ()
101
101
102
102
unity_pack_cs (firebase_crashlytics_cs )
Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ mono_add_library(firebase_database_cs
69
69
)
70
70
71
71
if (FIREBASE_IOS_BUILD )
72
- ios_pack (firebase_lib_database libFirebaseCppDatabase DEPS firebase_database_swig )
72
+ ios_pack (firebase_lib_database libFirebaseCppDatabase DEPS firebase_database firebase_database_swig )
73
73
else ()
74
- build_firebase_shared (
75
- database
76
- database
77
- FirebaseCppDatabase
78
- )
74
+ build_firebase_shared (
75
+ database
76
+ database
77
+ FirebaseCppDatabase
78
+ )
79
79
endif ()
80
80
81
81
unity_pack_cs (firebase_database_cs )
Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ mono_add_library(firebase_dynamic_links_cs
63
63
)
64
64
65
65
if (FIREBASE_IOS_BUILD )
66
- ios_pack (firebase_lib_dynamic_links libFirebaseCppDynamicLinks DEPS firebase_dynamic_links_swig )
66
+ ios_pack (firebase_lib_dynamic_links libFirebaseCppDynamicLinks DEPS firebase_dynamic_links firebase_dynamic_links_swig )
67
67
else ()
68
- build_firebase_shared (
69
- dynamic_links
70
- dynamic-links
71
- FirebaseCppDynamicLinks
72
- )
68
+ build_firebase_shared (
69
+ dynamic_links
70
+ dynamic-links
71
+ FirebaseCppDynamicLinks
72
+ )
73
73
endif ()
74
74
75
75
unity_pack_cs (firebase_dynamic_links_cs )
Original file line number Diff line number Diff line change @@ -143,13 +143,13 @@ mono_add_library(firebase_firestore_cs
143
143
)
144
144
145
145
if (FIREBASE_IOS_BUILD )
146
- ios_pack (firebase_lib_firestore libFirebaseCppFirestore DEPS firebase_firestore_swig )
146
+ ios_pack (firebase_lib_firestore libFirebaseCppFirestore DEPS firebase_firestore firebase_firestore_swig firebase_firestore_swig_cpp )
147
147
else ()
148
- build_firebase_shared (
149
- firestore
150
- firestore
151
- FirebaseCppFirestore
152
- )
148
+ build_firebase_shared (
149
+ firestore
150
+ firestore
151
+ FirebaseCppFirestore
152
+ )
153
153
endif ()
154
154
155
155
unity_pack_cs (firebase_firestore_cs )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ mono_add_library(firebase_functions_cs
55
55
)
56
56
57
57
if (FIREBASE_IOS_BUILD )
58
- ios_pack (firebase_lib_functions libFirebaseCppFunctions DEPS firebase_functions_swig )
58
+ ios_pack (firebase_lib_functions libFirebaseCppFunctions DEPS firebase_functions firebase_functions_swig )
59
59
else ()
60
60
build_firebase_shared (
61
61
functions
You can’t perform that action at this time.
0 commit comments