1 rs_cpp_SRC_FILES := \ 2 RenderScript.cpp \ 3 BaseObj.cpp \ 4 Element.cpp \ 5 Type.cpp \ 6 Allocation.cpp \ 7 Script.cpp \ 8 ScriptC.cpp \ 9 ScriptIntrinsics.cpp \ 10 Sampler.cpp 11 12 LOCAL_PATH:= $(call my-dir) 13 include $(CLEAR_VARS) 14 15 include frameworks/compile/slang/rs_version.mk 16 local_cflags_for_rs_cpp += $(RS_VERSION_DEFINE) 17 local_cflags_for_rs_cpp += -Wno-unused-parameter 18 19 LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 20 21 ifneq ($(HOST_OS),windows) 22 LOCAL_CLANG := true 23 endif 24 LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 25 26 LOCAL_SHARED_LIBRARIES := \ 27 libz \ 28 libcutils \ 29 libutils \ 30 liblog \ 31 libdl \ 32 libstlport 33 34 LOCAL_MODULE:= libRScpp 35 36 LOCAL_MODULE_TAGS := optional 37 38 LOCAL_C_INCLUDES += frameworks/rs 39 LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include 40 LOCAL_C_INCLUDES += $(intermediates) 41 42 include $(BUILD_SHARED_LIBRARY) 43 44 45 include $(CLEAR_VARS) 46 47 ifneq ($(HOST_OS),windows) 48 LOCAL_CLANG := true 49 endif 50 LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 51 52 ifeq ($(my_32_64_bit_suffix),32) 53 LOCAL_SDK_VERSION := 8 54 else 55 LOCAL_SDK_VERSION := 21 56 endif 57 LOCAL_CFLAGS += -DRS_COMPATIBILITY_LIB 58 59 LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 60 61 LOCAL_SRC_FILES += ../rsCompatibilityLib.cpp 62 63 LOCAL_WHOLE_STATIC_LIBRARIES := \ 64 libutils \ 65 libstlport_static 66 67 LOCAL_MODULE:= libRScpp_static 68 69 LOCAL_MODULE_TAGS := optional 70 71 LOCAL_C_INCLUDES += frameworks/rs 72 LOCAL_C_INCLUDES += $(intermediates) 73 74 LOCAL_LDFLAGS := -llog -lz -ldl 75 LOCAL_NDK_STL_VARIANT := stlport_static 76 77 include $(BUILD_STATIC_LIBRARY) 78