sync with OpenBSD -current
This commit is contained in:
parent
f3c6f98243
commit
4b49aefbb1
101 changed files with 911 additions and 672 deletions
25
lib/libdrm/Android.sources.bp.mk
Normal file
25
lib/libdrm/Android.sources.bp.mk
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Usage: make -f path/to/Android.sources.bp.mk NAMES=<> >Android.sources.bp
|
||||
#
|
||||
# It will read the Makefile.sources in the current directory, and
|
||||
# write <NAME>_FILES to stdout as an Android.bp cc_defaults module.
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
@# Do nothing
|
||||
|
||||
include Makefile.sources
|
||||
|
||||
empty :=
|
||||
indent := $(empty) $(empty)
|
||||
|
||||
$(info // Autogenerated with Android.sources.bp.mk)
|
||||
$(foreach NAME,$(NAMES), \
|
||||
$(eval lower_name := $(shell echo $(PREFIX)$(NAME) | tr 'A-Z' 'a-z')) \
|
||||
$(info ) \
|
||||
$(info cc_defaults {) \
|
||||
$(info $(indent)name: "$(lower_name)_sources",) \
|
||||
$(info $(indent)srcs: [) \
|
||||
$(foreach f,$(filter %.c,$($(NAME)_FILES)), \
|
||||
$(info $(indent)$(indent)"$(f)",)) \
|
||||
$(info $(indent)],) \
|
||||
$(info }))
|
Loading…
Add table
Add a link
Reference in a new issue