Cleaner baserom dependency handling

Instead of scaninc ignoring everything starting with baserom, we tell make which baseroms are needed and which to ignore if they come up as dependencies, depending on the version used.
This commit is contained in:
Ibot02
2021-06-23 08:05:51 +02:00
committed by octorock
parent 68b65dfd9a
commit 300169514a
2 changed files with 42 additions and 43 deletions
+1 -4
View File
@@ -93,10 +93,7 @@ int main(int argc, char **argv)
includeDirs.push_back(file.GetSrcDir());
for (auto incbin : file.GetIncbins())
{
// Don't include incbins starting with baserom, as they might not be necessary if another variant is being built.
if (incbin.rfind("baserom", 0) != 0) {
dependencies.insert(incbin);
}
dependencies.insert(incbin);
}
for (auto include : file.GetIncludes())
{