summaryrefslogtreecommitdiff
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2017-01-22 16:59:42 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-01-27 15:48:16 +0000
commit03d2e91d00cb78d49fe170fb19a29107951a8c96 (patch)
treeb8775425a14ddad94aca2b33405c13d1e9407e22 /Android.common.mk
parentde5b41ef5ab617e5284596e220bc72f6065919f5 (diff)
downloadlibdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.tar.gz
libdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.tar.bz2
libdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.zip
android: introduce Android.common.mk to reduce boilerplate
... across the makefiles. Currently this isn't much but that will change shortly. As an added bonus this fixes all present and future cases where we've forgotten to strip out the headers from LOCAL_SRC_FILES. In a couple of cases (the tests) we start setting LOCAL_EXPORT_C_INCLUDE_DIRS, which shouldn't be an issue. Cc: Chih-Wei Huang <cwhuang@android-x86.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
new file mode 100644
index 00000000..c6ab8f50
--- /dev/null
+++ b/Android.common.mk
@@ -0,0 +1,6 @@
+LOCAL_CFLAGS += \
+ -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
+
+# Quiet down the build system and remove any .h files from the sources
+LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)