Re: [Premake-users] Custom Build Commands starting
On GitHub now!
Brought to you by:
starkos,
ttk-bandit
From: Konstantin T. <an...@ya...> - 2012-03-12 19:19:53
|
12.03.2012, 22:49, "Jason Perkins" <st...@in...>: >> 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(' ', '_')) Seems to be powerful enough. I propose additional variable files with complete list of input files for rule for current configuration. It could be used for "combined" compilations like sometool %(files) -o combined.out -- Regards, Konstantin |