* added general settings tests
* fixed pre-219 switchUnlockState (CPN)
* X7 radio settings tests
* updated X10 model
* patched TESTS_PATH to point directly at the complete tests path
* fixed horus general settings switch conversion
* cpn x10 general settings tests
* fixed horus cpn import
* use x10 model from otx file to ease editing with companion
* added make targets "gtests" and "tests"
gtests builds all the tests (radio & companion)
tests builds and executes all the tests (radio & companion)
* fixed companion tests cmake
* fixed gtests-radio target
* fixed commit tests
* fixed converting LS & RS on X10
* fixed converting global functions on X10
* fixed source conversion on X10
* fixed throttle source on X10
* fixed throttle source on radio and companion
* more checks and re-enabled Horus screenData copy
* more tests (X10)
* [X10] restore correct direction for RS & LS
* [horus] convert "Value" widget source
* fixed conversion of ModelHeader::bitmap length
* added missing X10 radio tests to companion tests
* fixed conversion of telemetry sources in logical switches
* [horus] fixed potential crash
* fixed "AND switch" conversion in logical switches
* [Companion] I18N:
* Introduce new Translations class to centralize all related functionality;
* Add ability to search multiple locations for .qm translation binaries (local folders, resources, system paths);
* Add ability to reload translations dynamically w/out application restart;
* Improve support for loading Qt translations (if available);
* [build][i18n] Look for and include pre-built Qt translations with other translation resources; Generate translations.qrc dynamically with rest of build files; Add EN "translation" file (simpler UI string edits and possible abstractions); Rename ZH translation file to be country-specific.
* [build] Centralize finding all the Qt bits into root CMakeLists; Make sure QT_QMAKE_EXECUTABLE is defined; Disable dysfunctional simulator installer script generation.
* Cosmetics (unused includes).
* [Companion] Make language options menu dynamic based on available translations, and always show native language name; Allow changing language of some elements w/out restarting (esp. menus/toolbar buttons); Simplify menus/actions/handlers for themes and icon sizes.
* [build] Better way to generate translations.qrc using input file again (previous method was generating new qrc for each reconfig); Make sure common library is linked to other modules which may need it; Remove unused script.
* [Companion][Simulator] Add custom qDebug message handler/formatter as an option. Keeps support for QT_MESSAGE_PATTERN env. var.
* [Simulator] Show system messages of level qInfo and above in debug console.
* [Simulator] Still capture screenshot to clipboard if path is not accessible (and screenshot results now print to simulator debug console).
* Fix for older CMake.
* [Companion] Do not start debug message handler if app is shutting down, and add null checks before using it; Increase backtrace report depth; Add OTx headers; Add Companion exit status debug; Clean up unused code.
* [Simulator] Add asynchronous FIFO buffer for handling debug output/display more efficiently. (#4488)
(cherry-picked from b12bd7d7be)
* [build][CMake] Use `find_package(Git)` to confirm existence before trying to use git for version stamp; Use friendlier detection of grep executable on Windows; Use "del" on Windows instead of "rm".
* [build][Windows] Include dirent and msinttypes headers in source tree.
* Remove grep dependency for lua exports generation
* Sneaky pythons hiding in code.
* [build] Change `git_id` macro to skip check if no git directory is present, also now fails gracefully; Fix `today` macro on Windows; Report git revision; Make sure QtSvg module is found.
* [TravisCI] Build using avr-gcc 4.9.2 (up from 4.8.2). Relies on https://github.com/opentx/opentx/pull/4169 . Fixes all linker warnings, makes clean build.
* [build] Add ARM/AVR compiler version check/display and a workaround for avr-gcc linker warnings when using WARNINGS_AS_ERRORS=true.
* [TravisCI] Enable -Werror on all build targets (WARNINGS_AS_ERRORS=true).
* [build] CMake script updates:
Enable WARNINGS_AS_ERRORS option for all targets (not just firmware);
Consolidate some C/CXX flag settings for firmware target, avoid duplication/redundancy;
All warning flags are now passed to linker (GCC only);
Add a "build report" for each main target showing compiler, flags, and defines, with verbosity controlled by new VERBOSE_CMAKELISTS option;
Added properties to PCB, TRANSLATIONS, and a few other options (makes option selector lists in cmake-gui);
Add macro for conditionally adding C++11 flag;
Silence CMake >3.0 warnings about CMP0054 policy not being set;
Reverts AVR linker -Werror workaround;
Misc. cleanup/consolidation.
* [build] More CMakeLists updates:
Silence superfluous "CRT_SECURE" series MSVC warnings;
Formalize finding pthread lib/dll on MSVC builds and fix some issues with install target script;
Add property string lists to more options;
Quotes some paths with possible spaces, & other minor cosmetics.
* [build] firmware/bootloader: Remove remaining CMake default compiler flags and add FIRMWARE_C[XX}_FLAGS[_DEBUG] options for user to specify additional flags. Also move ASM language call to silence CMake warning w/MSVC.
* [build] Workaround bogus "uninitialized" warnings from AVR linker.
* [tests] Add custom printer for less verbose gtest output (use --verbose option to revert to gtest default).
* [build] Use less verbose CMake output for TravisCI builds. Formalize search for gtest code and enable gtests target on WIN32-GCC. Minor language fix.
* [Windows][MinGW] Update some WIN32 macro checks in source code to be MSVC-specific (not needed for GCC-based builds).
* [build] CMakeLists updates:
Adjust for Windows MinGW builds: now fully compatible with Qt5.5+ and MinGW-w64 toolchain (included in Qt installs);
Add option to specify path to required libraries/includes (instead of hard-coding `c:\programs`);
Add package check for Python and use found executable name;
Remove custom FindSdl package handler in favor of stock (and improved) CMake one (still works with Windows);
Do not force SIMU_AUDIO and LUA_COMPILER in SIMU builds (leave it up to user);
Add SIMU_LUA_COMPILER option specifically for SIMU builds (default = ON);
* [build][Windows] Rewrite/Fix Windows Companion `install` target, with two options:
a) just copy supporting Qt and c++ DLLs to build folder so programs can be quickly be run from there (this is default and similar to the old behavior);
b) full installation to CMAKE_INSTALL_PREFIX path, including all binaries, supporting DLLs, language files, and OTx utilities.
Option b) can be selected with new WIN_DO_FULL_INSTALL parameter;
Also cleans up the Linux install a bit and consolidates the OS X parts;
* [simulator][Windows] Add option to build Windows simulator with system console/terminal enabled (both standalone and when launched from Companion). Mostly useful for debug as it gives output messages much sooner in the startup process than the current debug console. Also helpful because you don't have to open it manually on every launch, and it remembers last window position and size. Possible candidate for a user-selectable runtime option in the future.
* [Windows] Fix MSVC build issues.
* [build] More build fixes:
Use a customized FindSDL.cmake script again due to bugs and deficiencies in the official version (based on script from CMake v3.7);
Fixes missing SDL DLL error in NSIS installer);
Use string for Timers option (checkbox in GUI is confusing);
Remove an unused variable.
* [simu][Windows] Fix f_getcwd() cutting off too many characters (fixes SD browser interactions).
* [Companion] Add logic to add background and DS_Store. Start with Cpack for OS X
* Major overhaul of the OpenTX packing for OS X
* Update DS_Store to not show toolbar (noticed by @Kilrah, thanks!)
* Minor fixes
* set BU_CHMOD_ITEMS to avoid packaging errors
* Rename the app to a nicer name on OS X (OpenTX Companion 2.2.app instead of companion.app)
* Embed dfu-util into bundle (first part of #3908)
* Fix showing status bar showing in disk image
* Workaround for CMAKE_OSX_DEPLOYMENT_TARGET