diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:51:06 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:51:06 -0800 |
commit | b942affe9f36be114ac01bf3dd50e4ad663a2845 (patch) | |
tree | b66cfd1e3e590a77118877a4754b0b2b703d7f5c /gr-utils/python/modtool/templates.py | |
parent | fdff4ce0e6561270582d7a8363d22cff6ce05b19 (diff) | |
parent | b36fa93e9a3b3f1e5f58842ba813073a8ecde127 (diff) |
Merge branch 'maint'
Diffstat (limited to 'gr-utils/python/modtool/templates.py')
-rw-r--r-- | gr-utils/python/modtool/templates.py | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py index f8957938a6..6b68c21aa7 100644 --- a/gr-utils/python/modtool/templates.py +++ b/gr-utils/python/modtool/templates.py @@ -44,13 +44,34 @@ the Free Software Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA. ''' % datetime.now().year +Templates['grlicense'] = ''' +Copyright %d Free Software Foundation, Inc. + +This file is part of GNU Radio + +GNU Radio is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GNU Radio is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Radio; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, +Boston, MA 02110-1301, USA. +''' % datetime.now().year + # Header file of a sync/decimator/interpolator block Templates['block_impl_h'] = '''/* -*- c++ -*- */ ${str_to_fancyc_comment($license)} \#ifndef INCLUDED_${modname.upper()}_${blockname.upper()}_IMPL_H \#define INCLUDED_${modname.upper()}_${blockname.upper()}_IMPL_H -\#include <${modname}/${blockname}.h> +\#include <${include_dir_prefix}/${blockname}.h> namespace gr { namespace ${modname} { @@ -107,7 +128,7 @@ ${str_to_fancyc_comment($license)} \#include <gnuradio/io_signature.h> #if $blocktype == 'noblock' -\#include <${modname}/${blockname}.h> +\#include <${include_dir_prefix}/${blockname}.h> #else \#include "${blockname}_impl.h" #end if @@ -259,7 +280,7 @@ ${str_to_fancyc_comment($license)} \#ifndef INCLUDED_${modname.upper()}_${blockname.upper()}_H \#define INCLUDED_${modname.upper()}_${blockname.upper()}_H -\#include <${modname}/api.h> +\#include <${include_dir_prefix}/api.h> #if $blocktype != 'noblock' \#include <gnuradio/${grblocktype}.h> #end if @@ -414,10 +435,10 @@ class ${blockname}(${parenttype}): Templates['qa_cpp'] = '''/* -*- c++ -*- */ ${str_to_fancyc_comment($license)} -\#include "qa_${blockname}.h" +\#include <gnuradio/attributes.h> \#include <cppunit/TestAssert.h> - -\#include <$modname/${blockname}.h> +\#include "qa_${blockname}.h" +\#include <${include_dir_prefix}/${blockname}.h> namespace gr { namespace ${modname} { @@ -549,7 +570,7 @@ GR_SWIG_BLOCK_MAGIC($modname, $blockname); #end if %include "${modname}_${blockname}.h" #else -%include "${modname}/${blockname}.h" +%include "${include_dir_prefix}/${blockname}.h" #if $blocktype != 'noblock' GR_SWIG_BLOCK_MAGIC2($modname, $blockname); #end if |