> How will it work if I need to transform e.g. *.lua to *.lua (abstract > preprocessing)?
You will either have to list out the files you want to transform explicitly, put them in a different folder, or find some other way to identify them. Once identified, the same syntax would be used to describe the build command. > 2) How more complex filters are meant to be implemented (custom list of input > files, or picking up > file with use of custom filtering function You can always provide a list of specific files: configuration { "hello.c or goodbye.c" } I'm open to suggestions for improvements there. Support for "custom filtering functions" is a good idea, and worthy of a feature request. Per your example, I think it should be written as: configuration { qt.ismocableheader } The function would get called back at bake time with a list of terms, and would return true or false to apply the configuration block. > 3) Is compilation of generated files supported? I mentioned on the wiki page that source files listed in the outputs should get fed back into the build, and object files back into the link step. Did you mean something else? I am, of course, open to other suggestions. -st. On Mar 12, 2012, at 5:15 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! > > Great news! > > My thought on it are in comments for Todd's patch [1]. > > In particular, I'm not sure that syntax like "configuration '**.lua'" will be > reliable enough for all cases. > > 1) How will it work if I need to transform e.g. *.lua to *.lua (abstract > preprocessing)? > 2) How more complex filters are meant to be implemented (custom list of input > files, or picking up > file with use of custom filtering function[2])? > 3) Is compilation of generated files supported? > > > [1] > http://sourceforge.net/tracker/?func=detail&aid=2793087&group_id=71616&atid=531880 > [2] See https://gist.github.com/1312957, e.g. function > premake.qt.ismocableheader. It generates > moc file from header only if it contains Q_OBJECT macro. > > -- > 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