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 19:29:16 +0000
commit05de7fa5b6ce61641ad483539dfb7396afa7b2d2 (patch)
treecbbb6c941ecd288f6aa108fab90782e5b69df987 /cpu_ref
parent63e14e5542f9d77715e258459b1e6da9ba196e14 (diff)
downloadrs-05de7fa5b6ce61641ad483539dfb7396afa7b2d2.tar.gz
Stop making RS modules for PDK, as libmediandk and libSPIRV are not
available in PDK. Bug: 36231835 Test: mm Merged-In: I6e425dd8afd8f7df09de7b245263519d076c9b53 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 d50a77ed..9b3e9d3b 100644
--- a/cpu_ref/Android.mk
+++ b/cpu_ref/Android.mk
@@ -1,11 +1,12 @@
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 \
-std=c++11
-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)
@@ -98,3 +99,5 @@ include frameworks/compile/libbcc/libbcc-targets.mk
LOCAL_CFLAGS += $(rs_base_CFLAGS)
include $(BUILD_SHARED_LIBRARY)
+
+endif # TARGET_BUILD_PDK