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