Skip to content

Commit

Permalink
make it possible to build dfuzzer with meson
Browse files Browse the repository at this point in the history
inspired by https://github.com/matusmarhefka/dfuzzer/pull/24#issuecomment-1107522921

With this patch applied dfuzzer can be built with clang with
```
CC=clang meson build
ninja -C ./build -v
```
  • Loading branch information
evverx committed Apr 23, 2022
1 parent 6a23217 commit db43353
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
project('dfuzzer', 'c',
version : '1.4',
default_options: [
'c_std=gnu11',
'prefix=/usr',
'warning_level=2',
],
)

libgio = dependency('gio-2.0', required : true)
libffi = dependency('libffi', required : true)

subdir('src')

executable(
'dfuzzer',
dfuzzer_sources,
dependencies : [libgio, libffi],
install : true
)

install_data('src/dfuzzer.conf', install_dir : get_option('sysconfdir'))
install_man('man/dfuzzer.1')
10 changes: 10 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
dfuzzer_sources = files(
'dfuzzer.c',
'dfuzzer.h',
'introspection.c',
'introspection.h',
'fuzz.c',
'fuzz.h',
'rand.c',
'rand.h',
)

0 comments on commit db43353

Please sign in to comment.