blob: d266d149384249c4b79f6d22a731a71d3720189f [file] [log] [blame]
Tim Murray89daad62013-07-29 14:30:02 -07001rs_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
Jason Samsa662edd2012-04-02 15:00:10 -070012LOCAL_PATH:= $(call my-dir)
13include $(CLEAR_VARS)
14
Tim Murray84bf2b82012-10-31 16:03:16 -070015ifeq "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
Tim Murray89daad62013-07-29 14:30:02 -070025LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES)
Tim Murray84bf2b82012-10-31 16:03:16 -070026
Tim Murray89daad62013-07-29 14:30:02 -070027LOCAL_CFLAGS += $(local_cflags_for_rs_cpp)
Jason Samsa662edd2012-04-02 15:00:10 -070028
29LOCAL_SHARED_LIBRARIES := \
Jason Samsa662edd2012-04-02 15:00:10 -070030 libz \
31 libcutils \
Ying Wangb2411812013-04-09 21:56:34 -070032 libutils \
Tim Murraya4230962013-07-17 16:50:10 -070033 liblog \
Tim Murray89daad62013-07-29 14:30:02 -070034 libdl \
35 libstlport
Jason Samsa662edd2012-04-02 15:00:10 -070036
37LOCAL_MODULE:= libRScpp
38
39LOCAL_MODULE_TAGS := optional
40
Jason Samsa662edd2012-04-02 15:00:10 -070041LOCAL_C_INCLUDES += frameworks/rs
Tim Murray89daad62013-07-29 14:30:02 -070042LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include
Jason Samsa662edd2012-04-02 15:00:10 -070043LOCAL_C_INCLUDES += $(intermediates)
44
Jason Samsa662edd2012-04-02 15:00:10 -070045include $(BUILD_SHARED_LIBRARY)
Tim Murray89daad62013-07-29 14:30:02 -070046
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)