@@ -43,8 +43,6 @@ LOCAL_CFLAGS := \
43
43
-D_EGL_DRIVER_SEARCH_DIR=\"/system/lib/egl\" \
44
44
-D_EGL_OS_UNIX=1
45
45
46
- LOCAL_STATIC_LIBRARIES :=
47
-
48
46
LOCAL_SHARED_LIBRARIES := \
49
47
libglapi \
50
48
libdl \
@@ -62,95 +60,20 @@ ifneq ($(MESA_GPU_DRIVERS),swrast)
62
60
LOCAL_SHARED_LIBRARIES += libdrm
63
61
endif
64
62
65
- ifeq ($(strip $(MESA_BUILD_CLASSIC ) ) ,true)
66
63
LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
67
- LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
68
64
65
+ ifeq ($(strip $(MESA_BUILD_CLASSIC ) ) ,true)
69
66
# require i915_dri and/or i965_dri
70
67
LOCAL_REQUIRED_MODULES += \
71
68
$(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS ) ) )
72
69
endif # MESA_BUILD_CLASSIC
73
70
74
71
ifeq ($(strip $(MESA_BUILD_GALLIUM ) ) ,true)
75
-
76
- gallium_DRIVERS :=
77
-
78
- # swrast
79
- gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_android
80
-
81
- # freedreno
82
- ifneq ($(filter freedreno, $(MESA_GPU_DRIVERS ) ) ,)
83
- gallium_DRIVERS += libmesa_winsys_freedreno libmesa_pipe_freedreno
84
- LOCAL_SHARED_LIBRARIES += libdrm_freedreno
85
- endif
86
-
87
- # i915g
88
- ifneq ($(filter i915g, $(MESA_GPU_DRIVERS ) ) ,)
89
- gallium_DRIVERS += libmesa_winsys_i915 libmesa_pipe_i915
90
- LOCAL_SHARED_LIBRARIES += libdrm_intel
91
- endif
92
-
93
- # ilo
94
- ifneq ($(filter ilo, $(MESA_GPU_DRIVERS ) ) ,)
95
- gallium_DRIVERS += libmesa_winsys_intel libmesa_pipe_ilo
96
- LOCAL_SHARED_LIBRARIES += libdrm_intel
97
- endif
98
-
99
- # nouveau
100
- ifneq ($(filter nouveau, $(MESA_GPU_DRIVERS ) ) ,)
101
- gallium_DRIVERS += libmesa_winsys_nouveau libmesa_pipe_nouveau
102
- LOCAL_SHARED_LIBRARIES += libdrm_nouveau
103
- LOCAL_SHARED_LIBRARIES += libstlport
104
- endif
105
-
106
- # r300g/r600g/radeonsi
107
- ifneq ($(filter r300g r600g radeonsi, $(MESA_GPU_DRIVERS ) ) ,)
108
- gallium_DRIVERS += libmesa_winsys_radeon
109
- LOCAL_SHARED_LIBRARIES += libdrm_radeon
110
- ifneq ($(filter r300g, $(MESA_GPU_DRIVERS ) ) ,)
111
- gallium_DRIVERS += libmesa_pipe_r300
112
- endif # r300g
113
- ifneq ($(filter r600g radeonsi, $(MESA_GPU_DRIVERS ) ) ,)
114
- ifneq ($(filter r600g, $(MESA_GPU_DRIVERS ) ) ,)
115
- gallium_DRIVERS += libmesa_pipe_r600
116
- LOCAL_SHARED_LIBRARIES += libstlport
117
- endif # r600g
118
- ifneq ($(filter radeonsi, $(MESA_GPU_DRIVERS ) ) ,)
119
- gallium_DRIVERS += libmesa_pipe_radeonsi
120
- endif # radeonsi
121
- gallium_DRIVERS += libmesa_pipe_radeon
122
- endif # r600g || radeonsi
123
- endif # r300g || r600g || radeonsi
124
-
125
- # vmwgfx
126
- ifneq ($(filter vmwgfx, $(MESA_GPU_DRIVERS ) ) ,)
127
- gallium_DRIVERS += libmesa_winsys_svga libmesa_pipe_svga
128
- endif
129
-
130
- #
131
- # Notes about the order here:
132
- #
133
- # * libmesa_st_egl depends on libmesa_winsys_sw_android in $(gallium_DRIVERS)
134
- # * libmesa_pipe_r300 in $(gallium_DRIVERS) depends on libmesa_st_mesa and
135
- # libmesa_glsl
136
- # * libmesa_st_mesa depends on libmesa_glsl
137
- # * libmesa_glsl depends on libmesa_glsl_utils
138
- #
139
- LOCAL_STATIC_LIBRARIES := \
140
- libmesa_egl_gallium \
141
- libmesa_st_egl \
142
- $(gallium_DRIVERS ) \
143
- libmesa_st_mesa \
144
- libmesa_util \
145
- libmesa_glsl \
146
- libmesa_glsl_utils \
147
- libmesa_gallium \
148
- $(LOCAL_STATIC_LIBRARIES )
149
-
72
+ LOCAL_REQUIRED_MODULES += gallium_dri
150
73
endif # MESA_BUILD_GALLIUM
151
74
152
75
LOCAL_STATIC_LIBRARIES := \
153
- $( LOCAL_STATIC_LIBRARIES ) \
76
+ libmesa_egl_dri2 \
154
77
libmesa_loader
155
78
156
79
LOCAL_MODULE := libGLES_mesa
0 commit comments