LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ rsDispatch.cpp LOCAL_C_INCLUDES += \ frameworks/rs LOCAL_CFLAGS += -Wno-unused-parameter -std=c++11 LOCAL_MODULE:= libRSDispatch LOCAL_SDK_VERSION := 9 LOCAL_MODULE_TAGS := optional LOCAL_LDFLAGS += -ldl # Used in librsjni, which is built as NDK code => no ASan. LOCAL_SANITIZE := never LOCAL_NDK_STL_VARIANT := none include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) rs_cpp_SRC_FILES := \ RenderScript.cpp \ BaseObj.cpp \ Element.cpp \ Type.cpp \ Allocation.cpp \ Script.cpp \ ScriptC.cpp \ ScriptIntrinsics.cpp \ ScriptIntrinsicBLAS.cpp \ Sampler.cpp LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk include frameworks/compile/slang/rs_version.mk local_cflags_for_rs_cpp += $(RS_VERSION_DEFINE) local_cflags_for_rs_cpp += -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -fno-exceptions -std=c++11 LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) LOCAL_CLANG := true LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) LOCAL_SHARED_LIBRARIES := \ libz \ libcutils \ libutils \ liblog \ libdl \ libgui LOCAL_STATIC_LIBRARIES := \ libRSDispatch LOCAL_MODULE:= libRScpp LOCAL_MODULE_TAGS := optional LOCAL_C_INCLUDES += frameworks/rs LOCAL_C_INCLUDES += $(intermediates) include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_CLANG := true LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) ifeq ($(my_32_64_bit_suffix),32) LOCAL_SDK_VERSION := 9 else LOCAL_SDK_VERSION := 21 endif LOCAL_CFLAGS += -DRS_COMPATIBILITY_LIB LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) LOCAL_SRC_FILES += ../rsCompatibilityLib.cpp LOCAL_WHOLE_STATIC_LIBRARIES := \ libutils \ libRSDispatch LOCAL_MODULE:= libRScpp_static LOCAL_MODULE_TAGS := optional LOCAL_C_INCLUDES += frameworks/rs LOCAL_C_INCLUDES += $(intermediates) LOCAL_LDFLAGS := -llog -lz -ldl -Wl,--exclude-libs,libc++_static.a LOCAL_NDK_STL_VARIANT := c++_static include $(BUILD_STATIC_LIBRARY)