diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-10-07 13:30:35 -0700 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-10-22 19:06:55 +0200 |
commit | 9449236cf7bf48f40b696edce68d81410d713489 (patch) | |
tree | 56052674fea45cb83a1291e6886a8154c97d1b15 /gr-utils/python/modtool/modtool_base.py | |
parent | ea0ee503a144aaf07a684a2dfaac58c89dbdb78d (diff) |
modtool: OOTs use Boost.UTF, CMake 3.8-Aware
- This is the same change that happened for the GNU Radio core
- New OOTs will now have Boost.UTF-based unit tests
- modtool will be able to handle both CppUnit-based OOTs as well as
Boost.UTF-based ones; this change is backward-compatible
Diffstat (limited to 'gr-utils/python/modtool/modtool_base.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/modtool_base.py b/gr-utils/python/modtool/modtool_base.py index 4263e498f7..41d83ccafb 100644 --- a/gr-utils/python/modtool/modtool_base.py +++ b/gr-utils/python/modtool/modtool_base.py @@ -1,5 +1,5 @@ # -# Copyright 2013 Free Software Foundation, Inc. +# Copyright 2013,2018 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -105,6 +105,8 @@ class ModTool(object): os.path.isdir(os.path.join('include', 'gnuradio', self._info['modname'])) ): self._info['version'] = '37' + if not os.path.isfile(os.path.join('cmake', 'Modules', 'FindCppUnit.cmake')): + self._info['version'] = '38' if options.skip_lib or not self._has_subdirs['lib']: self._skip_subdirs['lib'] = True if options.skip_python or not self._has_subdirs['python']: @@ -133,7 +135,7 @@ class ModTool(object): self._file['cmpython'] = os.path.join(self._info['pydir'], 'CMakeLists.txt') if self._info['is_component']: self._info['includedir'] = os.path.join('include', 'gnuradio', self._info['modname']) - elif self._info['version'] == '37': + elif self._info['version'] in ('37', '38'): self._info['includedir'] = os.path.join('include', self._info['modname']) else: self._info['includedir'] = 'include' |