[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-discuss
Subject: [Discuss-gnuradio] gr-modtool and SWIG file line order
From: "Martin Braun (CEL)" <martin.braun () kit ! edu>
Date: 2013-02-26 10:09:35
Message-ID: 20130226100934.GE20747 () int ! uni-karlsruhe ! de
[Download RAW message or body]
This seems to have been confusing everyone,
so here's the answer:
== >= 3.7 ==
In the 3.7-style module structure (which uses the include/MODULENAME/
directory and omits the module prefix from the file names), the correct
order is:
%include "..."
GR_SWIG_BLOCK_MAGIC2(...)
This format is automatically chosen for new modules. We generally
recommend this format.
== Older Format ==
In the pre-3.7 format (without the impl-files, and with the *.h in
include/), the correct order is:
GR_SWIG_BLOCK_MAGIC(...)
%include "..."
A major difference between the way modtool handles swigging in this style
modules is that no *.i files are generated, but rather the *.h files are
included. If this doesn't work, you'll have to generate the *.i file by
hand.
If you're using a current version of modtool, this *should all work
automatically*.
MB
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic