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