26.01.2012, 02:29, "Jason Perkins" <star...@industriousone.com>:
> Thanks to a new client with a fantastically complicated multi-platform, 
> multi-architecture build, I've had the opportunity to begin work on a new 
> platform configuration API for Premake. The first set of changes are now in 
> premake-dev (http://bitbucket.org/premake/premake-dev), and I've posted an 
> overview of the new system 
> (https://bitbucket.org/premake/premake-dev/wiki/Platforms) to the premake-dev 
> wiki.
>
> The old API solved the most common cases and allowed Premake to support game 
> consoles, but in "real world" use proved terribly limited and inflexible. And 
> the code to support it was messy—I hated working on those bits.
>
> The new system is...ambitious, and it is going to take some time to get it 
> fully implemented, so bear with me. But it is also more intuitive and far 
> more flexible. It will make it much easier to support new platforms (iOS 
> anyone?). And since it requires a rewrite of much of Premake's configuration 
> building code, I have the opportunity to address some long-standing issues 
> (such as the inability to query settings from within a project script).
>
> Feedback, as always, is welcomed. As are your questions, though I may not 
> have answers for everything yet.

0. There's debug.traceback() left in project.lua. ".hgcheck" also seems like 
something unneeded in the repository.
1. I think APIs for defining additional systems, architectures, and compilers 
in user's code should exist.
2. In example "complex_platforms" you demonstrate switching of compiler 
depending on chosen platform. However, I see limitation in this approach:
   * Different projects in solution may need to be built with different 
compilers (e.g., part of system runs on ps3ppu and other part on ps3spu (not 
sure if it's possible to implement it for particular IDEs though, but at least 
for makefiles it should be possible)
   * Project can use several compilers at once. Imagine that Premake will 
support Fortran someday, and it will bring choice of both C/C++ and Fortran 
compilers which could be from different suites; also it's quite common to have 
both C and Fortran in one "project" in Premake terms
   * Also, project can employ custom "compilers" (or even without quotes!) for 
code generations (like what I'm doing for Qt support, or tools like protobuf 
compiler). This stuff maybe somewhat unrelated to "main" compiler switching, 
however it would be nice to see it integrating well in term of APIs.


-- 
Regards,
Konstantin

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Premake-users mailing list
Premake-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/premake-users

Reply via email to