drowe67 / freedv-gui

GUI Application for FreeDV – open source digital voice for HF radio
https://freedv.org/
GNU Lesser General Public License v2.1
193 stars 49 forks source link

Add CMake and code logic to allow compilation without LPCNet. #711

Closed tmiw closed 5 months ago

tmiw commented 5 months ago

This PR adds logic to CMake and the main codebase to permit compilation without LPCNet by doing the following:

  1. Introducing a new LPCNET_DISABLE environment variable for the build_*.sh build scripts. By default, this is set to 0, but when set to 1 will build freedv-gui without LPCNet.
  2. Introducing a BOOTSTRAP_LPCNET CMake variable. This is intended for use when having CMake compile Codec2 for you (versus using the build scripts).
  3. Forcing the "2020 enable" flag to false when LPCNet isn't compiled in, ensuring that the 2020 modes can't be selected by the user.
  4. Fixing minor compiler failures when not using LPCNet.

This effort is being undertaken in preparation for a potential future deprecation of LPCNet and the 2020 modes (date TBD).