summaryrefslogtreecommitdiff
path: root/rsov/driver/Android.mk
diff options
context:
space:
mode:
authorYang Ni <yangni@google.com>2016-11-11 12:30:09 -0800
committerYang Ni <yangni@google.com>2016-12-06 09:24:52 -0800
commit75f0d3110b04346b901771f96ce15cdbe907278f (patch)
treea13ce3211bfb37b0d3088c5f5ff83e247c4167b2 /rsov/driver/Android.mk
parent6babd9ca03e1379380af0c1cfde6f6d3e92ccd29 (diff)
downloadrs-75f0d3110b04346b901771f96ce15cdbe907278f.tar.gz
Initial driver for RSoV (RenderScript over Vulkan/SPIR-V)
Bug: 30964317 Supports the following: * Allocations of 32-bit integers and floating point numbers and vectors * Single-input single-output kernels * Co-existence of RSoV scripts and CPU intrinsics Added default .clang-format for driver code using Google C++ code style. The RSoV driver is loaded, if and only if the property debug.rs.rsov is set to non-zero. Test: RSTest and CTS with debug.rs.rsov set to 0; and RSoVTest with debug.rs.rsov set to 1. Change-Id: If63370a502d499e8fc5f4bbd2e90ce84b167c331
Diffstat (limited to 'rsov/driver/Android.mk')
-rw-r--r--rsov/driver/Android.mk56
1 files changed, 56 insertions, 0 deletions
diff --git a/rsov/driver/Android.mk b/rsov/driver/Android.mk
new file mode 100644
index 00000000..5309ba8e
--- /dev/null
+++ b/rsov/driver/Android.mk
@@ -0,0 +1,56 @@
+#
+# Copyright (C) 2016 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH :=$(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libRSDriver_RSoV
+
+LOCAL_SRC_FILES := \
+ rsovAllocation.cpp \
+ rsovContext.cpp \
+ rsovCore.cpp \
+ rsovElement.cpp \
+ rsovRuntimeStubs.cpp \
+ rsovSampler.cpp \
+ rsovScript.cpp \
+ rsovScriptGroup.cpp \
+ rsovType.cpp \
+
+LOCAL_SHARED_LIBRARIES := \
+ libRS_internal \
+ libRSCpuRef \
+ libc++ \
+ libcutils \
+ libdl \
+ liblog \
+ libsync \
+ libutils \
+ libvulkan
+
+LOCAL_C_INCLUDES := \
+ frameworks/native/vulkan/include \
+ frameworks/rs \
+ frameworks/rs/cpu_ref \
+
+LOCAL_C_INCLUDES += \
+
+LOCAL_CFLAGS := -Werror -Wall -Wextra -fno-exceptions
+# TODO: remove warnings on unused variables and parameters
+LOCAL_CFLAGS += -Wno-unused-variable -Wno-unused-parameter
+
+include $(BUILD_SHARED_LIBRARY)