android: add CleanSpec.mk
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 4 Aug 2014 18:49:08 +0000 (19:49 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 1 Sep 2014 15:06:02 +0000 (16:06 +0100)
The file contains rules that are executed on incremental builds. This
way one can avoid doing a full clean and ensure that the new object
(library) is correctly build. Let's also cleanup the headers.

Inspired by the work of Chih-Wei Huang, from the Android-x86 project.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
CleanSpec.mk [new file with mode: 0644]

diff --git a/CleanSpec.mk b/CleanSpec.mk
new file mode 100644 (file)
index 0000000..8e23cd2
--- /dev/null
@@ -0,0 +1,3 @@
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/include/libdrm)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/include/freedreno)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libdrm_*intermediates)