1 // Build the ETC1 library
4 srcs: ["ETC1/etc1.cpp"],
24 // The headers modules are in frameworks/native/opengl/Android.bp.
27 symbol_file: "libEGL.map.txt",
29 unversioned_until: "current",
34 symbol_file: "libGLESv1_CM.map.txt",
36 unversioned_until: "current",
41 symbol_file: "libGLESv2.map.txt",
43 unversioned_until: "current",
48 symbol_file: "libGLESv3.map.txt",
50 unversioned_until: "current",
54 name: "gl_libs_defaults",
56 "-DGL_GLEXT_PROTOTYPES",
57 "-DEGL_EGLEXT_PROTOTYPES",
58 "-fvisibility=hidden",
61 // ***** DO NOT ADD NEW DEPENDENCIES HERE *****
62 // In particular, DO NOT add libutils or anything "above" libcutils
73 "libhardware_headers",
74 "libnativebase_headers",
76 export_header_lib_headers: ["gl_headers"],
78 // we need to access the private Bionic header <bionic_tls.h>
79 include_dirs: ["bionic/libc/private"],
82 //##############################################################################
83 // Build META EGL library
86 name: "egl_libs_defaults",
87 defaults: ["gl_libs_defaults"],
88 vendor_available: true,
90 "-DLOG_TAG=\"libEGL\"",
93 // ***** DO NOT ADD NEW DEPENDENCIES HERE *****
94 // In particular, DO NOT add libutils nor anything "above" libui
101 exclude_shared_libs: ["libgraphicsenv"],
107 name: "libEGL_getProcAddress",
108 defaults: ["egl_libs_defaults"],
109 srcs: ["EGL/getProcAddress.cpp"],
112 instruction_set: "arm",
119 defaults: ["egl_libs_defaults"],
126 "EGL/egl_display.cpp",
127 "EGL/egl_object.cpp",
135 "android.hardware.configstore@1.0",
136 "android.hardware.configstore-utils",
141 static_libs: ["libEGL_getProcAddress"],
142 ldflags: ["-Wl,--exclude-libs=ALL"],
143 export_include_dirs: ["EGL/include"],
148 defaults: ["egl_libs_defaults"],
151 "EGL/BlobCache_test.cpp",
156 name: "gles_libs_defaults",
157 defaults: ["gl_libs_defaults"],
158 vendor_available: true,
161 instruction_set: "arm",
163 // TODO: This is to work around b/20093774. Remove after root cause is fixed
164 ldflags: ["-Wl,--hash-style,both"],
167 shared_libs: ["libEGL"],
170 //##############################################################################
171 // Build the wrapper OpenGL ES 1.x library
174 name: "libGLESv1_CM",
175 defaults: ["gles_libs_defaults"],
176 srcs: ["GLES_CM/gl.cpp"],
177 cflags: ["-DLOG_TAG=\"libGLESv1\""],
180 //##############################################################################
181 // Build the wrapper OpenGL ES 2.x library
185 defaults: ["gles_libs_defaults"],
189 srcs: ["GLES2/gl2.cpp"],
190 cflags: ["-DLOG_TAG=\"libGLESv2\""],
193 //##############################################################################
194 // Build the wrapper OpenGL ES 3.x library (this is just different name for v2)
198 defaults: ["gles_libs_defaults"],
199 srcs: ["GLES2/gl2.cpp"],
200 cflags: ["-DLOG_TAG=\"libGLESv3\""],