| |
| LOCAL_PATH:=$(call my-dir) |
| |
| rs_base_CFLAGS := -Werror -Wall -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) |
| endif |
| |
| include $(CLEAR_VARS) |
| LOCAL_CLANG := true |
| LOCAL_MODULE := libRSCpuRef |
| |
| LOCAL_SRC_FILES:= \ |
| rsCpuCore.cpp \ |
| rsCpuScript.cpp \ |
| rsCpuRuntimeMath.cpp \ |
| rsCpuRuntimeStubs.cpp \ |
| rsCpuScriptGroup.cpp \ |
| rsCpuIntrinsic.cpp \ |
| rsCpuIntrinsic3DLUT.cpp \ |
| rsCpuIntrinsicBlend.cpp \ |
| rsCpuIntrinsicBlur.cpp \ |
| rsCpuIntrinsicColorMatrix.cpp \ |
| rsCpuIntrinsicConvolve3x3.cpp \ |
| rsCpuIntrinsicConvolve5x5.cpp \ |
| rsCpuIntrinsicLUT.cpp \ |
| rsCpuIntrinsicYuvToRGB.cpp |
| |
| ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| LOCAL_CFLAGS += -DARCH_ARM_HAVE_NEON |
| LOCAL_SRC_FILES+= \ |
| rsCpuIntrinsics_neon.S |
| endif |
| |
| LOCAL_SHARED_LIBRARIES += libRS libcutils libutils libsync |
| LOCAL_SHARED_LIBRARIES += libbcc libbcinfo |
| |
| LOCAL_C_INCLUDES += frameworks/compile/libbcc/include |
| LOCAL_C_INCLUDES += frameworks/rs |
| |
| LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| |
| LOCAL_LDLIBS := -lpthread -ldl |
| LOCAL_MODULE_TAGS := optional |
| |
| include $(BUILD_SHARED_LIBRARY) |
| |
| |