angle: improve post-destroot

This commit is contained in:
Mohamed Akram
2026-04-16 19:22:35 +04:00
parent ea29cbd201
commit a6cfa6fbdd
+16 -16
View File
@@ -193,8 +193,22 @@ destroot.target install_angle
destroot.args -C out
destroot.destdir
platform darwin {
post-destroot {
post-destroot {
reinplace "s|^prefix=.*$|prefix=${prefix}|" \
{*}[glob ${destroot}${prefix}/lib/pkgconfig/*.pc]
delete \
${destroot}${prefix}/include/CL \
${destroot}${prefix}/include/GLX \
${destroot}${prefix}/include/WGL \
${destroot}${prefix}/include/GLSLANG \
${destroot}${prefix}/include/vulkan \
${destroot}${prefix}/include/platform \
{*}[glob ${destroot}${prefix}/include/*.h] \
{*}[glob ${destroot}${prefix}/include/*/README.md] \
{*}[glob ${destroot}${prefix}/include/*/.clang-format]
platform darwin {
foreach f [glob -tails -directory ${destroot} ${prefix}/lib/*.dylib] {
system "install_name_tool -id /$f ${destroot}/$f"
}
@@ -202,20 +216,6 @@ platform darwin {
system "install_name_tool -change ./libGLESv2.dylib \
${prefix}/lib/libGLESv2.dylib \
${destroot}${prefix}/lib/libGLESv1_CM.dylib"
reinplace "s|^prefix=.*$|prefix=${prefix}|" \
{*}[glob ${destroot}${prefix}/lib/pkgconfig/*.pc]
delete \
${destroot}${prefix}/include/CL \
${destroot}${prefix}/include/GLX \
${destroot}${prefix}/include/WGL \
${destroot}${prefix}/include/GLSLANG \
${destroot}${prefix}/include/vulkan \
${destroot}${prefix}/include/platform \
{*}[glob ${destroot}${prefix}/include/*.h] \
{*}[glob ${destroot}${prefix}/include/*/README.md] \
{*}[glob ${destroot}${prefix}/include/*/.clang-format]
}
}