Skip to content

Commit

Permalink
genie: local fix for resource directory bug
Browse files Browse the repository at this point in the history
* pending upstream merge of bkaradzic/GENie#572
  • Loading branch information
pmackinlay committed Nov 20, 2024
1 parent 86107d6 commit e810531
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 58 deletions.
9 changes: 8 additions & 1 deletion 3rdparty/genie/src/actions/vstudio/vstudio_vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@
end
end

local function include_resdirs(indent,cfg)
if #cfg.resincludedirs> 0 then
_p(indent,'<AdditionalIncludeDirectories>%s;%%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>'
,premake.esc(path.translate(table.concat(cfg.resincludedirs, ";"), '\\')))
end
end

local function using_dirs(indent,cfg)
if #cfg.usingdirs > 0 then
_p(indent,'<AdditionalUsingDirectories>%s;%%(AdditionalUsingDirectories)</AdditionalUsingDirectories>'
Expand All @@ -351,7 +358,7 @@
local function resource_compile(cfg)
_p(2,'<ResourceCompile>')
preprocessor(3,cfg,true)
include_dirs(3,cfg)
include_resdirs(3,cfg)
_p(2,'</ResourceCompile>')

end
Expand Down
Loading

0 comments on commit e810531

Please sign in to comment.