1# ############################################################################# 2# Copyright (c) 2018-present lzutao <taolzu(at)gmail.com> 3# Copyright (c) 2022-present Tristan Partin <tristan(at)partin.io> 4# All rights reserved. 5# 6# This source code is licensed under both the BSD-style license (found in the 7# LICENSE file in the root directory of this source tree) and the GPLv2 (found 8# in the COPYING file in the root directory of this source tree). 9# ############################################################################# 10 11lz4_source_root = '../../../../..' 12 13add_languages('cpp', native: true) 14 15sources = files( 16 lz4_source_root / 'contrib/gen_manual/gen_manual.cpp' 17) 18 19gen_manual = executable( 20 'gen_manual', 21 sources, 22 native: true, 23 install: false 24) 25 26manual_pages = ['lz4', 'lz4frame'] 27 28foreach mp : manual_pages 29 custom_target( 30 '@0@_manual.html'.format(mp), 31 build_by_default: true, 32 input: lz4_source_root / 'lib/@[email protected]'.format(mp), 33 output: '@0@_manual.html'.format(mp), 34 command: [ 35 gen_manual, 36 meson.project_version(), 37 '@INPUT@', 38 '@OUTPUT@', 39 ], 40 install: false 41 ) 42endforeach 43