From 945478dbc0198fed27ce885d3ec33c95c77bc69f Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 20 Mar 2019 15:44:08 +0000 Subject: meson: Provide options to disable test/docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It can be desirable to disable the compilation and processing of both the test suite and documentation for use cases such as packaging to an embedded target. Provide a new meson_options.txt file to allow disabling either or both of the tests and documentation components of libcamera. These options can be provided at the initial configuration time, for example: meson build -Dtests=false -Ddocumentation=false or by reconfiguring an existing build tree: cd build meson configure -Ddocumentation=false meson configure -Dtests=false Reviewed-by: Niklas Söderlund Signed-off-by: Kieran Bingham --- meson_options.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meson_options.txt (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 00000000..c5df661a --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,2 @@ +option('tests', type : 'boolean') +option('documentation', type : 'boolean') -- cgit v1.2.1