Re: src_suffix getings ignored

Mats Wichmann <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
On 5/21/22 11:46, daggs wrote:
> no,
> 
> after almost a week with no answer (I'm accustomed that Bill answers fart), I went to my mail to see if I sent it right and I noticed his mail was missing, so I thought that is why he didn't answered.
> my apologies.
> 
> Dagg.


I think you need to plumb your builders into the CFile builder's
mechanism, so SCons's internal plumbing knows it's another way to create
a .c file (with a .h as an additional file, which means you need an
emitter as well to inject the .h file.

Look at what the lex tool does - although I may be completely off base
on this.

Snip:

def generate(env):
    """Add Builders and construction variables for lex to an Environment."""
    c_file, cxx_file = SCons.Tool.createCFileBuilders(env)

    # C
    c_file.add_action(".l", LexAction)
    c_file.add_emitter(".l", lexEmitter)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.