7

Any possibility to get environment variable value inside Android.mk?

For example

#export MYBASEDIR=/home/whoami/base

And, inside Android.mk How to get MYBASEDIR value ?

Bear with me for very basic question.

Dheeraj Vepakomma
  • 26,870
  • 17
  • 81
  • 104
Whoami
  • 13,930
  • 19
  • 84
  • 140

1 Answers1

10

All environment variables are imported by make as make macros automatically.

So, just use $(MYBASEDIR) in the makefile.

MadScientist
  • 92,819
  • 9
  • 109
  • 136