1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_SRC_FILES:= \ 5 rsDispatch.cpp 6 7 LOCAL_C_INCLUDES += \ 8 frameworks/rs 9 10 LOCAL_CFLAGS += -Wno-unused-parameter -std=c++11 11 12 LOCAL_MODULE:= libRSDispatch 13 LOCAL_SDK_VERSION := 9 14 LOCAL_MODULE_TAGS := optional 15 LOCAL_LDFLAGS += -ldl 16 # Used in librsjni, which is built as NDK code => no ASan. 17 LOCAL_SANITIZE := never 18 LOCAL_NDK_STL_VARIANT := none 19 20 include $(BUILD_STATIC_LIBRARY) 21 22 include $(CLEAR_VARS) 23 24 rs_cpp_SRC_FILES := \ 25 RenderScript.cpp \ 26 BaseObj.cpp \ 27 Element.cpp \ 28 Type.cpp \ 29 Allocation.cpp \ 30 Script.cpp \ 31 ScriptC.cpp \ 32 ScriptIntrinsics.cpp \ 33 ScriptIntrinsicBLAS.cpp \ 34 Sampler.cpp 35 36 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 37 include frameworks/compile/slang/rs_version.mk 38 local_cflags_for_rs_cpp += $(RS_VERSION_DEFINE) 39 local_cflags_for_rs_cpp += -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -fno-exceptions -std=c++11 40 41 LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 42 43 LOCAL_CLANG := true 44 LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 45 46 LOCAL_SHARED_LIBRARIES := \ 47 libz \ 48 libcutils \ 49 libutils \ 50 liblog \ 51 libdl \ 52 libgui 53 54 LOCAL_STATIC_LIBRARIES := \ 55 libRSDispatch 56 57 LOCAL_MODULE:= libRScpp 58 59 LOCAL_MODULE_TAGS := optional 60 61 LOCAL_C_INCLUDES += frameworks/rs 62 LOCAL_C_INCLUDES += $(intermediates) 63 64 include $(BUILD_SHARED_LIBRARY) 65 66 67 include $(CLEAR_VARS) 68 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 69 70 LOCAL_CLANG := true 71 LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 72 73 ifeq ($(my_32_64_bit_suffix),32) 74 LOCAL_SDK_VERSION := 9 75 else 76 LOCAL_SDK_VERSION := 21 77 endif 78 LOCAL_CFLAGS += -DRS_COMPATIBILITY_LIB 79 80 LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 81 82 LOCAL_SRC_FILES += ../rsCompatibilityLib.cpp 83 84 LOCAL_WHOLE_STATIC_LIBRARIES := \ 85 libutils \ 86 libRSDispatch 87 88 LOCAL_MODULE:= libRScpp_static 89 90 LOCAL_MODULE_TAGS := optional 91 92 LOCAL_C_INCLUDES += frameworks/rs 93 LOCAL_C_INCLUDES += $(intermediates) 94 95 LOCAL_LDFLAGS := -llog -lz -ldl -Wl,--exclude-libs,libc++_static.a 96 LOCAL_NDK_STL_VARIANT := c++_static 97 98 include $(BUILD_STATIC_LIBRARY) 99