Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson/part/exports/copy-export.sh

    r017ffce r4b9213d  
    4545            ar -t "$2" | xargs ar crs "${target_dir}/lib/$3"
    4646            ;;
     47        sharedlib)
     48            filename="$(basename "$2")"
     49            major_versioned_name="$3"
     50            # libfoo.so.5 -> libfoo.so (remove the last part delimited by dot)
     51            unversioned_name="${major_versioned_name%.[0-9]*}"
     52            cp -L "$2" "${target_dir}/lib/$filename"
     53            ln -s "$filename" "${target_dir}/lib/$major_versioned_name"
     54            ln -s "$filename" "${target_dir}/lib/$unversioned_name"
     55            ;;
    4756        include)
    4857            mkdir -p "${target_dir}/include/$3"
Note: See TracChangeset for help on using the changeset viewer.