Skip to content

Commit

Permalink
meson: add programs option
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Aug 11, 2024
1 parent d3de184 commit 7def78a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
34 changes: 18 additions & 16 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,25 @@ libdakara_check = library(
soversion: '4',
)

dakara_check_exe = executable(
'dakara_check',
'dakara_check.c',
dependencies: deps,
include_directories: inc,
link_with: libdakara_check,
install: true,
)
if get_option('programs')
executable(
'dakara_check',
'dakara_check.c',
dependencies: deps,
include_directories: inc,
link_with: libdakara_check,
install: true,
)

dakara_check_sub_exe = executable(
'dakara_check_sub',
'dakara_check_sub.c',
dependencies: deps,
include_directories: inc,
link_with: libdakara_check,
install: true,
)
executable(
'dakara_check_sub',
'dakara_check_sub.c',
dependencies: deps,
include_directories: inc,
link_with: libdakara_check,
install: true,
)
endif

pkg = import('pkgconfig')
pkg.generate(libdakara_check)
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
option('programs', type: 'boolean', value: true, description: 'build dakara_check programs')

0 comments on commit 7def78a

Please sign in to comment.