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
68 // we need to access the private Bionic header <bionic_tls.h>
69 include_dirs: ["bionic/libc/private"],
72 //##############################################################################
73 // Build META EGL library
76 name: "egl_libs_defaults",
77 defaults: ["gl_libs_defaults"],
79 "-DLOG_TAG=\"libEGL\"",
82 // ***** DO NOT ADD NEW DEPENDENCIES HERE *****
83 // In particular, DO NOT add libutils nor anything "above" libui
91 name: "libEGL_getProcAddress",
92 defaults: ["egl_libs_defaults"],
93 srcs: ["EGL/getProcAddress.cpp"],
96 instruction_set: "arm",
103 defaults: ["egl_libs_defaults"],
107 "EGL/egl_display.cpp",
108 "EGL/egl_object.cpp",
114 shared_libs: ["libvndksupport"],
115 static_libs: ["libEGL_getProcAddress"],
116 ldflags: ["-Wl,--exclude-libs=ALL"],
117 export_include_dirs: ["EGL/include"],
122 defaults: ["egl_libs_defaults"],
125 "EGL/BlobCache_test.cpp",
130 name: "gles_libs_defaults",
131 defaults: ["gl_libs_defaults"],
134 instruction_set: "arm",
136 // TODO: This is to work around b/20093774. Remove after root cause is fixed
137 ldflags: ["-Wl,--hash-style,both"],
140 shared_libs: ["libEGL"],
143 //##############################################################################
144 // Build the wrapper OpenGL ES 1.x library
147 name: "libGLESv1_CM",
148 defaults: ["gles_libs_defaults"],
149 srcs: ["GLES_CM/gl.cpp"],
150 cflags: ["-DLOG_TAG=\"libGLESv1\""],
153 //##############################################################################
154 // Build the wrapper OpenGL ES 2.x library
158 defaults: ["gles_libs_defaults"],
159 srcs: ["GLES2/gl2.cpp"],
160 cflags: ["-DLOG_TAG=\"libGLESv2\""],
163 //##############################################################################
164 // Build the wrapper OpenGL ES 3.x library (this is just different name for v2)
168 defaults: ["gles_libs_defaults"],
169 srcs: ["GLES2/gl2.cpp"],
170 cflags: ["-DLOG_TAG=\"libGLESv3\""],