Tom N Harris <telliamed@...> writes:

> For Windows, it's found by parsing the output of `ver`.
> Unless there's a way to get the specific version more directly.
> I think there is but it uses WMI and would involve 
> either JScript/VBScript or PowerShell.
> 
> The platform table in a rockspec would contain keys naming the operating 
> system, as always. But along with just the builtin names "linux", "solaris", 
> "windows" etc., the table keys can have version specifiers like dependency 
> strings. i.e. "windows >= 5.1" for Windows XP or later.
> 

Some time we need also Service Pack version.
And i think if we can pass such data to compiler (via -D)
then developer could write simple header(compile_config.h) which set
appropriate macro values.



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to