File tree Expand file tree Collapse file tree 13 files changed +68
-68
lines changed Expand file tree Collapse file tree 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")
8080
8181# Set up the dependency on Firebase App.
8282target_link_libraries (firebase_admob
83- firebase_app)
83+ PUBLIC firebase_app)
8484# Public headers all refer to each other relative to the src/include directory,
8585# while private headers are relative to the entire C++ SDK directory.
8686target_include_directories (firebase_admob
@@ -104,11 +104,11 @@ if(ANDROID)
104104 firebase_cpp_proguard_file(admob)
105105elseif (IOS)
106106 # 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 " )
112112
113113 setup_pod_headers(
114114 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")
9090
9191# Set up the dependency on Firebase App.
9292target_link_libraries (firebase_analytics
93- firebase_app)
93+ PUBLIC firebase_app)
9494# Public headers all refer to each other relative to the src/include directory,
9595# while private headers are relative to the entire C++ SDK directory.
9696target_include_directories (firebase_analytics
@@ -115,11 +115,11 @@ endif()
115115if (ANDROID)
116116 firebase_cpp_proguard_file(analytics)
117117elseif (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 " )
123123
124124 setup_pod_headers(
125125 firebase_analytics
Original file line number Diff line number Diff line change @@ -366,11 +366,11 @@ endif()
366366if (ANDROID)
367367 firebase_cpp_proguard_file(app)
368368elseif (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 " )
374374
375375 # Add empty include path to get root include folder '.'
376376 setup_pod_headers(
Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ endif()
188188if (ANDROID)
189189 firebase_cpp_proguard_file(auth)
190190elseif (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 " )
196196
197197 setup_pod_headers(
198198 firebase_auth
Original file line number Diff line number Diff line change @@ -227,11 +227,11 @@ endif()
227227if (ANDROID)
228228 firebase_cpp_proguard_file(database)
229229elseif (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 " )
235235
236236 setup_pod_headers(
237237 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")
5151
5252# Set up the dependency on Firebase App.
5353target_link_libraries (firebase_dynamic_links
54- firebase_app)
54+ PUBLIC firebase_app)
5555# Public headers all refer to each other relative to the src/include directory,
5656# while private headers are relative to the entire C++ SDK directory.
5757target_include_directories (firebase_dynamic_links
@@ -74,11 +74,11 @@ endif()
7474if (ANDROID)
7575 firebase_cpp_proguard_file(dynamic_links)
7676elseif (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 " )
8282
8383 setup_pod_headers(
8484 firebase_dynamic_links
Original file line number Diff line number Diff line change @@ -332,11 +332,11 @@ if(ANDROID)
332332 firebase_cpp_proguard_file(firestore)
333333
334334elseif (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 " )
340340
341341 setup_pod_headers(
342342 firebase_firestore
Original file line number Diff line number Diff line change @@ -90,11 +90,11 @@ endif()
9090if (ANDROID)
9191 firebase_cpp_proguard_file(functions)
9292elseif (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 " )
9898
9999 setup_pod_headers(
100100 firebase_functions
Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ endif()
7474if (ANDROID)
7575 firebase_cpp_proguard_file(installations)
7676elseif (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 " )
8282
8383 setup_pod_headers(
8484 firebase_installations
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ endif()
8787if (ANDROID)
8888 firebase_cpp_proguard_file(instance_id)
8989elseif (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 " )
9595
9696 setup_pod_headers(
9797 firebase_instance_id
You can’t perform that action at this time.
0 commit comments