-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
59 lines (48 loc) · 1.82 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project('remotetranscode', 'cpp', 'c',
version : '0.1',
default_options : ['warning_level=1', 'c_std=c17', 'cpp_std=c++17'],
meson_version: '>=0.63.0')
add_global_arguments('-O3', language : 'cpp')
cmake = import('cmake')
cpp = meson.get_compiler('cpp')
#
# openssl
#
openssl_dep = dependency('openssl')
#
# spdlog
#
spdlog_proj = subproject('spdlog')
spdlog_dep = spdlog_proj.get_variable('spdlog_dep', ['tests=disabled', 'compile_library=true'] )
#
# tiny-process-libraryle
#
tiny_process_library_proj = subproject('tiny_process_library')
tiny_process_library_dep = tiny_process_library_proj.get_variable('tiny_process_library_dep')
#
# mINI
#
mini_proj = subproject('mini')
mini_dep = mini_proj.get_variable('mini_dep')
#
# dash2ts
#
dash2ts_proj = subproject('dash2ts')
dash2ts_dep = dash2ts_proj.get_variable('dash2ts_dep')
remotrans = executable('remotrans', 'main.cpp', 'logger.cpp', 'streamhandler.cpp', 'browserclient.cpp', 'transcodeconfig.cpp', 'vdrclient.cpp',
'm3u8handler.cpp',
install : true,
install_dir : meson.current_build_dir() + '/Release',
dependencies: [mini_dep, spdlog_dep, tiny_process_library_dep, openssl_dep])
r_dash2ts = executable('r_dash2ts', 'r_dash2ts.cpp', 'logger.cpp',
install : true,
install_dir : meson.current_build_dir() + '/Release',
dependencies: [spdlog_dep, dash2ts_dep])
r_dash2tsd = executable('r_dash2ts_debug', 'r_dash2ts_debug.cpp', 'logger.cpp',
install : true,
install_dir : meson.current_build_dir() + '/Release',
dependencies: [spdlog_dep, dash2ts_dep])
#
# install
#
install_subdir('static-content/movie', install_dir : meson.current_build_dir() + '/Release')