OSDN Git Service

Mark libGLESv2.so and libEGL.so as VNDK libs.
authorJustin Yun <justinyun@google.com>
Wed, 26 Jul 2017 03:16:52 +0000 (12:16 +0900)
committerJustin Yun <justinyun@google.com>
Wed, 26 Jul 2017 03:16:52 +0000 (12:16 +0900)
libGLESv2.so and libEGL.so are categorized as SP-NDK and
vendor_available. However, they are marked as VNDK because they
are needed by some VNDK libs.

Bug: 63866913
Test: build and boot with BOARD_VNDK_VERSION=current
Change-Id: I6552f34a1d972919f2bf1f4e4dfc81aace431b8d

opengl/libs/Android.bp

index b4cc211..1cfc513 100644 (file)
@@ -117,6 +117,9 @@ cc_library_static {
 cc_library_shared {
     name: "libEGL",
     defaults: ["egl_libs_defaults"],
+    vndk: {
+        enabled: true,
+    },
     srcs: [
         "EGL/egl_tls.cpp",
         "EGL/egl_cache.cpp",
@@ -180,6 +183,9 @@ cc_library_shared {
 cc_library_shared {
     name: "libGLESv2",
     defaults: ["gles_libs_defaults"],
+    vndk: {
+        enabled: true,
+    },
     srcs: ["GLES2/gl2.cpp"],
     cflags: ["-DLOG_TAG=\"libGLESv2\""],
 }