diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-03-01 02:03:05 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-03-01 02:03:05 +0000 |
commit | 8a89521fa6fbae4904a8e41740cf7f2fb978e718 (patch) | |
tree | 019b279ef742fb9e022ccb15bb17f3546d92d327 | |
parent | c9450aa50bb2c35fadf1468e2a99c4a100071c43 (diff) | |
parent | 815fb071586a8127867dd1ca2b7a2b8fdfbdf148 (diff) | |
download | libcxxabi-8a89521fa6fbae4904a8e41740cf7f2fb978e718.tar.gz |
Snap for 8233919 from 815fb071586a8127867dd1ca2b7a2b8fdfbdf148 to tm-release
Change-Id: I14420851f17337c2a1975da312325fe9f9f904b0
-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", +} |