Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Tim Murray | 84bf2b8 | 2012-10-31 16:03:16 -0700 | [diff] [blame] | 4 | ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" |
| 5 | RS_VERSION := $(PLATFORM_SDK_VERSION) |
| 6 | else |
| 7 | # Increment by 1 whenever this is not a final release build, since we want to |
| 8 | # be able to see the RS version number change during development. |
| 9 | # See build/core/version_defaults.mk for more information about this. |
| 10 | RS_VERSION := "(1 + $(PLATFORM_SDK_VERSION))" |
| 11 | endif |
| 12 | local_cflags_for_rs_cpp += -DRS_VERSION=$(RS_VERSION) |
| 13 | |
| 14 | LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) |
| 15 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 16 | LOCAL_SRC_FILES:= \ |
| 17 | RenderScript.cpp \ |
| 18 | BaseObj.cpp \ |
| 19 | Element.cpp \ |
| 20 | Type.cpp \ |
| 21 | Allocation.cpp \ |
| 22 | Script.cpp \ |
Tim Murray | 7f0d568 | 2012-11-08 16:35:24 -0800 | [diff] [blame] | 23 | ScriptC.cpp \ |
| 24 | ScriptIntrinsics.cpp |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 25 | |
| 26 | LOCAL_SHARED_LIBRARIES := \ |
| 27 | libRS \ |
| 28 | libz \ |
| 29 | libcutils \ |
| 30 | libutils |
| 31 | |
| 32 | LOCAL_MODULE:= libRScpp |
| 33 | |
| 34 | LOCAL_MODULE_TAGS := optional |
| 35 | |
| 36 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) |
| 37 | librs_generated_headers := \ |
| 38 | $(intermediates)/rsgApiStructs.h \ |
| 39 | $(intermediates)/rsgApiFuncDecl.h |
| 40 | LOCAL_GENERATED_SOURCES := $(librs_generated_headers) |
| 41 | |
| 42 | LOCAL_C_INCLUDES += frameworks/rs |
| 43 | LOCAL_C_INCLUDES += $(intermediates) |
| 44 | |
| 45 | |
| 46 | include $(BUILD_SHARED_LIBRARY) |
| 47 | |