Skip to content

Commit

Permalink
Merge pull request #2 from marillat/patch-1
Browse files Browse the repository at this point in the history
Add meson build
  • Loading branch information
myrsloik authored Sep 26, 2021
2 parents 42ef560 + d1e80c6 commit b5dd774
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
project('ocr', 'c', 'cpp',
version : '1',
default_options : ['warning_level=3'])

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

sources = [
'src/ocr.c'
]

vapoursynth_dep = dependency('vapoursynth', version: '>=55').partial_dependency(compile_args : true, includes : true)
libtesseract_dep = dependency('tesseract')

deps = [vapoursynth_dep, libtesseract_dep]

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

0 comments on commit b5dd774

Please sign in to comment.