File: meson.build

package info (click to toggle)
p11-kit 0.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 12,088 kB
  • sloc: ansic: 73,585; sh: 7,776; xml: 1,953; makefile: 1,200; python: 675; sed: 39
file content (23 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if get_option('test')
  fuzz_common_sources = [
    'main.c'
  ]

  fuzzer_target_names = [
    'rpc'
  ]

  fuzzer_targets = []
  foreach target : fuzzer_target_names
    t = executable('@0@_fuzzer'.format(target),
                   ['@0@_fuzzer.c'.format(target)] + fuzz_common_sources,
                   c_args: tests_c_args,
                   include_directories: [configinc, commoninc],
                   link_with: [libp11_kit_testable, libp11_test, libp11_common])
    fuzzer_targets += t
  endforeach

  # Make `ninja fuzz` build all fuzzer targets.
  # This could use alias_target() instead, with a version bump to Meson 0.52.
  run_target('fuzz', depends: fuzzer_targets, command: [ 'true' ])
endif