1rs_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 12LOCAL_PATH:= $(call my-dir) 13include $(CLEAR_VARS) 14 15ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" 16 RS_VERSION := $(PLATFORM_SDK_VERSION) 17else 18 # Increment by 1 whenever this is not a final release build, since we want to 19 # be able to see the RS version number change during development. 20 # See build/core/version_defaults.mk for more information about this. 21 RS_VERSION := "(1 + $(PLATFORM_SDK_VERSION))" 22endif 23local_cflags_for_rs_cpp += -DRS_VERSION=$(RS_VERSION) 24 25LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 26 27LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 28 29LOCAL_SHARED_LIBRARIES := \ 30 libz \ 31 libcutils \ 32 libutils \ 33 liblog \ 34 libdl \ 35 libstlport 36 37LOCAL_MODULE:= libRScpp 38 39LOCAL_MODULE_TAGS := optional 40 41LOCAL_C_INCLUDES += frameworks/rs 42LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include 43LOCAL_C_INCLUDES += $(intermediates) 44 45include $(BUILD_SHARED_LIBRARY) 46 47 48include $(CLEAR_VARS) 49 50LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) 51 52LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) 53 54LOCAL_STATIC_LIBRARIES := \ 55 libz \ 56 libcutils \ 57 libutils \ 58 liblog \ 59 libstlport_static 60 61LOCAL_SHARED_LIBRARIES := libdl 62 63LOCAL_MODULE:= libRScpp_static 64 65LOCAL_MODULE_TAGS := optional 66 67LOCAL_C_INCLUDES += frameworks/rs 68LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include 69LOCAL_C_INCLUDES += $(intermediates) 70 71include $(BUILD_STATIC_LIBRARY) 72