Templates in "gr-howto-write-a-block-0.3"

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

On Tue, Apr 18, 2006 at 05:45:40PM -0400, Achilleas A.
wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs