Changes in tools/export.sh [dbf1be5:a381b52] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/export.sh

    rdbf1be5 ra381b52  
    6767ninja devel-headers
    6868
     69#
     70# Meson may produce thin archives. These cannot be simply copied to another
     71# location. Copy them using ar instead, converting them to regular,
     72# non-thin archives in the process.
     73#
    6974mkdir -p "$EXPORT_DIR/lib"
    70 cp -t "$EXPORT_DIR/lib" $EXPORT_LIBS
     75for lpath in $EXPORT_LIBS; do
     76        dest="$EXPORT_DIR/lib/$(basename $lpath)"
     77        ar -t $lpath | xargs ar crs $dest
     78done
     79
    7180rm -rf "$EXPORT_DIR/include"
    7281cp -R dist/include "$EXPORT_DIR/include"
Note: See TracChangeset for help on using the changeset viewer.