mirror of
https://github.com/microsoft/DirectX-Headers.git
synced 2024-11-23 01:46:44 +08:00
Meson: Add an option to skip tests for non-subproject builds
This commit is contained in:
parent
d64caa7c84
commit
1ff6b55ac5
@ -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
|
||||
|
||||
|
7
meson_options.txt
Normal file
7
meson_options.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
option('build-test',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Build the test')
|
Loading…
Reference in New Issue
Block a user