Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25ac318e authored by Dan Albert's avatar Dan Albert
Browse files

Skip C-verification of GL headers.

C-compatibility can't be verified for modules with headers that aren't
self-contained. The *ext.h headers in GL aren't self-contained, so
disable it here.

Bug: http://b/113359184
Test: m ndk
Change-Id: Ib88da62338f5de3f1ee8ad2afbda5b188ed06d2c
parent e1c075b7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -255,6 +255,9 @@ ndk_headers {
        "include_cpp/android/*.h",
    ],
    license: "NOTICE",
    // These are intentionally not C. It's a mistake that they're in the NDK.
    // See the bug above.
    skip_verification: true,
}

ndk_library {
+12 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@ ndk_headers {
    to: "",
    srcs: ["include/EGL/**/*.h"],
    license: "include/EGL/NOTICE",
    // eglext.h is not self-contained. Safe to skip C-compat verification
    // though since upstream also cares about C compatibility, and the header is
    // auto-generated anyway.
    skip_verification: true,
}

ndk_headers {
@@ -38,6 +42,10 @@ ndk_headers {
    to: "",
    srcs: ["include/GLES/**/*.h"],
    license: "include/GLES/NOTICE",
    // glext.h is not self-contained. Safe to skip C-compat verification
    // though since upstream also cares about C compatibility, and the header is
    // auto-generated anyway.
    skip_verification: true,
}

ndk_headers {
@@ -46,6 +54,10 @@ ndk_headers {
    to: "",
    srcs: ["include/GLES2/**/*.h"],
    license: "include/GLES2/NOTICE",
    // gl2ext.h is not self-contained. Safe to skip C-compat verification
    // though since upstream also cares about C compatibility, and the header is
    // auto-generated anyway.
    skip_verification: true,
}

ndk_headers {