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 {
} }
} }
function SetupParser() function SetupCLIParser()
local c = configuration "vs*" local parser = _OPTIONS["parser"]
if not parser or parser == "cli" then
defines { "OLD_PARSER" } defines { "OLD_PARSER" }
links { "CppSharp.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 end
solution "CppSharp" solution "CppSharp"

Loading…
Cancel
Save