From 4a5e3f2b1b4641be1a14faed7a7ad05a59aa5e7d Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Thu, 8 Sep 2022 21:49:51 +0000 Subject: Declare the headers of the ndk_library This creates a dependency edge between the ndk_library and its headers, which should be a no-op in regular Soong builds. This dependency edge will be used in the Multi-tree project to export the relevant .h files into a well known location Formatting changes are from bpfmt Test: m nothing Bug: 239044713 Change-Id: I432c361195c0d6adb0584b91ab006fb36d45d894 --- opengl/libs/Android.bp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/opengl/libs/Android.bp b/opengl/libs/Android.bp index c1e935aab0..f664f2f3a6 100644 --- a/opengl/libs/Android.bp +++ b/opengl/libs/Android.bp @@ -12,7 +12,10 @@ cc_library { name: "libETC1", srcs: ["ETC1/etc1.cpp"], host_supported: true, - cflags: ["-Wall", "-Werror"], + cflags: [ + "-Wall", + "-Werror", + ], target: { android: { @@ -37,6 +40,9 @@ ndk_library { symbol_file: "libEGL.map.txt", first_version: "9", unversioned_until: "current", + export_header_libs: [ + "libEGL_headers", + ], } ndk_library { @@ -44,6 +50,9 @@ ndk_library { symbol_file: "libGLESv1_CM.map.txt", first_version: "9", unversioned_until: "current", + export_header_libs: [ + "libGLESv1_CM_headers", + ], } ndk_library { @@ -51,6 +60,9 @@ ndk_library { symbol_file: "libGLESv2.map.txt", first_version: "9", unversioned_until: "current", + export_header_libs: [ + "libGLESv2_headers", + ], } ndk_library { @@ -58,6 +70,9 @@ ndk_library { symbol_file: "libGLESv3.map.txt", first_version: "18", unversioned_until: "current", + export_header_libs: [ + "libGLESv3_headers", + ], } cc_defaults { -- cgit v1.2.3-59-g8ed1b