summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-01 02:03:05 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-03-01 02:03:05 +0000
commit8a89521fa6fbae4904a8e41740cf7f2fb978e718 (patch)
tree019b279ef742fb9e022ccb15bb17f3546d92d327
parentc9450aa50bb2c35fadf1468e2a99c4a100071c43 (diff)
parent815fb071586a8127867dd1ca2b7a2b8fdfbdf148 (diff)
downloadlibcxxabi-8a89521fa6fbae4904a8e41740cf7f2fb978e718.tar.gz
Snap for 8233919 from 815fb071586a8127867dd1ca2b7a2b8fdfbdf148 to tm-release
Change-Id: I14420851f17337c2a1975da312325fe9f9f904b0
-rw-r--r--Android.bp27
1 files changed, 27 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 8d298ab..13951ff 100644
--- a/Android.bp
+++ b/Android.bp
@@ -176,3 +176,30 @@ cc_fuzz {
"src/cxa_demangle.cpp",
],
}
+
+// Export libc++abi headers for inclusion in the musl sysroot.
+genrule {
+ name: "libc_musl_sysroot_libc++abi_headers",
+ visibility: ["//external/musl"],
+ srcs: [
+ "NOTICE",
+ "include/**/*",
+ ],
+ out: ["libc_musl_sysroot_libc++abi_headers.zip"],
+ tools: [
+ "soong_zip",
+ "zip2zip",
+ ],
+ cmd: "LIBCXXABI_DIR=$$(dirname $(location NOTICE)) && " +
+ "$(location soong_zip) -o $(genDir)/sysroot.zip -symlinks=false" +
+ // NOTICE
+ " -j -f $(location NOTICE) " +
+ // headers
+ " -P include/c++ " +
+ " -C $${LIBCXXABI_DIR}/include " +
+ " -D $${LIBCXXABI_DIR}/include " +
+ " && " +
+ "$(location zip2zip) -i $(genDir)/sysroot.zip -o $(out) " +
+ " include/**/*:include " +
+ " NOTICE:NOTICE.libc++abi",
+}