Commit graph

8 commits

Author SHA1 Message Date
Jiyong Park
00b15b8f22 Mark libEGL, GLESv1_CM, GLESv2, and GLESv3 as LLNDK
They are used by libRSDriver and libRS_internal which are VNDK-SP
libraries. Therefore, the EGL/GLES libs must be LLNDK or VNDK-SP. We
choose to make them as LLNDK since they already have stable ABIs (as
they are NDK).

In addition, two more functions of libEGL are exposed to vendors

eglQueryStringImplementationANDROID and eglDupNativeFenceFDANDROID are
non-NDK symbols but are being used by libgui, which is a library marked
with vendor_available:true. In order to provide the symbols to the
library, they are added to the map.txt file and tagged as "# vndk" so
that they are exposed only when built for vendor libs (and hidden when
built for NDK).

Furthermore, eglQueryStringImplementationANDROID is changed to C-symbol
in order to be mentioned in the map.txt file, where C++ mangled symbol
name can't be used.

Bug: 64425518
Test: BOARD_VNDK_VERSION=current m -j libRSDriver.vendor
Test: BOARD_VNDK_VERSION=current m -j libRS_internal.vendor
Change-Id: I4d5bcd5f72fb05a7908887f5192de70fd1d8c8f1
2017-08-11 10:08:54 +09:00
Jiyong Park
a243e5dc36 Mark EGL/GLES libs as vendor_available
EGL/GLES libs are marked as vendor_available, otherwise vendors are not
able to use OpenGL. The libs were not simply declared as LL-NDK because
doing so causes the dual loading of libui.so in vendor processes;
platform version of libui.so is loaded since it is depended by libEGL.so
whereas there also is vendor version of libui.so in /system/lib/vndk.

When libEGL.so is built for vendors, 1) libgraphicsenv is removed from
its dependency list as the lib must not be available to vendors and 2)
eglGetNativeClientBufferANDROID is unusable since the function relies on
AHardwareBuffer_to_ANativeWindowBuffer which isn't available to vendor.

Bug: 37731063
Test: BOARD_VNDK_VERSION=current m -j libEGL.vendor
Test: BOARD_VNDK_VERSION=current m -j libGLESv2.vendor

Change-Id: I83a128b14a5d852bb0f2cd821a8e3f82c66a313f
2017-06-21 13:00:42 +09:00
Dan Albert
96b5509dcd Add licenses to ndk_headers.
Test: make ndk
Bug: None
Change-Id: Ia113ea42b1d62d87dfbb2fc456428c7db50a98f1
2016-10-20 10:14:30 -07:00
Dan Albert
c43908821c Migrate khrplatform.h to ndk_headers.
Test: make native
Bug: http://b/30465923
Change-Id: Idaf0eb973b7569f92b1f1575869d13b8c5e706fd
2016-10-05 16:03:05 -07:00
Dan Albert
d7d8efa471 Migrate libGLESv3 to ndk_library.
Test: make checkbuild
Bug: http://b/30465923
Change-Id: I6a2f4df7f409596f487879eb7d43a7774dced894
2016-10-04 15:17:49 -07:00
Dan Albert
00500c798a Migrate libGLESv2 to ndk_library.
Test: make checkbuild
Bug: http://b/30465923
Change-Id: I62e108bdd27b6dc40fdf7ede7d579a286cbf3b9b
2016-10-04 15:17:45 -07:00
Dan Albert
7facb1db6e Migrate libGLESv1_CM to ndk_library.
Test: make checkbuild
Bug: http://b/30465923
Change-Id: Icd83a5ef5d6afcde9441f49de14a8e645d15da2f
2016-10-04 15:17:39 -07:00
Dan Albert
49fbff480c Migrate libEGL to ndk_library.
Test: make checkbuild
Bug: http://b/30465923
Change-Id: I154a95c6fde9c34d770b6fe65bfd71ac51e05574
2016-10-04 11:08:07 -07:00