Remove checkFunc from Resource files

This commit is contained in:
yuyoyuppe 2020-02-14 13:51:08 +03:00
parent 789c0ac343
commit 374618b908
No known key found for this signature in database
GPG Key ID: B240219D92C197D0
2 changed files with 14 additions and 3 deletions

View File

@ -277,6 +277,19 @@
flags { "ExcludeFromBuild" }
prepare()
test.capture [[
<ItemGroup>
<ResourceCompile Include="hello.rc">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ResourceCompile>
</ItemGroup>
]]
end
function suite.includedFromBuild_onResourceFile_nonWindows()
files { "hello.rc" }
system "Linux"
prepare()
test.capture [[
<ItemGroup>
<ResourceCompile Include="hello.rc" />
</ItemGroup>

View File

@ -865,9 +865,7 @@
m.excludedFromBuild
}
m.emitFiles(prj, group, "ResourceCompile", nil, fileCfgFunc, function(cfg)
return cfg.system == p.WINDOWS
end)
m.emitFiles(prj, group, "ResourceCompile", nil, fileCfgFunc)
end,
emitFilter = function(prj, group)