Skip to content
Permalink
Browse files

meson: Add options to not-build samples and tests.

  • Loading branch information
tsieprawski authored and Snaipe committed Jan 7, 2020
1 parent 3e16c0a commit 1456d9a3a3bcb506cdcd1b5d4b852e967deb5e57
Showing with 12 additions and 2 deletions.
  1. +10 −2 meson.build
  2. +2 −0 meson_options.txt
@@ -6,6 +6,8 @@ project('boxfort', 'c',

# standard install directories
prefix = get_option('prefix')
samples = get_option('samples')
tests = get_option('tests')

# Helper scripts
auxdir = join_paths(meson.current_source_dir(), 'ci')
@@ -218,5 +220,11 @@ else
endif

subdir('src')
subdir('sample')
subdir('test')

if samples
subdir('sample')
endif

if tests
subdir('test')
endif
@@ -1,2 +1,4 @@
option('arena_reopen_shm', type: 'boolean', value: false, description: 'Reopen shared memory file in worker process rather than just inherit a file descriptor')
option('arena_file_backed', type: 'boolean', value: false, description: 'Use a file in tempfs to store the arena rather than using shm facilities')
option('samples', type: 'boolean', value: true, description: 'Build samples')
option('tests', type: 'boolean', value: true, description: 'Build and run tests')

0 comments on commit 1456d9a

Please sign in to comment.
You can’t perform that action at this time.