Skip to content

Commit

Permalink
Allows to build without Python wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Dec 27, 2023
1 parent 1707f42 commit c1b4d45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,14 @@ cdfpp_dep_inc = include_directories('include', '.')
cdfpp_dep = declare_dependency(include_directories: cdfpp_dep_inc,
dependencies: [zlib_dep, hedley_dep, fmt_dep])

if get_option('disable_python_wrapper')
message('building without Python wrapper')
else
subdir('pycdfpp')
subdir('docs')
endif


subdir('pycdfpp')
subdir('docs')

install_headers(
[
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ option('with_benchmarks', type : 'boolean', value : false, description : 'Disabl
option('show_extra_files', type : 'boolean', value : false, description : 'adds dummy lib to show extra files into an IDE.')
option('use_libdeflate', type : 'boolean', value : true, description : 'uses libdeflate instead of libz.')
option('use_nomap', type : 'boolean', value : true, description : 'uses custom map like implementation.')
option('disable_python_wrapper', type : 'boolean', value : false, description : 'build without Python wrapper.')

0 comments on commit c1b4d45

Please sign in to comment.