diff --git a/modules/vstudio/tests/vc2010/test_files.lua b/modules/vstudio/tests/vc2010/test_files.lua index 2f16624e3e..acd8d0e2a5 100644 --- a/modules/vstudio/tests/vc2010/test_files.lua +++ b/modules/vstudio/tests/vc2010/test_files.lua @@ -277,6 +277,19 @@ flags { "ExcludeFromBuild" } prepare() test.capture [[ + + + true + + + ]] + end + + function suite.includedFromBuild_onResourceFile_nonWindows() + files { "hello.rc" } + system "Linux" + prepare() + test.capture [[ diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index 112c946760..dc4c42aa7c 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -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)