aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/meson.build
blob: 5e3e4b2a854357344c338f5182b103b26eedb0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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