discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] templates in "gr-howto-write-a-block-0.3"


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] templates in "gr-howto-write-a-block-0.3"
Date: Tue, 18 Apr 2006 14:53:18 -0700
User-agent: Mutt/1.5.9i

On Tue, Apr 18, 2006 at 05:45:40PM -0400, Achilleas Anastasopoulos wrote:
> 
> I have handwritten a couple of blocks in the howto
> directory and am able to compile/install them.
> 
> I would like to generate versions of these blocks for
> different input/output variable types, thus I have written the
> appropriate template files _XX.i.t, _XX.h.t, _XX.cc.t
> (I followed some examples in core/src/lib/general/)
> 
> 
> My question is how to automate the compile and install step
> to generate the appropriate code from the templates.
> 
> Thanks
> Achilleas

Take a look at gnuradio-core/src/lib/general/Makefile.am to see how we
do it there.

FYI, this is the Makefile rule that runs the code generator:

$(GENERATED_H) $(GENERATED_I) $(GENERATED_CC): $(CODE_GENERATOR)
        PYTHONPATH=$(top_srcdir)/src/python srcdir=$(srcdir) 
$(srcdir)/generate_all.py


All of the $(srcdir) and $(top_srcdir) stuff is required to make this
work when doing VPATH builds.  That is, builds where the source and
objects are in different directories.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]