mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
meson: add options for docs, unit tests and binding
This commit is contained in:
parent
a9c417dbab
commit
f7abc297ca
2 changed files with 30 additions and 13 deletions
30
meson.build
30
meson.build
|
@ -22,10 +22,12 @@ subproject('libcmd')
|
||||||
subproject('nix')
|
subproject('nix')
|
||||||
|
|
||||||
# Docs
|
# Docs
|
||||||
subproject('internal-api-docs')
|
if get_option('doc-gen')
|
||||||
subproject('external-api-docs')
|
subproject('internal-api-docs')
|
||||||
if not meson.is_cross_build()
|
subproject('external-api-docs')
|
||||||
subproject('nix-manual')
|
if not meson.is_cross_build()
|
||||||
|
subproject('nix-manual')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# External C wrapper libraries
|
# External C wrapper libraries
|
||||||
|
@ -35,17 +37,19 @@ subproject('libexpr-c')
|
||||||
subproject('libmain-c')
|
subproject('libmain-c')
|
||||||
|
|
||||||
# Language Bindings
|
# Language Bindings
|
||||||
if not meson.is_cross_build()
|
if get_option('bindings') and not meson.is_cross_build()
|
||||||
subproject('perl')
|
subproject('perl')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
subproject('libutil-test-support')
|
if get_option('unit-tests')
|
||||||
subproject('libutil-tests')
|
subproject('libutil-test-support')
|
||||||
subproject('libstore-test-support')
|
subproject('libutil-tests')
|
||||||
subproject('libstore-tests')
|
subproject('libstore-test-support')
|
||||||
subproject('libfetchers-tests')
|
subproject('libstore-tests')
|
||||||
subproject('libexpr-test-support')
|
subproject('libfetchers-tests')
|
||||||
subproject('libexpr-tests')
|
subproject('libexpr-test-support')
|
||||||
subproject('libflake-tests')
|
subproject('libexpr-tests')
|
||||||
|
subproject('libflake-tests')
|
||||||
|
endif
|
||||||
subproject('nix-functional-tests')
|
subproject('nix-functional-tests')
|
||||||
|
|
13
meson.options
Normal file
13
meson.options
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# vim: filetype=meson
|
||||||
|
|
||||||
|
option('doc-gen', type : 'boolean', value : true,
|
||||||
|
description : 'Generate documentation',
|
||||||
|
)
|
||||||
|
|
||||||
|
option('unit-tests', type : 'boolean', value : true,
|
||||||
|
description : 'Build unit tests',
|
||||||
|
)
|
||||||
|
|
||||||
|
option('bindings', type : 'boolean', value : true,
|
||||||
|
description : 'Build language bindings (e.g. Perl)',
|
||||||
|
)
|
Loading…
Reference in a new issue