Updates from dtk-template

This commit is contained in:
2024-10-16 22:55:18 -06:00
parent 269eb4faa1
commit 0036cf3c07
2 changed files with 50 additions and 16 deletions

View File

@@ -343,6 +343,12 @@ 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 = [
@@ -1358,6 +1364,13 @@ config.libs = [
),
]
# Disable missing return type warnings for incomplete objects
for lib in config.libs:
for obj in lib["objects"]:
if not obj.completed:
obj.options["extra_clang_flags"].append("-Wno-return-type")
# Optional extra categories for progress tracking
config.progress_categories = [
ProgressCategory("game", "Game"),