Jason Sams | 8af858e9 | 2009-07-23 16:10:46 -0700 | [diff] [blame] | 1 | |
Marco Nelissen | 3f8f9da8 | 2009-08-12 09:41:07 -0700 | [diff] [blame] | 2 | # 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. |
| 6 | ifneq ($(TARGET_SIMULATOR),true) |
| 7 | |
Jason Sams | e29d471 | 2009-07-23 15:19:03 -0700 | [diff] [blame] | 8 | LOCAL_PATH:= $(call my-dir) |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 9 | include $(CLEAR_VARS) |
| 10 | |
Jason Sams | e29d471 | 2009-07-23 15:19:03 -0700 | [diff] [blame] | 11 | LOCAL_SRC_FILES:= \ |
| 12 | android_renderscript_RenderScript.cpp |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 13 | |
| 14 | LOCAL_SHARED_LIBRARIES := \ |
| 15 | libandroid_runtime \ |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 16 | libnativehelper \ |
| 17 | libRS \ |
| 18 | libcutils \ |
Mike Reed | b5af325 | 2009-07-10 15:33:21 -0400 | [diff] [blame] | 19 | libskia \ |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 20 | libutils \ |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 21 | libui \ |
Jason Sams | deb0008 | 2010-09-01 13:50:47 -0700 | [diff] [blame] | 22 | libsurfaceflinger_client |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 23 | |
| 24 | LOCAL_STATIC_LIBRARIES := |
| 25 | |
| 26 | rs_generated_include_dir := $(call intermediates-dir-for,SHARED_LIBRARIES,libRS,,) |
| 27 | |
| 28 | LOCAL_C_INCLUDES += \ |
| 29 | $(JNI_H_INCLUDE) \ |
Jason Sams | e29d471 | 2009-07-23 15:19:03 -0700 | [diff] [blame] | 30 | $(LOCAL_PATH)/../../libs/rs \ |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 31 | $(rs_generated_include_dir) \ |
| 32 | $(call include-path-for, corecg graphics) |
| 33 | |
| 34 | LOCAL_CFLAGS += |
| 35 | |
| 36 | LOCAL_LDLIBS := -lpthread |
Jason Sams | e29d471 | 2009-07-23 15:19:03 -0700 | [diff] [blame] | 37 | LOCAL_ADDITIONAL_DEPENDENCIES := $(addprefix $(rs_generated_include_dir)/,rsgApiFuncDecl.h) |
| 38 | LOCAL_MODULE:= librs_jni |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 39 | LOCAL_ADDITIONAL_DEPENDENCIES += $(rs_generated_source) |
Jason Sams | e29d471 | 2009-07-23 15:19:03 -0700 | [diff] [blame] | 40 | LOCAL_MODULE_TAGS := optional |
Joe Onorato | 01e5fbd | 2009-08-10 14:06:01 -0700 | [diff] [blame] | 41 | LOCAL_REQUIRED_MODULES := libRS |
Jason Sams | 94d8e90a | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 42 | |
| 43 | include $(BUILD_SHARED_LIBRARY) |
Jason Sams | 8af858e9 | 2009-07-23 16:10:46 -0700 | [diff] [blame] | 44 | |
Marco Nelissen | 3f8f9da8 | 2009-08-12 09:41:07 -0700 | [diff] [blame] | 45 | endif #simulator |