Skip to content

Commit

Permalink
watcher-c/build: depends on hpp cp
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Jul 23, 2024
1 parent 7ac91e9 commit e34db5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions watcher-c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ watcher_hpp = custom_target(
output : 'watcher.hpp',
install : false,
)
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()

if target_machine.system() == 'darwin'
libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation')]
libwatcher_c_deps = [dependency('CoreServices'), dependency('CoreFoundation'), watcher_hpp_dep]
else
libwatcher_c_deps = [dependency('threads')]
libwatcher_c_deps = [dependency('threads'), watcher_hpp_dep]
endif


Expand Down

0 comments on commit e34db5d

Please sign in to comment.