aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen2017-10-20 00:18:23 -0500
committerDan Willemsen2017-10-23 14:27:31 -0500
commitfa32e29a1fe81e5472aabc65d3aa25a5af5aec55 (patch)
treeddc9bf3abee1194215f500913f95229b33b928f7 /Android.sources.bp.mk
parentc6ebab75df64ad6ff2be83cd53bb7d02955d7438 (diff)
downloadexternal-libdrm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.gz
external-libdrm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.xz
external-libdrm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.zip
Convert to Android.bp
See build/soong/README.md for more information about Soong. Removes BOARD_GPU_DRIVERS, which wasn't affecting anything, since none of the HAVE_* macros are defined. Even if they were, we'd prefer to compile all of them so that a single library can support multiple boards. Test: mmma external/libdrm Change-Id: Ie01736bce6cf41e3da5040fe5341ade0634b5111
Diffstat (limited to 'Android.sources.bp.mk')
-rw-r--r--Android.sources.bp.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/Android.sources.bp.mk b/Android.sources.bp.mk
new file mode 100644
index 00000000..26b61c1e
--- /dev/null
+++ b/Android.sources.bp.mk
@@ -0,0 +1,25 @@
1# Usage: make -f path/to/Android.sources.bp.mk NAMES=<> >Android.sources.bp
2#
3# It will read the Makefile.sources in the current directory, and
4# write <NAME>_FILES to stdout as an Android.bp cc_defaults module.
5
6.PHONY: all
7all:
8 @# Do nothing
9
10include Makefile.sources
11
12empty :=
13indent := $(empty) $(empty)
14
15$(info // Autogenerated with Android.sources.bp.mk)
16$(foreach NAME,$(NAMES), \
17 $(eval lower_name := $(shell echo $(PREFIX)$(NAME) | tr 'A-Z' 'a-z')) \
18 $(info ) \
19 $(info cc_defaults {) \
20 $(info $(indent)name: "$(lower_name)_sources",) \
21 $(info $(indent)srcs: [) \
22 $(foreach f,$(filter %.c,$($(NAME)_FILES)), \
23 $(info $(indent)$(indent)"$(f)",)) \
24 $(info $(indent)],) \
25 $(info }))