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) |
Stephen Hines | 3a0ddec | 2013-09-25 14:03:51 -0700 | [diff] [blame] | 24 | local_cflags_for_rs_cpp += -Wno-unused-parameter |
Tim Murray | 84bf2b8 | 2012-10-31 16:03:16 -0700 | [diff] [blame] | 25 | |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 26 | LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) |
Tim Murray | 84bf2b8 | 2012-10-31 16:03:16 -0700 | [diff] [blame] | 27 | |
Stephen Hines | 3a0ddec | 2013-09-25 14:03:51 -0700 | [diff] [blame] | 28 | LOCAL_CLANG := true |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 29 | LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 30 | |
| 31 | LOCAL_SHARED_LIBRARIES := \ |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 32 | libz \ |
| 33 | libcutils \ |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 34 | libutils \ |
Tim Murray | a423096 | 2013-07-17 16:50:10 -0700 | [diff] [blame] | 35 | liblog \ |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 36 | libdl \ |
| 37 | libstlport |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 38 | |
| 39 | LOCAL_MODULE:= libRScpp |
| 40 | |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 43 | LOCAL_C_INCLUDES += frameworks/rs |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 44 | LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 45 | LOCAL_C_INCLUDES += $(intermediates) |
| 46 | |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 47 | include $(BUILD_SHARED_LIBRARY) |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 48 | |
| 49 | |
| 50 | include $(CLEAR_VARS) |
| 51 | |
Stephen Hines | 3a0ddec | 2013-09-25 14:03:51 -0700 | [diff] [blame] | 52 | LOCAL_CLANG := true |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 53 | LOCAL_CFLAGS += $(local_cflags_for_rs_cpp) |
| 54 | |
Tim Murray | 0f98d50 | 2014-01-15 14:35:31 -0800 | [diff] [blame] | 55 | LOCAL_SDK_VERSION := 8 |
| 56 | LOCAL_CFLAGS += -DRS_COMPATIBILITY_LIB |
| 57 | |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 58 | LOCAL_SRC_FILES := $(rs_cpp_SRC_FILES) |
| 59 | |
Tim Murray | 0f98d50 | 2014-01-15 14:35:31 -0800 | [diff] [blame] | 60 | LOCAL_SRC_FILES += ../rsCompatibilityLib.cpp |
| 61 | |
Stephen Hines | 3b9b748 | 2014-01-30 14:54:52 -0800 | [diff] [blame] | 62 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 63 | libz \ |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 64 | libutils \ |
| 65 | liblog \ |
| 66 | libstlport_static |
| 67 | |
| 68 | LOCAL_SHARED_LIBRARIES := libdl |
| 69 | |
| 70 | LOCAL_MODULE:= libRScpp_static |
| 71 | |
| 72 | LOCAL_MODULE_TAGS := optional |
| 73 | |
| 74 | LOCAL_C_INCLUDES += frameworks/rs |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 75 | LOCAL_C_INCLUDES += $(intermediates) |
| 76 | |
Tim Murray | 0f98d50 | 2014-01-15 14:35:31 -0800 | [diff] [blame] | 77 | LOCAL_NDK_STL_VARIANT := stlport_static |
| 78 | |
Tim Murray | 89daad6 | 2013-07-29 14:30:02 -0700 | [diff] [blame] | 79 | include $(BUILD_STATIC_LIBRARY) |