summaryrefslogtreecommitdiff
path: root/cpu_ref
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2017-03-16 17:19:26 -0700
committerMiao Wang <miaowang@google.com>2017-03-17 08:57:58 -0700
commit7e804f40e7b5cb07d005a89f36abaea3a5221db4 (patch)
tree33d566bea9cc898ada9bb7b7f7776c7760018ea4 /cpu_ref
parent3273aa6601d16339dd8ab9e493bb8915260b846d (diff)
downloadrs-7e804f40e7b5cb07d005a89f36abaea3a5221db4.tar.gz
Stop making RS modules for PDK, as libmediandk and libSPIRV are not
available in PDK. Bug: 36231835 Test: mm Change-Id: I6e425dd8afd8f7df09de7b245263519d076c9b53
Diffstat (limited to 'cpu_ref')
-rw-r--r--cpu_ref/Android.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpu_ref/Android.mk b/cpu_ref/Android.mk
index 8b553348..6578b2bb 100644
--- a/cpu_ref/Android.mk
+++ b/cpu_ref/Android.mk
@@ -1,10 +1,11 @@
LOCAL_PATH:=$(call my-dir)
+# Not building RenderScript modules in PDK builds, as libmediandk
+# is not available in PDK.
+ifneq ($(TARGET_BUILD_PDK), true)
+
rs_base_CFLAGS := -Werror -Wall -Wextra \
-Wno-unused-parameter -Wno-unused-variable
-ifeq ($(TARGET_BUILD_PDK), true)
- rs_base_CFLAGS += -D__RS_PDK__
-endif
ifneq ($(OVERRIDE_RS_DRIVER),)
rs_base_CFLAGS += -DOVERRIDE_RS_DRIVER=$(OVERRIDE_RS_DRIVER)
@@ -97,3 +98,5 @@ include frameworks/compile/libbcc/libbcc-targets.mk
LOCAL_CFLAGS += $(rs_base_CFLAGS)
include $(BUILD_SHARED_LIBRARY)
+
+endif # TARGET_BUILD_PDK