From 25ac318e203705c7a7a96d25cbf20803fd478cf7 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 5 Aug 2024 23:53:18 +0000 Subject: 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 --- opengl/Android.bp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'opengl/Android.bp') diff --git a/opengl/Android.bp b/opengl/Android.bp index 4454f36b67..37dc9314e2 100644 --- a/opengl/Android.bp +++ b/opengl/Android.bp @@ -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 { -- cgit v1.2.3-59-g8ed1b