diff options
Diffstat (limited to 'src/actions/vstudio/vs200x_vcproj.lua')
-rw-r--r-- | src/actions/vstudio/vs200x_vcproj.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions/vstudio/vs200x_vcproj.lua b/src/actions/vstudio/vs200x_vcproj.lua index d119fa6..6de635d 100644 --- a/src/actions/vstudio/vs200x_vcproj.lua +++ b/src/actions/vstudio/vs200x_vcproj.lua @@ -102,6 +102,7 @@ _p(3,'>') end + vc200x.individualSourceFileOptions = nil function vc200x.individualSourceFile(prj, depth, fname, node) -- handle file configuration stuff. This needs to be cleaned up and simplified. @@ -114,7 +115,7 @@ local isSourceCode = path.iscppfile(fname) local needsCompileAs = (path.iscfile(fname) ~= premake.project.iscproject(prj)) - if usePCH or (isSourceCode and needsCompileAs) then + if usePCH or (isSourceCode and needsCompileAs) or (type(vc200x.individualSourceFileOptions) == 'function') then _p(depth, '<FileConfiguration') _p(depth, '\tName="%s"', cfginfo.name) _p(depth, '\t>') @@ -138,6 +139,9 @@ _p(depth, '\t\tUsePrecompiledHeader="1"') end end + if (type(vc200x.individualSourceFileOptions) == 'function') then + vc200x.individualSourceFileOptions(prj, depth, fname, node) + end _p(depth, '\t/>') _p(depth, '</FileConfiguration>') |