OSDN Git Service

c400f51e26cf0946f6efd53559a1afdee1992a48
[android-x86/external-swiftshader.git] / src / OpenGL / libGLESv2 / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_CLANG := true
5
6 LOCAL_MODULE_PATH := $(TARGET_OUT)/vendor/lib/egl
7 LOCAL_MODULE := libGLESv2_swiftshader
8
9 LOCAL_SRC_FILES := \
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
20
21 LOCAL_SRC_FILES += \
22         ../../Main/Config.cpp \
23         ../../Main/FrameBuffer.cpp \
24         ../../Main/FrameBufferAndroid.cpp \
25         ../../Main/Logo.cpp \
26         ../../Main/Register.cpp \
27         ../../Main/SwiftConfig.cpp \
28         ../../Main/crc.cpp \
29         ../../Main/serialvalid.cpp \
30
31 LOCAL_SRC_FILES += \
32         ../../Reactor/Nucleus.cpp \
33         ../../Reactor/Routine.cpp \
34         ../../Reactor/RoutineManager.cpp
35
36 LOCAL_SRC_FILES += \
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 \
54
55 LOCAL_SRC_FILES += \
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 \
67
68 LOCAL_SRC_FILES += \
69         ../common/NameSpace.cpp \
70         ../common/Object.cpp \
71         ../common/debug.cpp \
72
73 LOCAL_SRC_FILES += \
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 \
107
108 LOCAL_SRC_FILES += \
109         Buffer.cpp \
110         Context.cpp \
111         Device.cpp \
112         Fence.cpp \
113         Framebuffer.cpp \
114         Image.cpp \
115         IndexDataManager.cpp \
116         libGLESv2.cpp \
117         main.cpp \
118         Program.cpp \
119         Query.cpp \
120         Renderbuffer.cpp \
121         ResourceManager.cpp \
122         Shader.cpp \
123         Texture.cpp \
124         TransformFeedback.cpp \
125         utilities.cpp \
126         VertexDataManager.cpp \
127
128 LOCAL_CFLAGS += -DLOG_TAG=\"libGLESv2_swiftshader\"
129
130 # Android's make system also uses NDEBUG, so we need to set/unset it forcefully
131 # Uncomment for ON:
132 LOCAL_CFLAGS += -UNDEBUG -g
133 # Uncomment for OFF:
134 #LOCAL_CFLAGS += -fomit-frame-pointer -ffunction-sections -fdata-sections -DANGLE_DISABLE_TRACE
135
136 LOCAL_CFLAGS += -fno-operator-names -msse2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
137 LOCAL_CFLAGS += -std=c++11
138
139 LOCAL_SHARED_LIBRARIES += libdl liblog libcutils libhardware libui libutils \
140     $(GCE_STLPORT_LIBS)
141
142 LOCAL_STATIC_LIBRARIES += libLLVM_swiftshader
143 LOCAL_LDFLAGS += -Wl,--gc-sections -Wl,--version-script=$(LOCAL_PATH)/exports.map -Wl,--hash-style=sysv
144
145 LOCAL_C_INCLUDES += \
146         $(LOCAL_PATH)/../include \
147         $(LOCAL_PATH)/../ \
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/
157
158 include external/stlport/libstlport.mk
159
160 include $(BUILD_SHARED_LIBRARY)