aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/meson.build
blob: 0ef6f5faa643097f0d068da6ce1b23f23f1d4bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dep_configuration = declare_dependency(
  include_directories: include_directories('.'),
  link_with: static_library('configuration', ['configuration.cpp', 'qt_specialization.cpp'], dependencies: dep_qt5)
)

test('conf parser', executable('configuration-parser',
    sources: [ 'test/main.cpp' ],
    dependencies: [ dep_qt5, dep_catch, dep_configuration ]
  ),
  env: 'CONFIGFILE='+meson.current_source_dir()/'test/defaultrc.ini',
  args: [ '-platform', 'offscreen' ],
  workdir: meson.current_source_dir()/'test'
)

if meson.get_compiler('cpp').has_multi_arguments('-g', '-fsanitize=fuzzer')
executable('configuration-fuzzer',
  sources: 'configuration.cpp',
  cpp_args: [ '-g', '-fsanitize=fuzzer', '-DNO_QT_SPEC', '-DFUZZER' ],
  link_args: [ '-fsanitize=fuzzer' ])
# args: [ '-seed=1', '-max_total_time=24', meson.current_source_dir()/'test/corpus' ]
endif