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 |
Victoria Lease | b9a4d82 | 2013-06-27 11:12:27 -0700 | [diff] [blame^] | 152 | LOCAL_SHARED_LIBRARIES += libft2 libpng libz |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 153 | |
Alex Sakhartchouk | 5bab6bf | 2012-04-10 10:38:39 -0700 | [diff] [blame] | 154 | LOCAL_C_INCLUDES += external/freetype/include |
Shih-wei Liao | 2b2e621 | 2011-01-14 06:21:28 -0800 | [diff] [blame] | 155 | LOCAL_C_INCLUDES += frameworks/compile/libbcc/include |
Alex Sakhartchouk | d3e0ad4 | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 156 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 157 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
Stephen Hines | 6a12181 | 2011-03-01 17:34:59 -0800 | [diff] [blame] | 158 | |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 159 | LOCAL_LDLIBS := -lpthread -ldl |
Jason Sams | c7f6ce4 | 2009-06-10 16:09:05 -0700 | [diff] [blame] | 160 | LOCAL_MODULE_TAGS := optional |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 161 | |
| 162 | include $(BUILD_SHARED_LIBRARY) |
| 163 | |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 164 | # Now build a host version for serialization |
| 165 | include $(CLEAR_VARS) |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 166 | LOCAL_MODULE:= libRS |
| 167 | LOCAL_MODULE_TAGS := optional |
| 168 | |
| 169 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,HOST,) |
| 170 | |
| 171 | # Generate custom headers |
| 172 | |
| 173 | GEN := $(addprefix $(intermediates)/, \ |
| 174 | rsgApiStructs.h \ |
| 175 | rsgApiFuncDecl.h \ |
| 176 | ) |
| 177 | |
| 178 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 179 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 180 | $(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] | 181 | $(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.h.rsg |
| 182 | $(transform-generated-source) |
| 183 | |
| 184 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 185 | |
| 186 | # Generate custom source files |
| 187 | |
| 188 | GEN := $(addprefix $(intermediates)/, \ |
| 189 | rsgApi.cpp \ |
| 190 | rsgApiReplay.cpp \ |
| 191 | ) |
| 192 | |
| 193 | $(GEN) : PRIVATE_PATH := $(LOCAL_PATH) |
Tim Murray | 2487bb7 | 2013-03-18 16:41:32 -0700 | [diff] [blame] | 194 | $(GEN) : PRIVATE_CUSTOM_TOOL = cat $(PRIVATE_PATH)/rs.spec $(PRIVATE_PATH)/rsg.spec $(PRIVATE_PATH)/rs_native.spec | $(RSG_GENERATOR) $< $@ |
| 195 | $(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] | 196 | $(GEN): $(intermediates)/%.cpp : $(LOCAL_PATH)/%.cpp.rsg |
| 197 | $(transform-generated-source) |
| 198 | |
| 199 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 200 | |
Stephen Hines | ebee948 | 2012-05-09 11:53:24 -0700 | [diff] [blame] | 201 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
Alex Sakhartchouk | 77d9f4b | 2011-01-31 14:53:24 -0800 | [diff] [blame] | 202 | LOCAL_CFLAGS += -DANDROID_RS_SERIALIZE |
Alex Sakhartchouk | 5bab6bf | 2012-04-10 10:38:39 -0700 | [diff] [blame] | 203 | LOCAL_CFLAGS += -fPIC |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 204 | |
| 205 | LOCAL_SRC_FILES:= \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 206 | rsAdapter.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 207 | rsAllocation.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 208 | rsAnimation.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 209 | rsComponent.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 210 | rsContext.cpp \ |
| 211 | rsDevice.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 212 | rsElement.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 213 | rsFBOCache.cpp \ |
| 214 | rsFifoSocket.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 215 | rsFileA3D.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 216 | rsFont.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 217 | rsObjectBase.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 218 | rsMatrix2x2.cpp \ |
| 219 | rsMatrix3x3.cpp \ |
| 220 | rsMatrix4x4.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 221 | rsMesh.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 222 | rsMutex.cpp \ |
Jason Sams | 9e0afb5 | 2011-10-31 13:23:43 -0700 | [diff] [blame] | 223 | rsPath.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 224 | rsProgram.cpp \ |
| 225 | rsProgramFragment.cpp \ |
| 226 | rsProgramStore.cpp \ |
| 227 | rsProgramRaster.cpp \ |
| 228 | rsProgramVertex.cpp \ |
| 229 | rsSampler.cpp \ |
| 230 | rsScript.cpp \ |
| 231 | rsScriptC.cpp \ |
| 232 | rsScriptC_Lib.cpp \ |
| 233 | rsScriptC_LibGL.cpp \ |
Jason Sams | dbe66d6 | 2012-09-17 13:54:41 -0700 | [diff] [blame] | 234 | rsScriptGroup.cpp \ |
Jason Sams | 8eaba4f | 2012-08-14 14:38:05 -0700 | [diff] [blame] | 235 | rsScriptIntrinsic.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 236 | rsSignal.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 237 | rsStream.cpp \ |
Alex Sakhartchouk | b81a0eb | 2011-06-03 10:18:01 -0700 | [diff] [blame] | 238 | rsThreadIO.cpp \ |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 239 | rsType.cpp |
| 240 | |
Ying Wang | b241181 | 2013-04-09 21:56:34 -0700 | [diff] [blame] | 241 | LOCAL_STATIC_LIBRARIES := libcutils libutils liblog |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 242 | |
| 243 | LOCAL_LDLIBS := -lpthread |
Alex Sakhartchouk | 099d7d3 | 2011-01-28 09:31:47 -0800 | [diff] [blame] | 244 | |
| 245 | include $(BUILD_HOST_STATIC_LIBRARY) |
Jason Sams | 709a097 | 2012-11-15 18:18:04 -0800 | [diff] [blame] | 246 | |
Stephen Hines | b53c8a5 | 2013-04-05 22:17:36 -0700 | [diff] [blame] | 247 | |
| 248 | LLVM_ROOT_PATH := external/llvm |
| 249 | |
| 250 | #============================================================================= |
| 251 | # android librsloader for libbcc (Device) |
| 252 | #----------------------------------------------------------------------------- |
| 253 | |
| 254 | rsloader_SRC_FILES := \ |
| 255 | driver/linkloader/android/librsloader.cpp \ |
| 256 | driver/linkloader/lib/ELFHeader.cpp \ |
| 257 | driver/linkloader/lib/ELFSymbol.cpp \ |
| 258 | driver/linkloader/lib/ELFSectionHeader.cpp \ |
| 259 | driver/linkloader/lib/ELFTypes.cpp \ |
| 260 | driver/linkloader/lib/GOT.cpp \ |
| 261 | driver/linkloader/lib/MemChunk.cpp \ |
| 262 | driver/linkloader/lib/StubLayout.cpp \ |
| 263 | driver/linkloader/utils/helper.cpp \ |
| 264 | driver/linkloader/utils/raw_ostream.cpp \ |
| 265 | driver/linkloader/utils/rsl_assert.cpp |
| 266 | |
| 267 | include $(CLEAR_VARS) |
| 268 | |
| 269 | LOCAL_MODULE := librsloader |
| 270 | |
| 271 | LOCAL_MODULE_TAGS := optional |
| 272 | |
| 273 | LOCAL_SRC_FILES := $(rsloader_SRC_FILES) |
| 274 | |
| 275 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 276 | |
| 277 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| 278 | |
| 279 | LOCAL_C_INCLUDES := \ |
| 280 | $(LOCAL_PATH)/driver/linkloader \ |
| 281 | $(LOCAL_PATH)/driver/linkloader/include \ |
| 282 | $(LOCAL_C_INCLUDES) |
| 283 | |
| 284 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
| 285 | include $(BUILD_STATIC_LIBRARY) |
| 286 | |
| 287 | |
| 288 | #============================================================================= |
| 289 | # android librsloader for libbcc (Host) |
| 290 | #----------------------------------------------------------------------------- |
| 291 | |
| 292 | include $(CLEAR_VARS) |
| 293 | |
| 294 | LOCAL_MODULE := librsloader |
| 295 | |
| 296 | LOCAL_MODULE_TAGS := optional |
| 297 | |
| 298 | LOCAL_SRC_FILES := $(rsloader_SRC_FILES) |
| 299 | |
| 300 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 301 | |
| 302 | LOCAL_CFLAGS += $(rs_base_CFLAGS) |
| 303 | LOCAL_CFLAGS += -D__HOST__ |
| 304 | |
| 305 | LOCAL_C_INCLUDES := \ |
| 306 | $(LOCAL_PATH)/driver/linkloader \ |
| 307 | $(LOCAL_PATH)/driver/linkloader/include \ |
| 308 | $(LOCAL_C_INCLUDES) |
| 309 | |
| 310 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
| 311 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 312 | |
Stephen Hines | f12f8ed | 2013-05-23 13:40:57 -0700 | [diff] [blame] | 313 | include $(call all-makefiles-under,$(LOCAL_PATH)) |