Search code examples
android-buildandroid.mkandroid-buildconfig

How to add a custom Module-Description Variable in Android.mk?


I want to access a module description variable (a custom variable) while building an android module i.e. an executable or shared-library or prebuilt and based on its value do some extra processing on the executable or shared-lib or prebuilt. Is there a way to do it?


Solution

  • Add the variable to the list of variables in clear_vars.mk , so that they get cleared when an Android.mk does include $(CLEAR_VARS)