• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: LGPL-2.1
2#
3# Copyright (c) 2023 Daniel Wagner, SUSE LLC
4
5project(
6    'libtracefs', ['c'],
7    meson_version: '>= 0.50.0',
8    license: 'LGPL-2.1',
9    version: '1.8.1',
10    default_options: [
11        'c_std=gnu99',
12        'buildtype=debug',
13        'default_library=both',
14        'prefix=/usr/local',
15        'warning_level=1'])
16
17library_version = meson.project_version()
18
19libtraceevent_dep = dependency('libtraceevent', version: '>= 1.8.1', required: true)
20threads_dep = dependency('threads', required: true)
21cunit_dep = dependency('cunit', required : false)
22
23prefixdir = get_option('prefix')
24bindir = join_paths(prefixdir, get_option('bindir'))
25mandir = join_paths(prefixdir, get_option('mandir'))
26htmldir = join_paths(prefixdir, get_option('htmldir'))
27
28add_project_arguments(
29    [
30        '-D_GNU_SOURCE',
31    ],
32    language : 'c')
33
34incdir = include_directories(['include'])
35
36subdir('src')
37subdir('include')
38if get_option('utest') and cunit_dep.found()
39    subdir('utest')
40endif
41if get_option('samples')
42subdir('samples')
43endif
44
45if get_option('doc')
46subdir('Documentation')
47
48custom_target(
49    'docs',
50    output: 'docs',
51    depends: [html, man],
52    command: ['echo'])
53endif
54