Martin Braun
9b0702c546
cmake: Bump dependency versions for UHD 4.0.0.0
...
- Boost >= 1.58
- CMake >= 3.5.1
- gcc >= 5.4.0
- Clang >= 3.8, AppleClang >= 600
- Python >= 3.5 (Py2k no longer supported)
- Numpy >= 1.11
- C++14 for lib, include may now use C++11 constructs.
- Because there is no more code requiring C++03 syntax, we remove the
include-specific clang-format file
2019-11-26 11:49:08 -08:00
Ciro Nishiguchi
60a70f7142
examples: remove thread priority elevation
...
Remove UHD call to elevate thread priority to realtime. Setting all
threads to the same realtime priority can cause the threads to not share
access to the network interface fairly, which adversely affects
operation of the worker threads in UHD.
2019-10-22 16:18:46 -07:00
Michael Dickens
f520573c3d
cmake: Use new UHDBoost.cmake in init_usrp and tools
...
Modifies the CMake for the following utilities:
- init_usrp (example)
- kitchen_sink
- nirio_programmer
2019-10-15 11:44:38 -07:00
Brent Stapleton
431deb855b
uhd: mpm: update all license header w/ "-or-later"
...
Updating all SPDX license identifiers to include "-or-later"
2019-03-08 00:43:07 +01:00
Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
Applying formatting changes to all .cpp and .hpp files in the following
directories:
```
find host/examples/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/tests/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/utils/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find mpm/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Also formatted host/include/, except Cpp03 was used as a the language
standard instead of Cpp11.
```
sed -i 's/ Cpp11/ Cpp03/g' .clang-format
find host/include/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Formatting style was designated by the .clang-format file.
2019-01-16 11:40:23 -08:00
Martin Braun
a69ab0c23a
cmake: Update coding style to use lowercase commands
...
Also updates our coding style file.
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code (with GNU compliant sed):
cmake --help-command-list | grep -v "cmake version" | while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done > convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \
'*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed
(Make sure the backslashes don't get mangled!)
2018-11-14 14:10:09 -08:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Andrej Rode
c33928d2bb
utils: add set_thread_name API call, move thread_priority to thread
2017-06-29 13:43:05 -07:00
Andrej Rode
f3a004faf7
init_usrp: add c++11 flags to compiler if available
2017-02-10 16:44:12 -08:00
Nicolas Cuervo
b448bb331a
cmake: Fix compatibility with new versioning scheme
...
- Fixes init_usrp
2016-08-01 18:39:54 -07:00
Martin Braun
4d0dadb3cc
examples: Updated init_usrp example on note about CMake flags
2015-06-09 15:08:21 -07:00
Martin Braun
ad1ef1b645
cmake: Added ENABLE_STATIC_LIBS option
...
- Allows building static libraries
- For users calling find_package(UHD), provides extra options
for building apps statically linking UHD.
- Updated the init_usrp example to link UHD statically.
2015-01-19 09:07:16 +01:00
Martin Braun
12e86cc384
examples: Fixed init_usrp for building with MSVC
2015-01-12 15:23:13 +01:00
Martin Braun
9cbb92aced
examples: Also bumped min Boost version in init_usrp example
2014-10-25 18:59:44 +02:00
Martin Braun
a1767ede3c
uhd: Added an example for CMake usage
2014-09-25 16:01:05 -07:00