mirror of
https://github.com/encounter/dtk-template.git
synced 2025-07-03 11:45:57 +00:00
Add MatchingFor helper
This commit is contained in:
parent
3a36810d82
commit
c6dc39414b
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user