Browse Source

Fixed the parser build setup code to work with the new options.

pull/146/merge
triton 12 years ago
parent
commit
4f19f3b566
  1. 21
      build/premake4.lua

21
build/premake4.lua

@ -20,11 +20,26 @@ newoption { @@ -20,11 +20,26 @@ newoption {
}
}
function SetupParser()
local c = configuration "vs*"
function SetupCLIParser()
local parser = _OPTIONS["parser"]
if not parser or parser == "cli" then
defines { "OLD_PARSER" }
links { "CppSharp.Parser" }
configuration(c)
else
links { "CppSharp.Parser.CLI" }
end
end
function SetupCSharpParser()
links { "CppSharp.Parser.CSharp" }
end
function SetupParser()
if string.match(action, "vs*") then
SetupCLIParser()
else
SetupCSharpParser()
end
end
solution "CppSharp"

Loading…
Cancel
Save