diff options
author | Colin Cross <ccross@android.com> | 2022-02-28 22:30:34 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-02-28 22:30:34 +0000 |
commit | 815fb071586a8127867dd1ca2b7a2b8fdfbdf148 (patch) | |
tree | 019b279ef742fb9e022ccb15bb17f3546d92d327 | |
parent | 2706364c4bc1825b82626d5d3b349f24b6e27cf1 (diff) | |
parent | 332298146037eabde2006a226ac1610a9559b90b (diff) | |
download | libcxxabi-815fb071586a8127867dd1ca2b7a2b8fdfbdf148.tar.gz |
Export libc++abi headers for musl sysroot am: ae7de2c7ea am: a315f25cb4 am: 3322981460
Original change: https://android-review.googlesource.com/c/platform/external/libcxxabi/+/2000834
Change-Id: Ib408025946a16142288a7f31eaab30b03b72a48f
-rw-r--r-- | Android.bp | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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", +} |