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