maplibre-native icon indicating copy to clipboard operation
maplibre-native copied to clipboard

Add ccache env variable

Open adrian-cojocaru opened this issue 4 months ago • 0 comments

Currently ccache is added to the build without any checks -DANDROID_CCACHE=ccache and is expected to be present in the environment (for render-test/benchmark targets). MapLibreAndroid checks a list of hardcoded paths for it to be enabled:

                        if (file("/usr/bin/ccache").exists()) {
                            arguments "-DANDROID_CCACHE=/usr/bin/ccache"
                        } else if (file("/usr/local/bin/ccache").exists()) {
                            arguments "-DANDROID_CCACHE=/usr/local/bin/ccache"
                        }

An environmental variable can be useful to configure the path (in addition to the existing path list).

adrian-cojocaru avatar Oct 08 '24 09:10 adrian-cojocaru