Skip to content

Commit

Permalink
Merge pull request #29 from lucianodato/development
Browse files Browse the repository at this point in the history
Configure install to correctly install the shared library and headers
  • Loading branch information
lucianodato authored Apr 23, 2022
2 parents 49ff868 + f36ae22 commit 19ddc8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ specbleach_sources = [
'src/specbleach_denoiser.c',
]

specbleach_headers = [
'include/specbleach_adenoiser.h',
'include/specbleach_denoiser.h',
]

example_sources = [
'example/adenoiser_demo.c'
]
Expand All @@ -42,13 +47,21 @@ m_dep = meson.get_compiler('c').find_library('m', required : true)
fftw_dep = dependency('fftw3f', required : true)
dep = [m_dep, fftw_dep]

install_headers(specbleach_headers)

libspecbleach = library('specbleach',
shared_sources,
specbleach_sources,
include_directories : inc,
dependencies: dep,
install: true)

pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : libspecbleach,
version: meson.project_version(),
name : 'libspecbleach',
description : 'C library for audio noise reduction and other spectral effects')

libspecbleach_dep = declare_dependency(include_directories : inc,
link_with : libspecbleach)

Expand Down

0 comments on commit 19ddc8b

Please sign in to comment.