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 Jan 22, 2024
1 parent 4d168ac commit 9d58e38
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() == 'windows'
dependencies += subproject('libdwarf').get_variable('libdwarf')
else
dependencies += dependency('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 9d58e38

Please sign in to comment.