|
| 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