Skip to content

Commit

Permalink
Drop custom libdwarf dependency for Linux/macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Feb 8, 2024
1 parent b74b4e5 commit 8f141b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ dependencies = [

incdirs = include_directories(['Inc', 'Inc/external'])

if host_machine.system() == 'darwin'
dependencies += dependency('libdwarf')
else
dependencies += subproject('libdwarf').get_variable('libdwarf')
endif

if host_machine.system() == 'windows'
elif host_machine.system() == 'darwin'
add_project_arguments('-DOSX', language: 'c')
Expand All @@ -44,8 +50,7 @@ add_project_arguments('-Wno-error=deprecated-declarations', language: 'c')
add_project_arguments(['-include', 'uicolours_default.h'], language: 'c')


libdwarf = subproject('libdwarf').get_variable('libdwarf')
dependencies += libdwarf


if host_machine.system() == 'windows'
stream_src = [
Expand Down

0 comments on commit 8f141b0

Please sign in to comment.