Merge pull request #1402 from yuyoyuppe/fix_1172
Remove checkFunc from Resource files
This commit is contained in:
commit
0a9844891d
@ -277,6 +277,19 @@
|
|||||||
flags { "ExcludeFromBuild" }
|
flags { "ExcludeFromBuild" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
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>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="hello.rc" />
|
<ResourceCompile Include="hello.rc" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -865,9 +865,7 @@
|
|||||||
m.excludedFromBuild
|
m.excludedFromBuild
|
||||||
}
|
}
|
||||||
|
|
||||||
m.emitFiles(prj, group, "ResourceCompile", nil, fileCfgFunc, function(cfg)
|
m.emitFiles(prj, group, "ResourceCompile", nil, fileCfgFunc)
|
||||||
return cfg.system == p.WINDOWS
|
|
||||||
end)
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
emitFilter = function(prj, group)
|
emitFilter = function(prj, group)
|
||||||
|
Reference in New Issue
Block a user