Skip to content

Commit f7abea5

Browse files
committed
Replace custom configure script with Meson build system
1 parent 6b013bc commit f7abea5

File tree

4 files changed

+35
-290
lines changed

4 files changed

+35
-290
lines changed

GNUmakefile

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

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,11 @@ i = core.lsmas.LWLibavSource(r'Image.png')
159159
i = core.fmtc.bitdepth(i, bits=16)
160160
i = core.retinex.MSRCR(i)
161161
```
162+
163+
164+
## Compilation
165+
166+
```
167+
meson build
168+
ninja -C build
169+
```

configure

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

meson.build

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
project('Retinex', 'cpp',
2+
default_options : ['buildtype=release', 'b_ndebug=if-release', 'cpp_std=c++14'],
3+
meson_version : '>=0.48.0',
4+
version : '4'
5+
)
6+
7+
sources = [
8+
'source/Gaussian.cpp',
9+
'source/MSR.cpp',
10+
'source/MSRCP.cpp',
11+
'source/MSRCR.cpp',
12+
'source/VSPlugin.cpp'
13+
]
14+
15+
vapoursynth_dep = dependency('vapoursynth').partial_dependency(compile_args : true, includes : true)
16+
17+
if host_machine.cpu_family().startswith('x86')
18+
add_project_arguments('-mfpmath=sse', '-msse2', language : 'cpp')
19+
endif
20+
21+
shared_module('retinex', sources,
22+
dependencies : vapoursynth_dep,
23+
include_directories : include_directories('include'),
24+
install : true,
25+
install_dir : join_paths(vapoursynth_dep.get_pkgconfig_variable('libdir'), 'vapoursynth'),
26+
gnu_symbol_visibility : 'hidden'
27+
)

0 commit comments

Comments
 (0)