Hello Mike!

On Tuesday 29 of September 2015 16:34:04 Mike Shal wrote:
> I don't think there are any major technical reasons why it couldn't be
> implemented. There was an issue filed on github a while back for this that
> has some more details: https://github.com/gittup/tup/issues/166

Good to know that there are no technical limitations to implementing such 
thing. For now I've solved my problem without need for multiple groups, but 
the solution with multiple groups would look better and be more universal (;

If anyone is interested in what I've done, you can check last few commits that 
mention "tup build", or any tup file (Tuprules.lua, Tupfile.lua) - 
https://github.com/DISTORTEC/distortos

Generally I've managed to (ab)use groups to pass any number of single files 
with their path (archives, generated linker scripts) or any number of normal 
groups (compiled objects) to the function that does linking (link()). All of 
that uses lua's varargs.

> Yeah, they can be handy :). Part of me thinks that we could just use groups
> for inputs/outputs and not list any files manually. Though we'd also have
> to fix the explicit-listing-of-output-files issue for that to work.

This is something (partially) close to what I've done in my project. If I 
archive multiple objects to an archive libsomething.a in output/some/path/ 
then I also put this file in $(TOP)/output/some/path/<libsomething.a>. By 
passing such group to a function (that generates some rule - for example to do 
the linking) I can get the type of the file from the extension in the group 
name (".a") and I can get the path from the whole string. I actually pass only 
the real path to file to the function, which internally is converted to proper 
group. Lua parser gives you many possibilities, but because not many people 
use it (noone? (; ) most of the "proper ways of doing something" still wait to 
be discovered (;

Regards,
FCh

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to