Provide an easy way to drop in a different RS driver.
Change-Id: I2576f0ca20671b1f98e3cbed958fd0b2582bd103
diff --git a/Android.mk b/Android.mk
index 2d4f580..a37020e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -6,6 +6,10 @@
rs_base_CFLAGS += -D__RS_PDK__
endif
+ifneq ($(OVERRIDE_RS_DRIVER),)
+ rs_base_CFLAGS += -DOVERRIDE_RS_DRIVER=$(OVERRIDE_RS_DRIVER)
+endif
+
include $(CLEAR_VARS)
LOCAL_CLANG := true
LOCAL_MODULE := libRSDriver
@@ -164,7 +168,6 @@
LOCAL_CFLAGS += $(rs_base_CFLAGS)
LOCAL_LDLIBS := -lpthread -ldl
-LOCAL_MODULE:= libRS
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)