Replies: 1 comment 1 reply
-
We only support excluding a premake-core/modules/vstudio/vs2010_vcxproj.lua Lines 959 to 980 in ff5328c PRs are welcome for expanding upon this, and if you're looking for a temporary workaround, you can use the override system with something like this: require "vstudio"
local function someFileElement(cfg, file)
premake.vstudio.vc2010.element("someFileElement", nil, "value")
end
local function someFileCfgElement(filecfg, condition)
premake.vstudio.vc2010.element("someFileCfgElement", condition, "value")
end
premake.override(premake.vstudio.vc2010, "emitFiles", function (oldfn, prj, group, tag, fileFunc, fileCfgFunc, checkFunc)
if tag == "Midl" then
fileFunc = table.join(fileFunc or {}, {
someFileElement,
}
fileCfgFunc = table.join(fileCfgFunc or {}, {
someFileCfgElement,
}
end
return oldfn(prj, group, tag, fileFunc, fileCfgFunc, checkFunc)
end)
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm currently migrating projects Visual with ocx (MIDL) under premake.
In lua, when I add file .odl in files section, so ItemGroup/Midl is well add in vcxproj 👍
But to compile it's missing in vcxproj : ItemDefinitionGroup/Midl to include TypeLibraryName test.tlb
for exemple, in original vcxproj (no generate with premake)
I don't find in docs/Stack Overflow any info how to add this in lua configuration.
Can you confirme, that is it possible in the current version of premake 5.0b2 ?
Thx,
Beta Was this translation helpful? Give feedback.
All reactions