Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 1 | rs_cpp_SRC_FILES := \ |
| 2 | RenderScript.cpp \ |
| 3 | BaseObj.cpp \ |
| 4 | Element.cpp \ |
| 5 | Type.cpp \ |
| 6 | Allocation.cpp \ |
| 7 | Script.cpp \ |
| 8 | ScriptC.cpp \ |
| 9 | ScriptIntrinsics.cpp \ |
| 10 | Sampler.cpp |
| 11 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 12 | LOCAL_PATH:= $(call my-dir) |
| 13 | include $(CLEAR_VARS) |
| 14 | |
Tim Murray | 84bf2b8 | 2012-10-31 16:03:16 -0700 | [diff] [blame] | 15 | ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" |
| 16 | RS_VERSION := $(PLATFORM_SDK_VERSION) |
| 17 | else |
| 18 | # Increment by 1 whenever this is not a final release build, since we want to |
| 19 | # be able to see the RS version number change during development. |
| 20 | # See build/core/version_defaults.mk for more information about this. |
| 21 | RS_VERSION := "(1 + $(PLATFORM_SDK_VERSION))" |
| 22 | endif |
| 23 | local_cflags_for_rs_cpp += -DRS_VERSION=$(RS_VERSION) |
| 24 | |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 25 | LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) |
Tim Murray | 84bf2b8 | 2012-10-31 16:03:16 -0700 | [diff] [blame] | 26 | |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 27 | LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 30 | libz \ |
| 31 | libcutils \ |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 32 | libutils \ |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 33 | liblog \ |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 34 | libdl \ |
| 35 | libstlport |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 36 | |
| 37 | LOCAL_MODULE:= libRScpp |
| 38 | |
| 39 | LOCAL_MODULE_TAGS := optional |
| 40 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 41 | LOCAL_C_INCLUDES += frameworks/rs |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 42 | LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 43 | LOCAL_C_INCLUDES += $(intermediates) |
| 44 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 45 | include $(BUILD_SHARED_LIBRARY) |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame^] | 46 | |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) |
| 51 | |
| 52 | LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) |
| 53 | |
| 54 | LOCAL_STATIC_LIBRARIES := \ |
| 55 | libz \ |
| 56 | libcutils \ |
| 57 | libutils \ |
| 58 | liblog \ |
| 59 | libstlport_static |
| 60 | |
| 61 | LOCAL_SHARED_LIBRARIES := libdl |
| 62 | |
| 63 | LOCAL_MODULE:= libRScpp_static |
| 64 | |
| 65 | LOCAL_MODULE_TAGS := optional |
| 66 | |
| 67 | LOCAL_C_INCLUDES += frameworks/rs |
| 68 | LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include |
| 69 | LOCAL_C_INCLUDES += $(intermediates) |
| 70 | |
| 71 | include $(BUILD_STATIC_LIBRARY) |