0

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?

d3xter
  • 51
  • 5
  • Would `LOCAL_CFLAGS` suffice? You could add a custom define (e.g. `LOCAL_CFLAGS := -DFOO`) to your preprocessor. – Simpl Nov 22 '19 at 07:53
  • Yeah I could do that, but i chose to create a new module description variable, the only catch is i need to add the variable to the list of variables in clear_vars.mk – d3xter Nov 25 '19 at 08:37

1 Answers1

0

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)

d3xter
  • 51
  • 5