Skip to content

Android: Recursively find dependency of dependencies.

On Krita we have several modules and these modules' dependencies have their dependencies. Previously, we have been using ANDROID_EXTRA_LIBS to add them manually. But since ECM now supports automatically detecting module dependencies, I took this a step further to find dependency of those.

Only after I had implemented POC I realized how nightmarish it is to do recursion in cmake. I had to change library_dependencies to a macro to workaround the scope issues and since dependencies wouldn't be that deep, I don't think there's an issue with using macros for recursion?

Merge request reports