Changeset 4b9213d in mainline for meson/part/exports/copy-export.sh


Ignore:
Timestamp:
2025-04-25T16:39:10Z (2 weeks ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
629b480
Parents:
0460377
git-author:
Matěj Volf <git@…> (2025-04-25 16:39:10)
git-committer:
GitHub <noreply@…> (2025-04-25 16:39:10)
Message:

add shared libraries to export-dev (#252)

File:
1 edited

Legend:

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

    r0460377 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.