Skip to content

Commit

Permalink
Replace custom configure script with Meson build system
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Dec 27, 2018
1 parent 6b013bc commit f7abea5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 290 deletions.
46 changes: 0 additions & 46 deletions GNUmakefile

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,11 @@ i = core.lsmas.LWLibavSource(r'Image.png')
i = core.fmtc.bitdepth(i, bits=16)
i = core.retinex.MSRCR(i)
```


## Compilation

```
meson build
ninja -C build
```
244 changes: 0 additions & 244 deletions configure

This file was deleted.

27 changes: 27 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
project('Retinex', 'cpp',
default_options : ['buildtype=release', 'b_ndebug=if-release', 'cpp_std=c++14'],
meson_version : '>=0.48.0',
version : '4'
)

sources = [
'source/Gaussian.cpp',
'source/MSR.cpp',
'source/MSRCP.cpp',
'source/MSRCR.cpp',
'source/VSPlugin.cpp'
]

vapoursynth_dep = dependency('vapoursynth').partial_dependency(compile_args : true, includes : true)

if host_machine.cpu_family().startswith('x86')
add_project_arguments('-mfpmath=sse', '-msse2', language : 'cpp')
endif

shared_module('retinex', sources,
dependencies : vapoursynth_dep,
include_directories : include_directories('include'),
install : true,
install_dir : join_paths(vapoursynth_dep.get_pkgconfig_variable('libdir'), 'vapoursynth'),
gnu_symbol_visibility : 'hidden'
)

0 comments on commit f7abea5

Please sign in to comment.