Jason Sams | 5e172b0 | 2009-07-23 16:10:46 -0700 | [diff] [blame] | 1 | |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 2 | LOCAL_PATH:=$(call my-dir) |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 3 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 4 | rs_base_CFLAGS := -Werror -Wall -Wno-unused-parameter -Wno-unused-variable |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 5 | ifeq ($(TARGET_BUILD_PDK), true) |
| 6 | rs_base_CFLAGS += -D__RS_PDK__ |
| 7 | endif |
| 8 | |
Stephen Hines | 91dfcdb | 2012-09-07 18:23:35 -0700 | [diff] [blame] | 9 | ifneq ($(OVERRIDE_RS_DRIVER),) |
| 10 | rs_base_CFLAGS += -DOVERRIDE_RS_DRIVER=$(OVERRIDE_RS_DRIVER) |
| 11 | endif |
| 12 | |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 13 | include $(CLEAR_VARS) |
Stephen Hines | f098424 | 2012-05-11 17:41:36 -0700 | [diff] [blame] | 14 | LOCAL_CLANG := true |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 15 | LOCAL_MODULE := libRSDriver |
| 16 | |
| 17 | LOCAL_SRC_FILES:= \ |
| 18 | driver/rsdAllocation.cpp \ |
| 19 | driver/rsdBcc.cpp \ |
| 20 | driver/rsdCore.cpp \ |
| 21 | driver/rsdFrameBuffer.cpp \ |
| 22 | driver/rsdFrameBufferObj.cpp \ |
| 23 | driver/rsdGL.cpp \ |
| 24 | driver/rsdMesh.cpp \ |
| 25 | driver/rsdMeshObj.cpp \ |
| 26 | driver/rsdPath.cpp \ |
| 27 | driver/rsdProgram.cpp \ |
| 28 | driver/rsdProgramRaster.cpp \ |
| 29 | driver/rsdProgramStore.cpp \ |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 30 | driver/rsdRuntimeStubs.cpp \ |
| 31 | driver/rsdSampler.cpp \ |
Jason Sams | dbe66d6 | 2012-09-17 13:54:41 -0700 | [diff] [blame] | 32 | driver/rsdScriptGroup.cpp \ |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 33 | driver/rsdShader.cpp \ |
| 34 | driver/rsdShaderCache.cpp \ |
Jason Sams | 6d958bc | 2012-09-04 15:14:05 -0700 | [diff] [blame] | 35 | driver/rsdVertexArray.cpp |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 36 | |
Jason Sams | e1e08b4 | 2012-09-04 16:49:19 -0700 | [diff] [blame] | 37 | |
Jason Sams | 709a097 | 2012-11-15 18:18:04 -0800 | [diff] [blame] | 38 | LOCAL_SHARED_LIBRARIES += libRS libRSCpuRef |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 39 | LOCAL_SHARED_LIBRARIES += liblog libcutils libutils libEGL libGLESv1_CM libGLESv2 |
Stephen Hines | 985573c | 2013-02-27 23:23:19 -0800 | [diff] [blame] | 40 | LOCAL_SHARED_LIBRARIES += libbcc libbcinfo libLLVM libui libgui libsync |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 41 | |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 42 | LOCAL_C_INCLUDES += frameworks/compile/libbcc/include |
| 43 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 44 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
Alex Sakhartchouk | 5e3c968 | 2012-03-09 15:04:23 -0800 | [diff] [blame] | 45 | |
| 46 | LOCAL_LDLIBS := -lpthread -ldl |
| 47 | LOCAL_MODULE_TAGS := optional |
| 48 | |
Stephen Hines | 414a461 | 2012-09-05 18:05:08 -0700 | [diff] [blame] | 49 | include $(BUILD_SHARED_LIBRARY) |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 50 | |
| 51 | # Build rsg-generator ==================== |
| 52 | include $(CLEAR_VARS) |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 53 | |
| 54 | LOCAL_MODULE := rsg-generator |
| 55 | |
| 56 | # These symbols are normally defined by BUILD_XXX, but we need to define them |
| 57 | # here so that local-intermediates-dir works. |
| 58 | |
| 59 | LOCAL_IS_HOST_MODULE := true |
| 60 | LOCAL_MODULE_CLASS := EXECUTABLES |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 61 | intermediates := $(local-intermediates-dir) |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 62 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 63 | LOCAL_SRC_FILES:= \ |
Joe Onorato | 84614dd | 2009-08-10 15:01:51 -0700 | [diff] [blame] | 64 | spec.l \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 65 | rsg_generator.c |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 66 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 67 | include $(BUILD_HOST_EXECUTABLE) |
| 68 | |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 69 | # TODO: This should go into build/core/config.mk |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 70 | RSG_GENERATOR:=$(LOCAL_BUILT_MODULE) |
| 71 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 72 | include $(CLEAR_VARS) |
Stephen Hines | f098424 | 2012-05-11 17:41:36 -0700 | [diff] [blame] | 73 | LOCAL_CLANG := true |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 74 | LOCAL_MODULE := libRS |
| 75 | |
| 76 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 77 | intermediates:= $(local-intermediates-dir) |
| 78 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 79 | # Generate custom headers |
| 80 | |
| 81 | GEN := $(addprefix $(intermediates)/, \ |
| 82 | rsgApiStructs.h \ |
| 83 | rsgApiFuncDecl.h \ |
| 84 | ) |
| 85 | |
Jason Sams | 81e48fa | 2009-06-10 18:35:42 -0700 | [diff] [blame] | 86 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 87 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 88 | $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec $(LOCAL_PATH)/rsg.spec $(LOCAL_PATH)/rs_native.spec |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 89 | $(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.h.rsg |
| 90 | $(transform-generated-source) |
Jack Palevich | a5e094b | 2009-05-26 17:23:34 -0700 | [diff] [blame] | 91 | |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 92 | # used in jni/Android.mk |
| 93 | rs_generated_source += $(GEN) |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 94 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 95 | |
| 96 | # Generate custom source files |
| 97 | |
| 98 | GEN := $(addprefix $(intermediates)/, \ |
| 99 | rsgApi.cpp \ |
| 100 | rsgApiReplay.cpp \ |
| 101 | ) |
Jack Palevich | a5e094b | 2009-05-26 17:23:34 -0700 | [diff] [blame] | 102 | |
Jason Sams | 81e48fa | 2009-06-10 18:35:42 -0700 | [diff] [blame] | 103 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 104 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 105 | $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec $(LOCAL_PATH)/rsg.spec $(LOCAL_PATH)/rs_native.spec |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 106 | $(GEN): $(intermediates)/%.cpp : $(LOCAL_PATH)/%.cpp.rsg |
| 107 | $(transform-generated-source) |
Jack Palevich | a5e094b | 2009-05-26 17:23:34 -0700 | [diff] [blame] | 108 | |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 109 | # used in jni/Android.mk |
| 110 | rs_generated_source += $(GEN) |
Jason Sams | 81e48fa | 2009-06-10 18:35:42 -0700 | [diff] [blame] | 111 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 112 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 113 | |
| 114 | LOCAL_SRC_FILES:= \ |
| 115 | rsAdapter.cpp \ |
| 116 | rsAllocation.cpp \ |
Jason Sams | c1ed589 | 2010-03-10 17:30:41 -0800 | [diff] [blame] | 117 | rsAnimation.cpp \ |
Jason Sams | d01d970 | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 118 | rsComponent.cpp \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 119 | rsContext.cpp \ |
| 120 | rsDevice.cpp \ |
| 121 | rsElement.cpp \ |
Alex Sakhartchouk | 7d9c5ff | 2011-04-01 14:19:01 -0700 | [diff] [blame] | 122 | rsFBOCache.cpp \ |
Jason Sams | 2008747 | 2011-05-06 14:14:30 -0700 | [diff] [blame] | 123 | rsFifoSocket.cpp \ |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 124 | rsFileA3D.cpp \ |
| 125 | rsFont.cpp \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 126 | rsObjectBase.cpp \ |
Jason Sams | 87fe59a | 2011-04-20 15:09:01 -0700 | [diff] [blame] | 127 | rsMatrix2x2.cpp \ |
| 128 | rsMatrix3x3.cpp \ |
| 129 | rsMatrix4x4.cpp \ |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 130 | rsMesh.cpp \ |
| 131 | rsMutex.cpp \ |
Jason Sams | 9e0afb5 | 2011-10-31 13:23:43 -0700 | [diff] [blame] | 132 | rsPath.cpp \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 133 | rsProgram.cpp \ |
| 134 | rsProgramFragment.cpp \ |
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 135 | rsProgramStore.cpp \ |
Jason Sams | 5fd09d8 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 136 | rsProgramRaster.cpp \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 137 | rsProgramVertex.cpp \ |
| 138 | rsSampler.cpp \ |
| 139 | rsScript.cpp \ |
| 140 | rsScriptC.cpp \ |
Jason Sams | e45ac6e | 2009-07-20 14:31:06 -0700 | [diff] [blame] | 141 | rsScriptC_Lib.cpp \ |
Jason Sams | aeb094b | 2010-05-18 13:35:45 -0700 | [diff] [blame] | 142 | rsScriptC_LibGL.cpp \ |
Jason Sams | dbe66d6 | 2012-09-17 13:54:41 -0700 | [diff] [blame] | 143 | rsScriptGroup.cpp \ |
Jason Sams | 8eaba4f | 2012-08-14 14:38:05 -0700 | [diff] [blame] | 144 | rsScriptIntrinsic.cpp \ |
Jason Sams | 12b14ae | 2010-03-18 11:39:44 -0700 | [diff] [blame] | 145 | rsSignal.cpp \ |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 146 | rsStream.cpp \ |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 147 | rsThreadIO.cpp \ |
Jason Sams | a662edd | 2012-04-02 15:00:10 -0700 | [diff] [blame] | 148 | rsType.cpp |
Jason Sams | c460e55 | 2009-11-25 13:22:07 -0800 | [diff] [blame] | 149 | |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 150 | LOCAL_SHARED_LIBRARIES += liblog libcutils libutils libEGL libGLESv1_CM libGLESv2 libbcc |
Stephen Hines | 985573c | 2013-02-27 23:23:19 -0800 | [diff] [blame] | 151 | LOCAL_SHARED_LIBRARIES += libui libbcinfo libLLVM libgui libsync libdl |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 152 | |
Stephen Hines | 414a461 | 2012-09-05 18:05:08 -0700 | [diff] [blame] | 153 | LOCAL_STATIC_LIBRARIES := libft2 |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 154 | |
Alex Sakhartchouk | 5bab6bf | 2012-04-10 10:38:39 -0700 | [diff] [blame] | 155 | LOCAL_C_INCLUDES += external/freetype/include |
Shih-wei Liao | 2b2e621 | 2011-01-14 06:21:28 -0800 | [diff] [blame] | 156 | LOCAL_C_INCLUDES += frameworks/compile/libbcc/include |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 157 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 158 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
Stephen Hines | 6a12181 | 2011-03-01 17:34:59 -0800 | [diff] [blame] | 159 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 160 | LOCAL_LDLIBS := -lpthread -ldl |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 161 | LOCAL_MODULE_TAGS := optional |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 162 | |
| 163 | include $(BUILD_SHARED_LIBRARY) |
| 164 | |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 165 | # Now build a host version for serialization |
| 166 | include $(CLEAR_VARS) |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 167 | LOCAL_MODULE:= libRS |
| 168 | LOCAL_MODULE_TAGS := optional |
| 169 | |
| 170 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,HOST,) |
| 171 | |
| 172 | # Generate custom headers |
| 173 | |
| 174 | GEN := $(addprefix $(intermediates)/, \ |
| 175 | rsgApiStructs.h \ |
| 176 | rsgApiFuncDecl.h \ |
| 177 | ) |
| 178 | |
| 179 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 180 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 181 | $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec $(LOCAL_PATH)/rsg.spec $(LOCAL_PATH)/rs_native.spec |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 182 | $(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.h.rsg |
| 183 | $(transform-generated-source) |
| 184 | |
| 185 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 186 | |
| 187 | # Generate custom source files |
| 188 | |
| 189 | GEN := $(addprefix $(intermediates)/, \ |
| 190 | rsgApi.cpp \ |
| 191 | rsgApiReplay.cpp \ |
| 192 | ) |
| 193 | |
| 194 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 195 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 196 | $(GEN) : $(RSG_GENERATOR) $(LOCAL_PATH)/rs.spec $(LOCAL_PATH)/rsg.spec $(LOCAL_PATH)/rs_native.spec |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 197 | $(GEN): $(intermediates)/%.cpp : $(LOCAL_PATH)/%.cpp.rsg |
| 198 | $(transform-generated-source) |
| 199 | |
| 200 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 201 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 202 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
Alex Sakhartchouk | 77d9f4b | 2011-01-31 14:53:24 -0800 | [diff] [blame] | 203 | LOCAL_CFLAGS += -DANDROID_RS_SERIALIZE |
Alex Sakhartchouk | 5bab6bf | 2012-04-10 10:38:39 -0700 | [diff] [blame] | 204 | LOCAL_CFLAGS += -fPIC |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 205 | |
| 206 | LOCAL_SRC_FILES:= \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 207 | rsAdapter.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 208 | rsAllocation.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 209 | rsAnimation.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 210 | rsComponent.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 211 | rsContext.cpp \ |
| 212 | rsDevice.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 213 | rsElement.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 214 | rsFBOCache.cpp \ |
| 215 | rsFifoSocket.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 216 | rsFileA3D.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 217 | rsFont.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 218 | rsObjectBase.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 219 | rsMatrix2x2.cpp \ |
| 220 | rsMatrix3x3.cpp \ |
| 221 | rsMatrix4x4.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 222 | rsMesh.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 223 | rsMutex.cpp \ |
Jason Sams | 9e0afb5 | 2011-10-31 13:23:43 -0700 | [diff] [blame] | 224 | rsPath.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 225 | rsProgram.cpp \ |
| 226 | rsProgramFragment.cpp \ |
| 227 | rsProgramStore.cpp \ |
| 228 | rsProgramRaster.cpp \ |
| 229 | rsProgramVertex.cpp \ |
| 230 | rsSampler.cpp \ |
| 231 | rsScript.cpp \ |
| 232 | rsScriptC.cpp \ |
| 233 | rsScriptC_Lib.cpp \ |
| 234 | rsScriptC_LibGL.cpp \ |
Jason Sams | dbe66d6 | 2012-09-17 13:54:41 -0700 | [diff] [blame] | 235 | rsScriptGroup.cpp \ |
Jason Sams | 8eaba4f | 2012-08-14 14:38:05 -0700 | [diff] [blame] | 236 | rsScriptIntrinsic.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 237 | rsSignal.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 238 | rsStream.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 239 | rsThreadIO.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 240 | rsType.cpp |
| 241 | |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 242 | LOCAL_STATIC_LIBRARIES := libcutils libutils liblog |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 243 | |
| 244 | LOCAL_LDLIBS := -lpthread |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 245 | |
| 246 | include $(BUILD_HOST_STATIC_LIBRARY) |
Jason Sams | 709a097 | 2012-11-15 18:18:04 -0800 | [diff] [blame] | 247 | |
Stephen Hines | b53c8a5 | 2013-04-05 22:17:36 -0700 | [diff] [blame] | 248 | |
| 249 | LLVM_ROOT_PATH := external/llvm |
| 250 | |
| 251 | #============================================================================= |
| 252 | # android librsloader for libbcc (Device) |
| 253 | #----------------------------------------------------------------------------- |
| 254 | |
| 255 | rsloader_SRC_FILES := \ |
| 256 | driver/linkloader/android/librsloader.cpp \ |
| 257 | driver/linkloader/lib/ELFHeader.cpp \ |
| 258 | driver/linkloader/lib/ELFSymbol.cpp \ |
| 259 | driver/linkloader/lib/ELFSectionHeader.cpp \ |
| 260 | driver/linkloader/lib/ELFTypes.cpp \ |
| 261 | driver/linkloader/lib/GOT.cpp \ |
| 262 | driver/linkloader/lib/MemChunk.cpp \ |
| 263 | driver/linkloader/lib/StubLayout.cpp \ |
| 264 | driver/linkloader/utils/helper.cpp \ |
| 265 | driver/linkloader/utils/raw_ostream.cpp \ |
| 266 | driver/linkloader/utils/rsl_assert.cpp |
| 267 | |
| 268 | include $(CLEAR_VARS) |
| 269 | |
| 270 | LOCAL_MODULE := librsloader |
| 271 | |
| 272 | LOCAL_MODULE_TAGS := optional |
| 273 | |
| 274 | LOCAL_SRC_FILES := $(rsloader_SRC_FILES) |
| 275 | |
| 276 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 277 | |
| 278 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| 279 | |
| 280 | LOCAL_C_INCLUDES := \ |
| 281 | $(LOCAL_PATH)/driver/linkloader \ |
| 282 | $(LOCAL_PATH)/driver/linkloader/include \ |
| 283 | $(LOCAL_C_INCLUDES) |
| 284 | |
| 285 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
| 286 | include $(BUILD_STATIC_LIBRARY) |
| 287 | |
| 288 | |
| 289 | #============================================================================= |
| 290 | # android librsloader for libbcc (Host) |
| 291 | #----------------------------------------------------------------------------- |
| 292 | |
| 293 | include $(CLEAR_VARS) |
| 294 | |
| 295 | LOCAL_MODULE := librsloader |
| 296 | |
| 297 | LOCAL_MODULE_TAGS := optional |
| 298 | |
| 299 | LOCAL_SRC_FILES := $(rsloader_SRC_FILES) |
| 300 | |
| 301 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 302 | |
| 303 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| 304 | LOCAL_CFLAGS += -D__HOST__ |
| 305 | |
| 306 | LOCAL_C_INCLUDES := \ |
| 307 | $(LOCAL_PATH)/driver/linkloader \ |
| 308 | $(LOCAL_PATH)/driver/linkloader/include \ |
| 309 | $(LOCAL_C_INCLUDES) |
| 310 | |
| 311 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
| 312 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 313 | |
Stephen Hines | f12f8ed | 2013-05-23 13:40:57 -0700 | [diff] [blame] | 314 | include $(call all-makefiles-under,$(LOCAL_PATH)) |