1
1
# #############################################################################
2
# Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
2
# Copyright (c) 2018-present lzutao <taolzu(at)gmail.com>
3
# Copyright (c) 2022-present Tristan Partin <tristan(at)partin.io>
3
4
# All rights reserved.
5
6
# This source code is licensed under both the BSD-style license (found in the
7
8
# in the COPYING file in the root directory of this source tree).
8
9
# #############################################################################
10
lz4_root_dir = '../../../../..'
11
lz4_source_root = '../../../../..'
12
13
add_languages('cpp')
13
cxx = meson.get_compiler('cpp')
15
gen_manual_includes = include_directories(join_paths(lz4_root_dir, 'contrib/gen_manual'))
17
gen_manual_cppflags = cxx.get_supported_arguments(['-Wextra', '-Wcast-qual',
18
'-Wcast-align', '-Wshadow', '-Wstrict-aliasing=1', '-Wswitch-enum',
21
gen_manual = executable('gen_manual',
22
join_paths(lz4_root_dir, 'contrib/gen_manual/gen_manual.cpp'),
23
cpp_args: gen_manual_cppflags,
24
include_directories: gen_manual_includes,
16
lz4_source_root / 'contrib/gen_manual/gen_manual.cpp'
19
gen_manual = executable(
29
lz4_manual_html = custom_target('lz4_manual.html',
30
output : 'lz4_manual.html',
31
command : [gen_manual,
33
join_paths(meson.current_source_dir(), lz4_root_dir, 'lib/lz4.h'),
36
# Update lz4frame manual
37
lz4_manual_html = custom_target('lz4frame_manual.html',
38
output : 'lz4frame_manual.html',
39
command : [gen_manual,
41
join_paths(meson.current_source_dir(), lz4_root_dir, 'lib/lz4frame.h'),
26
manual_pages = ['lz4', 'lz4frame']
28
foreach mp : manual_pages
30
'@0@_manual.html'.format(mp),
31
build_by_default: true,
32
input: lz4_source_root / 'lib/@0@.h'.format(mp),
33
output: '@0@_manual.html'.format(mp),