summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/Android.mk
blob: 219eacc2281b90c5a333cf4ae9c39d64a3f4b487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
LOCAL_PATH := $(call my-dir)

# from dri/Makefile.template
COMMON_SOURCES = \
	 dri/common/utils.c \
	 dri/common/vblank.c \
	 dri/common/dri_util.c \
	 dri/common/xmlconfig.c \
	 dri/common/texmem.c \
	 dri/common/drirenderbuffer.c \
	 dri/common/dri_metaops.c \
	 common/driverfuncs.c

# from dri/i915/Makefile
i915_DRIVER_SOURCES = \
	i830_context.c \
	i830_state.c \
	i830_texblend.c \
	i830_texstate.c \
	i830_vtbl.c \
	intel_render.c \
	intel_regions.c \
	intel_buffer_objects.c \
	intel_batchbuffer.c \
	intel_clear.c \
	intel_extensions.c \
	intel_extensions_es2.c \
	intel_mipmap_tree.c \
	intel_tex_layout.c \
	intel_tex_image.c \
	intel_tex_subimage.c \
	intel_tex_copy.c \
	intel_tex_validate.c \
	intel_tex_format.c \
	intel_tex.c \
	intel_pixel.c \
	intel_pixel_bitmap.c \
	intel_pixel_copy.c \
	intel_pixel_draw.c \
	intel_pixel_read.c \
	intel_buffers.c \
	intel_blit.c \
	i915_tex_layout.c \
	i915_texstate.c \
	i915_context.c \
	i915_debug.c \
	i915_debug_fp.c \
	i915_fragprog.c \
	i915_program.c \
	i915_state.c \
	i915_vtbl.c \
	intel_context.c \
	intel_decode.c \
	intel_screen.c \
	intel_span.c \
	intel_state.c \
	intel_syncobj.c \
	intel_tris.c \
	intel_fbo.c
i915_DRIVER_SOURCES := $(addprefix dri/i915/, $(i915_DRIVER_SOURCES))

common_CFLAGS := \
	-DPTHREADS \
	-DFEATURE_GL=1 \
	-DFEATURE_ES1=1 \
	-fvisibility=hidden \
	-Wno-sign-compare

common_C_INCLUDES := \
	external/mesa/include \
	external/mesa/src/mapi \
	external/mesa/src/glsl \
	external/mesa/src/talloc \
	external/mesa/src/mesa \
	external/mesa/src/mesa/drivers/dri/common \
	external/drm/ \
	external/drm/include/drm \
	external/expat/lib

common_STATIC_LIBRARIES := \
	libmesa_classic_mesa \
	libmesa_glsl \
	libmesa_classic_mesa \
	libmesa_talloc \
	libmesa_classic_egl

common_WHOLE_STATIC_LIBRARIES := \
	libmesa_egl \
	libmesa_glapi

common_SHARED_LIBRARIES := \
	libdl \
	libdrm \
	libexpat \
	libhardware \
	liblog \
	libcutils

ifeq ($(strip $(MESA_BUILD_I915C)),true)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	$(COMMON_SOURCES) \
	$(i915_DRIVER_SOURCES)

LOCAL_CFLAGS := \
	$(common_CFLAGS) \
	-DI915

LOCAL_C_INCLUDES := \
	$(common_C_INCLUDES) \
	external/mesa/src/mesa/drivers/dri/intel \
	external/drm/intel

LOCAL_STATIC_LIBRARIES := \
	$(common_STATIC_LIBRARIES)

LOCAL_WHOLE_STATIC_LIBRARIES := \
	$(common_WHOLE_STATIC_LIBRARIES)

LOCAL_SHARED_LIBRARIES := \
	$(common_SHARED_LIBRARIES) \
	libdrm_intel

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
LOCAL_MODULE := libGLES_i915c

include $(BUILD_SHARED_LIBRARY)
endif # MESA_BUILD_I915C