blob: 4c4a12831291f33e20da1f13056dc8f27700af5f [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 \
Jason Sams94d8e90a2009-06-10 16:09:05 -070016 libnativehelper \
17 libRS \
18 libcutils \
Mike Reedb5af3252009-07-10 15:33:21 -040019 libskia \
Jason Sams94d8e90a2009-06-10 16:09:05 -070020 libutils \
Mathias Agopian000479f2010-02-09 17:46:37 -080021 libui \
Jason Samsdeb00082010-09-01 13:50:47 -070022 libsurfaceflinger_client
Jason Sams94d8e90a2009-06-10 16:09:05 -070023
24LOCAL_STATIC_LIBRARIES :=
25
26rs_generated_include_dir := $(call intermediates-dir-for,SHARED_LIBRARIES,libRS,,)
27
28LOCAL_C_INCLUDES += \
29 $(JNI_H_INCLUDE) \
Jason Samse29d4712009-07-23 15:19:03 -070030 $(LOCAL_PATH)/../../libs/rs \
Jason Sams94d8e90a2009-06-10 16:09:05 -070031 $(rs_generated_include_dir) \
32 $(call include-path-for, corecg graphics)
33
34LOCAL_CFLAGS +=
35
36LOCAL_LDLIBS := -lpthread
Jason Samse29d4712009-07-23 15:19:03 -070037LOCAL_ADDITIONAL_DEPENDENCIES := $(addprefix $(rs_generated_include_dir)/,rsgApiFuncDecl.h)
38LOCAL_MODULE:= librs_jni
Jason Sams94d8e90a2009-06-10 16:09:05 -070039LOCAL_ADDITIONAL_DEPENDENCIES += $(rs_generated_source)
Jason Samse29d4712009-07-23 15:19:03 -070040LOCAL_MODULE_TAGS := optional
Joe Onorato01e5fbd2009-08-10 14:06:01 -070041LOCAL_REQUIRED_MODULES := libRS
Jason Sams94d8e90a2009-06-10 16:09:05 -070042
43include $(BUILD_SHARED_LIBRARY)
Jason Sams8af858e92009-07-23 16:10:46 -070044
Marco Nelissen3f8f9da82009-08-12 09:41:07 -070045endif #simulator