#!/usr/bin/env bash # ccache detection helpers for native codec builds. Source this file. androidcast_ccache_wanted() { [[ "${ANDROIDCAST_CCACHE:-auto}" != "off" ]] && command -v ccache >/dev/null 2>&1 } androidcast_ccache_setup() { if androidcast_ccache_wanted; then export CC="ccache ${CC:-clang}" export CXX="ccache ${CXX:-clang++}" fi }