Jason Sams | 709a097 | 2012-11-15 18:18:04 -0800 | [diff] [blame] | 1 | |
| 2 | LOCAL_PATH:=$(call my-dir) |
| 3 | |
| 4 | rs_base_CFLAGS := -Werror -Wall -Wno-unused-parameter -Wno-unused-variable |
| 5 | ifeq ($(TARGET_BUILD_PDK), true) |
| 6 | rs_base_CFLAGS += -D__RS_PDK__ |
| 7 | endif |
| 8 | |
| 9 | ifneq ($(OVERRIDE_RS_DRIVER),) |
| 10 | rs_base_CFLAGS += -DOVERRIDE_RS_DRIVER=$(OVERRIDE_RS_DRIVER) |
| 11 | endif |
| 12 | |
| 13 | include $(CLEAR_VARS) |
| 14 | LOCAL_CLANG := true |
| 15 | LOCAL_MODULE := libRSCpuRef |
| 16 | |
| 17 | LOCAL_SRC_FILES:= \ |
| 18 | rsCpuCore.cpp \ |
| 19 | rsCpuScript.cpp \ |
| 20 | rsCpuRuntimeMath.cpp \ |
| 21 | rsCpuRuntimeStubs.cpp \ |
| 22 | rsCpuScriptGroup.cpp \ |
| 23 | rsCpuIntrinsic.cpp \ |
Jason Sams | 7c4b888 | 2013-01-04 10:50:05 -0800 | [diff] [blame] | 24 | rsCpuIntrinsic3DLUT.cpp \ |
Jason Sams | 709a097 | 2012-11-15 18:18:04 -0800 | [diff] [blame] | 25 | rsCpuIntrinsicBlend.cpp \ |
| 26 | rsCpuIntrinsicBlur.cpp \ |
| 27 | rsCpuIntrinsicColorMatrix.cpp \ |
| 28 | rsCpuIntrinsicConvolve3x3.cpp \ |
| 29 | rsCpuIntrinsicConvolve5x5.cpp \ |
| 30 | rsCpuIntrinsicLUT.cpp \ |
| 31 | rsCpuIntrinsicYuvToRGB.cpp |
| 32 | |
| 33 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 34 | LOCAL_CFLAGS += -DARCH_ARM_HAVE_NEON |
| 35 | LOCAL_SRC_FILES+= \ |
| 36 | rsCpuIntrinsics_neon.S |
| 37 | endif |
| 38 | |
| 39 | LOCAL_SHARED_LIBRARIES += libRS libcutils libutils libsync |
| 40 | LOCAL_SHARED_LIBRARIES += libbcc libbcinfo |
| 41 | |
| 42 | LOCAL_C_INCLUDES += frameworks/compile/libbcc/include |
| 43 | LOCAL_C_INCLUDES += frameworks/rs |
| 44 | |
| 45 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| 46 | |
| 47 | LOCAL_LDLIBS := -lpthread -ldl |
| 48 | LOCAL_MODULE_TAGS := optional |
| 49 | |
| 50 | include $(BUILD_SHARED_LIBRARY) |
| 51 | |
| 52 | |