1 LOCAL_PATH:= $(call my-dir)
6 LOCAL_MODULE_PATH := $(TARGET_OUT)/vendor/lib/egl
7 LOCAL_MODULE := libGLESv2_swiftshader
10 ../../Common/CPUID.cpp \
11 ../../Common/Configurator.cpp \
12 ../../Common/Debug.cpp \
13 ../../Common/Half.cpp \
14 ../../Common/Math.cpp \
15 ../../Common/Memory.cpp \
16 ../../Common/Resource.cpp \
17 ../../Common/Socket.cpp \
18 ../../Common/Thread.cpp \
19 ../../Common/Timer.cpp
22 ../../Main/Config.cpp \
23 ../../Main/FrameBuffer.cpp \
24 ../../Main/FrameBufferAndroid.cpp \
26 ../../Main/Register.cpp \
27 ../../Main/SwiftConfig.cpp \
29 ../../Main/serialvalid.cpp \
32 ../../Reactor/Nucleus.cpp \
33 ../../Reactor/Routine.cpp \
34 ../../Reactor/RoutineManager.cpp
37 ../../Renderer/Blitter.cpp \
38 ../../Renderer/Clipper.cpp \
39 ../../Renderer/Color.cpp \
40 ../../Renderer/Context.cpp \
41 ../../Renderer/Matrix.cpp \
42 ../../Renderer/PixelProcessor.cpp \
43 ../../Renderer/Plane.cpp \
44 ../../Renderer/Point.cpp \
45 ../../Renderer/QuadRasterizer.cpp \
46 ../../Renderer/Rasterizer.cpp \
47 ../../Renderer/Renderer.cpp \
48 ../../Renderer/Sampler.cpp \
49 ../../Renderer/SetupProcessor.cpp \
50 ../../Renderer/Surface.cpp \
51 ../../Renderer/TextureStage.cpp \
52 ../../Renderer/Vector.cpp \
53 ../../Renderer/VertexProcessor.cpp \
56 ../../Shader/Constants.cpp \
57 ../../Shader/PixelRoutine.cpp \
58 ../../Shader/PixelShader.cpp \
59 ../../Shader/SamplerCore.cpp \
60 ../../Shader/SetupRoutine.cpp \
61 ../../Shader/Shader.cpp \
62 ../../Shader/ShaderCore.cpp \
63 ../../Shader/VertexPipeline.cpp \
64 ../../Shader/VertexProgram.cpp \
65 ../../Shader/VertexRoutine.cpp \
66 ../../Shader/VertexShader.cpp \
69 ../common/NameSpace.cpp \
70 ../common/Object.cpp \
74 ../compiler/preprocessor/Diagnostics.cpp \
75 ../compiler/preprocessor/DirectiveHandler.cpp \
76 ../compiler/preprocessor/DirectiveParser.cpp \
77 ../compiler/preprocessor/ExpressionParser.cpp \
78 ../compiler/preprocessor/Input.cpp \
79 ../compiler/preprocessor/Lexer.cpp \
80 ../compiler/preprocessor/Macro.cpp \
81 ../compiler/preprocessor/MacroExpander.cpp \
82 ../compiler/preprocessor/Preprocessor.cpp \
83 ../compiler/preprocessor/Token.cpp \
84 ../compiler/preprocessor/Tokenizer.cpp \
85 ../compiler/AnalyzeCallDepth.cpp \
86 ../compiler/Compiler.cpp \
87 ../compiler/debug.cpp \
88 ../compiler/Diagnostics.cpp \
89 ../compiler/DirectiveHandler.cpp \
90 ../compiler/glslang_lex.cpp \
91 ../compiler/glslang_tab.cpp \
92 ../compiler/InfoSink.cpp \
93 ../compiler/Initialize.cpp \
94 ../compiler/InitializeParseContext.cpp \
95 ../compiler/IntermTraverse.cpp \
96 ../compiler/Intermediate.cpp \
97 ../compiler/intermOut.cpp \
98 ../compiler/ossource_posix.cpp \
99 ../compiler/OutputASM.cpp \
100 ../compiler/parseConst.cpp \
101 ../compiler/ParseHelper.cpp \
102 ../compiler/PoolAlloc.cpp \
103 ../compiler/SymbolTable.cpp \
104 ../compiler/TranslatorASM.cpp \
105 ../compiler/util.cpp \
106 ../compiler/ValidateLimitations.cpp \
115 IndexDataManager.cpp \
121 ResourceManager.cpp \
124 TransformFeedback.cpp \
126 VertexDataManager.cpp \
128 LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv2_swiftshader\"
130 # Android's make system also uses NDEBUG, so we need to set/unset it forcefully
132 LOCAL_CFLAGS += -UNDEBUG -g
134 #LOCAL_CFLAGS += -fomit-frame-pointer -ffunction-sections -fdata-sections -DANGLE_DISABLE_TRACE
136 LOCAL_CFLAGS += -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
137 LOCAL_CFLAGS += -std=c++11
139 LOCAL_SHARED_LIBRARIES += libdl liblog libcutils libhardware libui libutils \
142 LOCAL_STATIC_LIBRARIES += libLLVM_swiftshader
143 LOCAL_LDFLAGS += -Wl,--gc-sections -Wl,--version-script=$(LOCAL_PATH)/exports.map -Wl,--hash-style=sysv
145 LOCAL_C_INCLUDES += \
146 $(LOCAL_PATH)/../include \
148 $(LOCAL_PATH)/../../ \
149 $(LOCAL_PATH)/../../LLVM/include-android \
150 $(LOCAL_PATH)/../../LLVM/include-linux \
151 $(LOCAL_PATH)/../../LLVM/include \
152 $(LOCAL_PATH)/../../LLVM/lib/Target/X86 \
153 $(LOCAL_PATH)/../../Renderer/ \
154 $(LOCAL_PATH)/../../Common/ \
155 $(LOCAL_PATH)/../../Shader/ \
156 $(LOCAL_PATH)/../../Main/
158 include external/stlport/libstlport.mk
160 include $(BUILD_SHARED_LIBRARY)