Changeset 00eeffa in mainline


Ignore:
Timestamp:
2025-04-25T15:43:19Z (2 weeks ago)
Author:
Matěj Volf <git@…>
Children:
33c08929
Parents:
715ae00b
git-author:
Matěj Volf <git@…> (2025-04-25 15:41:22)
git-committer:
Matěj Volf <git@…> (2025-04-25 15:43:19)
Message:

revert to major.minor versions, determine unversioned name automatically

Files:
2 edited

Legend:

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

    r715ae00b r00eeffa  
    4747        sharedlib)
    4848            filename="$(basename "$2")"
     49            major_versioned_name="$3"
     50            # strip the last `.123` part
     51            unversioned_name="$(echo "$major_versioned_name" | rev | cut -d. -f2- | rev)"
    4952            cp -L "$2" "${target_dir}/lib/$filename"
    50             ln -s "$filename" "${target_dir}/lib/$3"
     53            ln -s "$filename" "${target_dir}/lib/$major_versioned_name"
     54            ln -s "$filename" "${target_dir}/lib/$unversioned_name"
    5155            ;;
    5256        include)
  • uspace/lib/meson.build

    r715ae00b r00eeffa  
    166166
    167167        # Shared object version of the library.
    168         version = '0'
     168        version = '0.0'
    169169
    170170        # Sources of unit tests.
     
    243243        if src.length() > 0
    244244                if not always_static
    245                         _libname_unversioned = 'lib' + l + '.so'
    246                         _libname = _libname_unversioned + '.' + version
     245                        _libname = 'lib' + l + '.so.' + version.split('.')[0]
    247246
    248247                        _shared_lib = shared_library(l, src,
     
    289288                                dependencies: _shared_deps,
    290289                        )
    291                         exported_devel_files += ['sharedlib', _shared_lib, _libname_unversioned]
     290                        exported_devel_files += [ 'sharedlib', _shared_lib, _libname ]
    292291                endif
    293292
Note: See TracChangeset for help on using the changeset viewer.