Skip to content

Conversation

@dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Nov 18, 2022

This PR enables the Firestore component to use header-only components of absl when targeting Android. This was achieved by downloading the firebase-ios-sdk and calling cmake on it to trigger the download of absl.

This PR also includes some broader-reaching changes:

  1. The FIREBASE_FLATC_CMAKE_COMMAND cmake cache variables is renamed to FIREBASE_HOST_CMAKE_COMMAND, since it's no longer exclusively used when building flatc, but also when running cmake on the firebase-ios-sdk during Android builds.
  2. A cmake function execute_process_ex() is added in the new file cmake/execute_process_ex.cmake, which simply calls the built-in execute_process() function but (a) adds some logging around it and (b) checks the exit code of the process and fails the build if it is non-zero.
  3. Firestore's integration_test_internal no longer downloads its own copy of absl, but rather uses the one downloaded by the main build.
@dconeybe dconeybe added api: firestore skip-release-notes Skip release notes check labels Nov 18, 2022
@dconeybe dconeybe self-assigned this Nov 18, 2022
@dconeybe dconeybe changed the title Firestore: Download the firebase-ios-sdk deps when building Android Firestore: Add absl header-only support for Android builds Nov 19, 2022
@dconeybe dconeybe closed this Sep 8, 2023
@dconeybe dconeybe deleted the dconeybe/AbslInAndroid branch September 8, 2023 14:17
@firebase firebase locked and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore skip-release-notes Skip release notes check

1 participant