On Wed, Oct 12, 2011 at 5:26 AM, Peter D. Massam <address@hidden> wrote:
I need to be able to maintain my program for both old and
new systems and I've been looking for a version constant that I can use for
conditional compilation.
You can find the version information in $(top_builddir)/gnuradio-core/gnuradio-core.pc. This is filled in with the information in $(top_srcdir)/version.sh. Where top_builddir is where you are building the project, and top_builddir = top_srcdir if you are building in the same directory that contains the source code.
In addition to compile time, in the >= 3.3 API we added a way to ask this at runtime via the gr.version() call in Python and gr_version() function from C++.
(I know you're not using the 3.3 API yet, but it will be another option for you when you update your application.)
Johnathan
|