Skip to content

Commit

Permalink
Add a CMake target for the Messaging aar (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice authored Feb 16, 2023
1 parent 7b3757d commit 399f740
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions messaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ endif()

if(ANDROID)
firebase_cpp_proguard_file(messaging)

# Expose the Messaging Java AAR file as a target
set(FIREBASE_MESSAGING_JAVA_AAR_PATH
"${CMAKE_CURRENT_LIST_DIR}/messaging_java/build/outputs/aar/messaging_java.aar")
firebase_cpp_gradle(":messaging:messaging_java:assemble"
"${FIREBASE_MESSAGING_JAVA_AAR_PATH}"
)
add_custom_target(firebase_messaging_java_aar
DEPENDS "${FIREBASE_MESSAGING_JAVA_AAR_PATH}"
)
set_target_properties(firebase_messaging_java_aar PROPERTIES
OBJECT_OUTPUTS "${FIREBASE_MESSAGING_JAVA_AAR_PATH}"
)
elseif(IOS)
# Enable Automatic Reference Counting (ARC) and Bitcode.
target_compile_options(firebase_messaging
Expand Down

0 comments on commit 399f740

Please sign in to comment.