Conan: [question] is it possible to implement generator that generates more than one file

Created on 9 Jan 2018  路  3Comments  路  Source: conan-io/conan

As far as I am concerned, generator contains two property methods that needs to be implemented.

@property
def filename(self):

@property
def content(self):

How can I generate more than one file?

question

All 3 comments

Yes, you have to return None in the filename method, then return a dict {filename: filecontent} in the content() method.

Likely the interface is not the best one, but did this way for backwards compatibility.

Please consider closing the issue if the answer was valid and it is working fine. Thanks!

Works like a charm, thanks!

Was this page helpful?
0 / 5 - 0 ratings