Skip to content

Commit

Permalink
[make][macro] Add definition of TOBOOL macro
Browse files Browse the repository at this point in the history
This macro converts specified variable to boolean true or false.

Change-Id: I8e5a58a8bd0e241ac666213c931f596110bd08df
  • Loading branch information
Michael Ryleev authored and arve-android committed Mar 20, 2015
1 parent 833b355 commit 8ea0826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make/macros.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
# prepends the BUILD_DIR var to each item in the list
TOBUILDDIR = $(addprefix $(BUILDDIR)/,$(1))

# converts specified variable to boolean value
TOBOOL = $(if $(filter-out 0 false,$1),true,false)

COMMA := ,
SPACE :=
SPACE +=
Expand Down

0 comments on commit 8ea0826

Please sign in to comment.