> Also, how %(file.abspath) and similar patterns are planned to work?

I will add this to the wiki, since it going to have to be as part of 4.5. 

My intention is to provide a few context objects: sln, prj, cfg, and file. You 
can then access any field of those objects:

        %(sln.name)
        %(prj.location)
        %(cfg.targetdir)

The contents of the $() would be run through loadstring() and executed at 
token-replacement time, so in theory more complex replacements could be used.

        %(sln.name:gsub(' ', '_'))

I haven't actually done any work against this yet, so it is all open for 
discussion and subject to change.

-st.




On Mar 12, 2012, at 5:21 AM, Konstantin Tokarev wrote:

> 
> 
> 12.03.2012, 02:10, "Jason Perkins" <star...@industriousone.com>:
>> I am going to be starting work on custom build commands in premake-dev this 
>> week. I've posted my current working syntax on the wiki at 
>> https://bitbucket.org/premake/premake-dev/wiki/Custom_Build_Commands
>> 
>> Feedback and design challenges very much appreciated!
> 
> Also, how %(file.abspath) and similar patterns are planned to work? Is "file" 
> a hardcoded "variable"?
> If so, why not use e.g. "infile" for clarity?
> 
> -- 
> Regards,
> Konstantin


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Premake-users mailing list
Premake-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/premake-users

Reply via email to