diff --git a/meson.build b/meson.build index 6db2f68..6c368bd 100644 --- a/meson.build +++ b/meson.build @@ -18,7 +18,7 @@ dep_dxheaders = declare_dependency( link_with : guids_lib, include_directories : inc_dirs) -if not meson.is_subproject() +if not meson.is_subproject() and get_option('build-test') subdir('test') endif diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..a6ed5d3 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,7 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +option('build-test', + type : 'boolean', + value : true, + description : 'Build the test')