Skip to content

Commit

Permalink
Add Meson build system
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Nov 29, 2018
1 parent 58f8cd5 commit 5ec9c9b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ If `quant` + `aoffset` is inferior to 16, the filter does nothing at all. The sa
Compilation
===========

```
meson build
ninja -C build
```

or

```
./autogen.sh
./configure
Expand Down
22 changes: 22 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
project('Deblock', 'cpp',
default_options : ['buildtype=release', 'b_ndebug=if-release', 'cpp_std=c++14'],
meson_version : '>=0.48.0',
version : '6'
)

sources = 'Deblock/Deblock.cpp'

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

add_project_arguments('-ffast-math', language : 'cpp')

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

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

0 comments on commit 5ec9c9b

Please sign in to comment.