Skip to content

Commit bae4fd3

Browse files
committed
Updated build scripts
1 parent 43cf526 commit bae4fd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make/functions.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ intersection = $(foreach v,$1,$(if $(findstring $(v),$2),$(v)))
5151
# $(call subtraction, list1, list2)
5252
subtraction = $(foreach v,$2,$(if $(findstring $(v),$1),,$(v)))
5353

54+
# Check feature presence in list
55+
# $(call fcheck, features-to-check, all-feature-list, action-if-enabled, action-if-disabled)
56+
fcheck = $(if $(call intersection,$1,$2),$3,$4)
57+
5458
# Fetch different versions from version string
5559
# $(call vmajor, <version-string>)
5660
vmajor = $(shell echo "$(strip $1)" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)(-(.*))?/\1/')

0 commit comments

Comments
 (0)