Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2021-07-09 09:56:09 +0300
committerJens Peters <jp7677@gmail.com>2021-07-09 09:56:09 +0300
commit03607549f4b3375f1efa04d4b207fd0e37daba66 (patch)
tree886f676b966d221b1c6d692426b2ec87b4f2f480 /meson.build
parentbec32301ddeddde7c8375f991fa2e3cc7dd81d67 (diff)
build: Build tests conditionally
Disabled by default, use a.o. --enable-tests with package-release.sh to enable building of tests.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 0ccf72e..3254f61 100644
--- a/meson.build
+++ b/meson.build
@@ -29,6 +29,8 @@ dxvk_nvapi_version = vcs_tag(
output: 'version.h')
subdir('src')
-if dxvk_cpu_family == 'x86_64' # compiling tests for x86 fails, dunno why...
+
+enable_tests = get_option('enable_tests')
+if enable_tests and dxvk_cpu_family == 'x86_64' # compiling tests for x86 fails, dunno why...
subdir('tests')
endif