From c6dc39414bd86284641e9430c8a6d95dd9d6e7e6 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 16 Oct 2024 22:52:23 -0600 Subject: [PATCH] Add MatchingFor helper --- configure.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.py b/configure.py index 8cb9a11..e9575e6 100755 --- a/configure.py +++ b/configure.py @@ -250,6 +250,12 @@ Matching = True # Object matches and should be linked NonMatching = False # Object does not match and should not be linked Equivalent = config.non_matching # Object should be linked when configured with --non-matching + +# Object is only matching for specific versions +def MatchingFor(*versions): + return config.version in versions + + config.warn_missing_config = True config.warn_missing_source = False config.libs = [