Ticket #158 (new enhancement)

Opened 10 months ago

Last modified 10 months ago

Allow local variables

Reported by: baxissimo Assigned to: Gregor
Priority: major Milestone:
Component: DSSS Version:
Keywords: Cc:

Description

If there were local variables or simple macros, then dsss files wouldn't have to be so repetitive.

For example if there are two targets that need the same buildflags (and others that need different ones), currently you just have to repeat those buildflags twice.

Similarly if you want to add some flags to all projects (like "-g -debug"), you pretty much have to add it to all of the targets one by one for anything slightly complex where [*] becomes useless. (see http://www.dsource.org/projects/dsss/ticket/112)

Allowing something like this would help reduce repetitive clutter in dsss.conf files:

DEBUG=-g -debug

[prog.d]
buildflags += $DEBUG -I../stuff

Related is the request for incorporating a full-blown scripting language http://www.dsource.org/projects/dsss/ticket/99, which presumably would also allow you to set variables.

But I'm just talking simple text-substitution type variables here. Something that should be much easier to implement.

Change History

(in reply to: ↑ description ) 11/04/07 16:14:36 changed by baxissimo

Replying to baxissimo:

Allowing something like this would help reduce repetitive clutter in dsss.conf files: {{{ DEBUG=-g -debug [prog.d] buildflags += $DEBUG -I../stuff }}}

Obviously you should imagine 3 or 4 other targets after [prog.d] that all have their own specific build flags, thus making a [*] block not an option.