Skip to content

Commit 7b3d8dd

Browse files
committed
Replace custom configure script with Meson build system
1 parent 9ad9f2e commit 7b3d8dd

File tree

4 files changed

+58
-317
lines changed

4 files changed

+58
-317
lines changed

GNUmakefile

Lines changed: 0 additions & 54 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,10 @@ ref = haf.SMDegrain(src)
434434
flt = core.bm3d.VFinal(src, ref, radius=1, matrix=100).bm3d.VAggregate(radius=1)
435435
flt = core.bm3d.OPP2RGB(flt)
436436
```
437+
438+
## Compilation
439+
440+
```
441+
meson build
442+
ninja -C build
443+
```

configure

Lines changed: 0 additions & 263 deletions
This file was deleted.

meson.build

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
project('BM3D', 'cpp',
2+
default_options : ['buildtype=release', 'b_ndebug=if-release', 'cpp_std=c++14'],
3+
meson_version : '>=0.48.0',
4+
version : '8'
5+
)
6+
7+
add_project_arguments('-Wno-unused-local-typedefs', language : 'cpp')
8+
9+
sources = [
10+
'include/Block.h',
11+
'include/BM3D.h',
12+
'include/BM3D_Base.h',
13+
'include/BM3D_Basic.h',
14+
'include/BM3D_Final.h',
15+
'include/Conversion.hpp',
16+
'include/fftw3_helper.hpp',
17+
'include/Helper.h',
18+
'include/OPP2RGB.h',
19+
'include/RGB2OPP.h',
20+
'include/Specification.h',
21+
'include/Type.h',
22+
'include/VAggregate.h',
23+
'include/VBM3D_Base.h',
24+
'include/VBM3D_Basic.h',
25+
'include/VBM3D_Final.h',
26+
'source/BM3D.cpp',
27+
'source/BM3D_Base.cpp',
28+
'source/BM3D_Basic.cpp',
29+
'source/BM3D_Final.cpp',
30+
'source/VAggregate.cpp',
31+
'source/VBM3D_Base.cpp',
32+
'source/VBM3D_Basic.cpp',
33+
'source/VBM3D_Final.cpp',
34+
'source/VSPlugin.cpp'
35+
]
36+
37+
vapoursynth_dep = dependency('vapoursynth').partial_dependency(compile_args : true, includes : true)
38+
39+
fftw3f_dep = dependency('fftw3f')
40+
41+
if host_machine.cpu_family().startswith('x86')
42+
add_project_arguments('-mfpmath=sse', '-msse2', language : 'cpp')
43+
endif
44+
45+
shared_module('bm3d', sources,
46+
dependencies : [vapoursynth_dep, fftw3f_dep],
47+
include_directories : include_directories('include'),
48+
install : true,
49+
install_dir : join_paths(vapoursynth_dep.get_pkgconfig_variable('libdir'), 'vapoursynth'),
50+
gnu_symbol_visibility : 'hidden'
51+
)

0 commit comments

Comments
 (0)