File tree 13 files changed +68
-68
lines changed
13 files changed +68
-68
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ set_property(TARGET firebase_admob PROPERTY FOLDER "Firebase Cpp")
80
80
81
81
# Set up the dependency on Firebase App.
82
82
target_link_libraries (firebase_admob
83
- firebase_app)
83
+ PUBLIC firebase_app)
84
84
# Public headers all refer to each other relative to the src/include directory,
85
85
# while private headers are relative to the entire C++ SDK directory.
86
86
target_include_directories (firebase_admob
@@ -104,11 +104,11 @@ if(ANDROID)
104
104
firebase_cpp_proguard_file(admob)
105
105
elseif (IOS)
106
106
# AdMob for iOS uses weak references, which requires enabling Automatic
107
- # Reference Counting (ARC).
108
- set_property (
109
- TARGET firebase_admob
110
- APPEND_STRING PROPERTY
111
- COMPILE_FLAGS "-fobjc-arc " )
107
+ # Reference Counting (ARC). Also enable BitCode.
108
+ target_compile_options (firebase_admob
109
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
110
+ target_link_libraries (firebase_admob
111
+ PUBLIC "-fembed-bitcode " )
112
112
113
113
setup_pod_headers(
114
114
firebase_admob
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ set_property(TARGET firebase_analytics PROPERTY FOLDER "Firebase Cpp")
90
90
91
91
# Set up the dependency on Firebase App.
92
92
target_link_libraries (firebase_analytics
93
- firebase_app)
93
+ PUBLIC firebase_app)
94
94
# Public headers all refer to each other relative to the src/include directory,
95
95
# while private headers are relative to the entire C++ SDK directory.
96
96
target_include_directories (firebase_analytics
@@ -115,11 +115,11 @@ endif()
115
115
if (ANDROID)
116
116
firebase_cpp_proguard_file(analytics)
117
117
elseif (IOS)
118
- # Enable Automatic Reference Counting (ARC).
119
- set_property (
120
- TARGET firebase_analytics
121
- APPEND_STRING PROPERTY
122
- COMPILE_FLAGS "-fobjc-arc " )
118
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
119
+ target_compile_options (firebase_analytics
120
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
121
+ target_link_libraries (firebase_analytics
122
+ PUBLIC "-fembed-bitcode " )
123
123
124
124
setup_pod_headers(
125
125
firebase_analytics
Original file line number Diff line number Diff line change @@ -366,11 +366,11 @@ endif()
366
366
if (ANDROID)
367
367
firebase_cpp_proguard_file(app)
368
368
elseif (IOS)
369
- # Enable Automatic Reference Counting (ARC).
370
- set_property (
371
- TARGET firebase_app
372
- APPEND_STRING PROPERTY
373
- COMPILE_FLAGS "-fobjc-arc " )
369
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
370
+ target_compile_options (firebase_app
371
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
372
+ target_link_libraries (firebase_app
373
+ PUBLIC "-fembed-bitcode " )
374
374
375
375
# Add empty include path to get root include folder '.'
376
376
setup_pod_headers(
Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ endif()
188
188
if (ANDROID)
189
189
firebase_cpp_proguard_file(auth)
190
190
elseif (IOS)
191
- # Enable Automatic Reference Counting (ARC).
192
- set_property (
193
- TARGET firebase_auth
194
- APPEND_STRING PROPERTY
195
- COMPILE_FLAGS "-fobjc-arc " )
191
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
192
+ target_compile_options (firebase_auth
193
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
194
+ target_link_libraries (firebase_auth
195
+ PUBLIC "-fembed-bitcode " )
196
196
197
197
setup_pod_headers(
198
198
firebase_auth
Original file line number Diff line number Diff line change @@ -227,11 +227,11 @@ endif()
227
227
if (ANDROID)
228
228
firebase_cpp_proguard_file(database)
229
229
elseif (IOS)
230
- # Enable Automatic Reference Counting (ARC)
231
- set_property (
232
- TARGET firebase_database
233
- APPEND_STRING PROPERTY
234
- COMPILE_FLAGS "-fobjc-arc " )
230
+ # Enable Automatic Reference Counting (ARC) and Bitcode.
231
+ target_compile_options (firebase_database
232
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
233
+ target_link_libraries (firebase_database
234
+ PUBLIC "-fembed-bitcode " )
235
235
236
236
setup_pod_headers(
237
237
firebase_database
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ set_property(TARGET firebase_dynamic_links PROPERTY FOLDER "Firebase Cpp")
51
51
52
52
# Set up the dependency on Firebase App.
53
53
target_link_libraries (firebase_dynamic_links
54
- firebase_app)
54
+ PUBLIC firebase_app)
55
55
# Public headers all refer to each other relative to the src/include directory,
56
56
# while private headers are relative to the entire C++ SDK directory.
57
57
target_include_directories (firebase_dynamic_links
@@ -74,11 +74,11 @@ endif()
74
74
if (ANDROID)
75
75
firebase_cpp_proguard_file(dynamic_links)
76
76
elseif (IOS)
77
- # Enable Automatic Reference Counting (ARC).
78
- set_property (
79
- TARGET firebase_dynamic_links
80
- APPEND_STRING PROPERTY
81
- COMPILE_FLAGS "-fobjc-arc " )
77
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
78
+ target_compile_options (firebase_dynamic_links
79
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
80
+ target_link_libraries (firebase_dynamic_links
81
+ PUBLIC "-fembed-bitcode " )
82
82
83
83
setup_pod_headers(
84
84
firebase_dynamic_links
Original file line number Diff line number Diff line change @@ -332,11 +332,11 @@ if(ANDROID)
332
332
firebase_cpp_proguard_file(firestore)
333
333
334
334
elseif (IOS)
335
- # Enable Automatic Reference Counting (ARC).
336
- set_property (
337
- TARGET firebase_firestore
338
- APPEND_STRING PROPERTY
339
- COMPILE_FLAGS "-fobjc-arc " )
335
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
336
+ target_compile_options (firebase_firestore
337
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
338
+ target_link_libraries (firebase_firestore
339
+ PUBLIC "-fembed-bitcode " )
340
340
341
341
setup_pod_headers(
342
342
firebase_firestore
Original file line number Diff line number Diff line change @@ -90,11 +90,11 @@ endif()
90
90
if (ANDROID)
91
91
firebase_cpp_proguard_file(functions)
92
92
elseif (IOS)
93
- # Enable Automatic Reference Counting (ARC).
94
- set_property (
95
- TARGET firebase_functions
96
- APPEND_STRING PROPERTY
97
- COMPILE_FLAGS "-fobjc-arc " )
93
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
94
+ target_compile_options (firebase_functions
95
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
96
+ target_link_libraries (firebase_functions
97
+ PUBLIC "-fembed-bitcode " )
98
98
99
99
setup_pod_headers(
100
100
firebase_functions
Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ endif()
74
74
if (ANDROID)
75
75
firebase_cpp_proguard_file(installations)
76
76
elseif (IOS)
77
- # Enable Automatic Reference Counting (ARC).
78
- set_property (
79
- TARGET firebase_installations
80
- APPEND_STRING PROPERTY
81
- COMPILE_FLAGS "-fobjc-arc " )
77
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
78
+ target_compile_options (firebase_installations
79
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
80
+ target_link_libraries (firebase_installations
81
+ PUBLIC "-fembed-bitcode " )
82
82
83
83
setup_pod_headers(
84
84
firebase_installations
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ endif()
87
87
if (ANDROID)
88
88
firebase_cpp_proguard_file(instance_id)
89
89
elseif (IOS)
90
- # Enable Automatic Reference Counting (ARC).
91
- set_property (
92
- TARGET firebase_instance_id
93
- APPEND_STRING PROPERTY
94
- COMPILE_FLAGS "-fobjc-arc " )
90
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
91
+ target_compile_options (firebase_instance_id
92
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
93
+ target_link_libraries (firebase_instance_id
94
+ PUBLIC "-fembed-bitcode " )
95
95
96
96
setup_pod_headers(
97
97
firebase_instance_id
Original file line number Diff line number Diff line change @@ -110,11 +110,11 @@ endif()
110
110
if (ANDROID)
111
111
firebase_cpp_proguard_file(messaging)
112
112
elseif (IOS)
113
- # Enable Automatic Reference Counting (ARC).
114
- set_property (
115
- TARGET firebase_messaging
116
- APPEND_STRING PROPERTY
117
- COMPILE_FLAGS "-fobjc-arc " )
113
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
114
+ target_compile_options (firebase_messaging
115
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
116
+ target_link_libraries (firebase_messaging
117
+ PUBLIC "-fembed-bitcode " )
118
118
119
119
setup_pod_headers(
120
120
firebase_messaging
Original file line number Diff line number Diff line change @@ -155,11 +155,11 @@ endif()
155
155
if (ANDROID)
156
156
firebase_cpp_proguard_file(remote_config)
157
157
elseif (IOS)
158
- # Enable Automatic Reference Counting (ARC).
159
- set_property (
160
- TARGET firebase_remote_config
161
- APPEND_STRING PROPERTY
162
- COMPILE_FLAGS "-fobjc-arc " )
158
+ # Enable Automatic Reference Counting (ARC) and Bitcode .
159
+ target_compile_options (firebase_remote_config
160
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
161
+ target_link_libraries (firebase_remote_config
162
+ PUBLIC "-fembed-bitcode " )
163
163
164
164
setup_pod_headers(
165
165
firebase_remote_config
Original file line number Diff line number Diff line change @@ -118,11 +118,11 @@ endif()
118
118
if (ANDROID)
119
119
firebase_cpp_proguard_file(storage)
120
120
elseif (IOS)
121
- # Enable Automatic Reference Counting (ARC)
122
- set_property (
123
- TARGET firebase_storage
124
- APPEND_STRING PROPERTY
125
- COMPILE_FLAGS "-fobjc-arc " )
121
+ # Enable Automatic Reference Counting (ARC) and Bitcode.
122
+ target_compile_options (firebase_storage
123
+ PUBLIC "-fobjc-arc" "-fembed-bitcode" )
124
+ target_link_libraries (firebase_storage
125
+ PUBLIC "-fembed-bitcode " )
126
126
127
127
# Empty entry to point to the GTMSessionFetcher folder '.'
128
128
setup_pod_headers(
You can’t perform that action at this time.
0 commit comments