Skip to content

Commit

Permalink
meson: Ensure we link with liblzma when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Jan 6, 2025
1 parent 58c852c commit 16aab82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gum/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ endif
if ffi_dep.found()
gum_internal_deps += ffi_dep
endif
if lzma_dep.found()
gum_internal_deps += lzma_dep
endif

gum = library('frida-gum-' + api_version, gum_sources + gum_enums,
c_args: frida_component_cflags,
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ capstone_dep = dependency('capstone', version: '>=5.0.0', default_options: capst
lzma_dep = dependency('liblzma', required: build_tests)
if lzma_dep.found()
cdata.set('HAVE_LZMA', 1)
extra_requires_private += 'liblzma'
endif

if glib_dep.type_name() == 'internal'
Expand Down

0 comments on commit 16aab82

Please sign in to comment.