forked from vapoursynth/subtext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
29 lines (24 loc) · 875 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
project('subtext', 'c', 'cpp',
version : '2',
default_options : ['warning_level=3'])
add_project_arguments('-ffast-math', language : 'c')
sources = [
'src/common.c',
'src/common.h',
'src/image.cpp',
'src/text.c',
'src/toass.cpp',
'src/toutf8.c'
]
vapoursynth_dep = dependency('vapoursynth', version: '>=55').partial_dependency(compile_args : true, includes : true)
libass_dep = dependency('libass', version: '>=0.12.0')
libavcodec_dep = dependency('libavcodec')
libavutil_dep = dependency('libavutil')
libavformat_dep = dependency('libavformat')
deps = [vapoursynth_dep, libass_dep, libavcodec_dep, libavutil_dep, libavformat_dep]
shared_module('subtext', sources,
dependencies : deps,
install : true,
install_dir : join_paths(vapoursynth_dep.get_pkgconfig_variable('libdir'), 'vapoursynth'),
gnu_symbol_visibility : 'hidden'
)