Skip to content

Commit

Permalink
Changes generated library version from
Browse files Browse the repository at this point in the history
 libwatcher-c-0.11.0.so to libwatcher-c.so.0.11.0
  • Loading branch information
a.stecher authored and e-dant committed Sep 13, 2024
1 parent 2e4c2c3 commit 05e4416
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions watcher-c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ watcher_hpp = custom_target(
)
watcher_hpp_dep = declare_dependency(sources : watcher_hpp)

# I know it's not the convential way to version a library...
# But I'm not sure how to do it the "right" way in Meson.
libwatcher_c_name = 'watcher-c-' + meson.project_version()
libwatcher_c_name = 'watcher-c'

if target_machine.system() == 'darwin'
libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation'), watcher_hpp_dep]
Expand All @@ -31,6 +29,7 @@ libwatcher_c = library(
build_rpath : '/usr/local/lib',
install_rpath : '/usr/local/lib',
install : true,
version : meson.project_version(),
)

test_libwatcher_c = executable(
Expand Down

0 comments on commit 05e4416

Please sign in to comment.