File: meson.build

package info (click to toggle)
libmicrodns 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 2,061; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if get_option('tests').disabled()
    subdir_done()
endif

mdns_objs = libmicrodns.extract_all_objects(recursive: true)

unittest_e = executable('unittest', 'unittests.c',
    include_directories: incdirs,
    objects: mdns_objs,
    link_with: libcompat,
    c_args: c_args,
    link_args: link_flags
)

test('unittest', unittest_e)

if get_option('fuzzing')
    executable('mdnsfuzz', 'fuzz.c',
        include_directories: incdirs,
        link_with: libmicrodns,
        link_args: ['-fsanitize=fuzzer,address,undefined', '-lasan', '-lubsan', '-fprofile-instr-generate', '-fcoverage-mapping'],
        c_args: c_args,
    )
endif