blob: 8476be155f6fdbb0bfbc875e0077cd59a24f7b34 [file] [log] [blame]
Jason Sams8af858e92009-07-23 16:10:46 -07001
Marco Nelissen3f8f9da82009-08-12 09:41:07 -07002# libRS needs libacc, which isn't 64-bit clean, and so can't be built
3# for the simulator on gHardy, and therefore libRS needs to be excluded
4# from the simulator as well, and so in turn librs_jni needs to be
5# excluded.
6ifneq ($(TARGET_SIMULATOR),true)
7
Jason Samse29d4712009-07-23 15:19:03 -07008LOCAL_PATH:= $(call my-dir)
Jason Sams94d8e90a2009-06-10 16:09:05 -07009include $(CLEAR_VARS)
10
Jason Samse29d4712009-07-23 15:19:03 -070011LOCAL_SRC_FILES:= \
12 android_renderscript_RenderScript.cpp
Jason Sams94d8e90a2009-06-10 16:09:05 -070013
14LOCAL_SHARED_LIBRARIES := \
15 libandroid_runtime \
16 libacc \
17 libnativehelper \
18 libRS \
19 libcutils \
Mike Reedb5af3252009-07-10 15:33:21 -040020 libskia \
Jason Sams94d8e90a2009-06-10 16:09:05 -070021 libutils \
Mathias Agopian000479f2010-02-09 17:46:37 -080022 libui \
23 libsurfaceflinger_client
Jason Sams94d8e90a2009-06-10 16:09:05 -070024
25LOCAL_STATIC_LIBRARIES :=
26
27rs_generated_include_dir := $(call intermediates-dir-for,SHARED_LIBRARIES,libRS,,)
28
29LOCAL_C_INCLUDES += \
30 $(JNI_H_INCLUDE) \
Jason Samse29d4712009-07-23 15:19:03 -070031 $(LOCAL_PATH)/../../libs/rs \
Jason Sams94d8e90a2009-06-10 16:09:05 -070032 $(rs_generated_include_dir) \
33 $(call include-path-for, corecg graphics)
34
35LOCAL_CFLAGS +=
36
37LOCAL_LDLIBS := -lpthread
Jason Samse29d4712009-07-23 15:19:03 -070038LOCAL_ADDITIONAL_DEPENDENCIES := $(addprefix $(rs_generated_include_dir)/,rsgApiFuncDecl.h)
39LOCAL_MODULE:= librs_jni
Jason Sams94d8e90a2009-06-10 16:09:05 -070040LOCAL_ADDITIONAL_DEPENDENCIES += $(rs_generated_source)
Jason Samse29d4712009-07-23 15:19:03 -070041LOCAL_MODULE_TAGS := optional
Joe Onorato01e5fbd2009-08-10 14:06:01 -070042LOCAL_REQUIRED_MODULES := libRS
Jason Sams94d8e90a2009-06-10 16:09:05 -070043
44include $(BUILD_SHARED_LIBRARY)
Jason Sams8af858e92009-07-23 16:10:46 -070045
Marco Nelissen3f8f9da82009-08-12 09:41:07 -070046endif #simulator