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"],
123 "EGL/egl_display.cpp",
124 "EGL/egl_object.cpp",
132 "android.hardware.configstore@1.0",
133 "android.hardware.configstore-utils",
138 static_libs: ["libEGL_getProcAddress"],
139 ldflags: ["-Wl,--exclude-libs=ALL"],
140 export_include_dirs: ["EGL/include"],
145 defaults: ["egl_libs_defaults"],
148 "EGL/BlobCache_test.cpp",
153 name: "gles_libs_defaults",
154 defaults: ["gl_libs_defaults"],
155 vendor_available: true,
158 instruction_set: "arm",
160 // TODO: This is to work around b/20093774. Remove after root cause is fixed
161 ldflags: ["-Wl,--hash-style,both"],
164 shared_libs: ["libEGL"],
167 //##############################################################################
168 // Build the wrapper OpenGL ES 1.x library
171 name: "libGLESv1_CM",
172 defaults: ["gles_libs_defaults"],
173 srcs: ["GLES_CM/gl.cpp"],
174 cflags: ["-DLOG_TAG=\"libGLESv1\""],
177 //##############################################################################
178 // Build the wrapper OpenGL ES 2.x library
182 defaults: ["gles_libs_defaults"],
183 srcs: ["GLES2/gl2.cpp"],
184 cflags: ["-DLOG_TAG=\"libGLESv2\""],
187 //##############################################################################
188 // Build the wrapper OpenGL ES 3.x library (this is just different name for v2)
192 defaults: ["gles_libs_defaults"],
193 srcs: ["GLES2/gl2.cpp"],
194 cflags: ["-DLOG_TAG=\"libGLESv3\""],