Skip to content

Generators: support multiple inputs #6064

Open
@gerion0

Description

@gerion0

It seems not to be possible to define a generator with multiple input files (at least meson complains that only string not list is supported). However, it would be helpful if generators would support that.

My current use case for this is a call to a custom linker, that obviously take a lot of inputs and link them to one file.

In pseudo code:

gen = generator(myprog,
                output  : '@[email protected]',
                arguments : ['@INPUT@', '-o', '@OUTPUT@'])
gen_src = gen.process([['in1.o', 'in2.o', 'in3.o'], ['inA.o', 'inB.o'])

Note the BASENAME0 to indicate the basename of the first input in the list should be used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions