Skip to content

Commit b4d3b14

Browse files
committed
Add logic to build the shared libs and srcaars for the non-App libraries.
Adds a helper function to build the "empty" shared libraries used by the non-App libraries. Changes how the C++ proguard file is defined to use a target. Changes the aar generation code to rely more on the targets, and using generator expressions. PiperOrigin-RevId: 280502793
1 parent 347ef1a commit b4d3b14

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmake/firebase_cpp_gradle.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ function(firebase_cpp_proguard_file LIBRARY_NAME)
4444
string(TOUPPER "${LIBRARY_NAME}" upper_name)
4545
set(proguard_var "FIREBASE_CPP_${upper_name}_PROGUARD")
4646
set(${proguard_var}
47-
"${FIREBASE_SOURCE_DIR}/${LIBRARY_NAME}/build/${LIBRARY_NAME}.pro")
48-
set("${proguard_var}" "${${proguard_var}}" PARENT_SCOPE)
47+
"${FIREBASE_SOURCE_DIR}/${LIBRARY_NAME}/build/${LIBRARY_NAME}.pro"
48+
CACHE FILEPATH "Proguard file for ${LIBRARY_NAME}" FORCE)
4949

5050
firebase_cpp_gradle(":${LIBRARY_NAME}:externalNativeBuildRelease"
5151
"${${proguard_var}}")
52+
53+
add_custom_target(
54+
"${LIBRARY_NAME}_cpp_proguard"
55+
DEPENDS ${${proguard_var}}
56+
)
5257
endfunction()

0 commit comments

Comments
 (0)