Now TODO is the most important thing in this repo
Install conan, cmake and ninja and dependencies from apt
tools/dev-init.sh
Configure, build and run test using CMake
build.sh
Usage:
build.sh -m <mode> -q <path>
build.sh -h
- h - show help
- m - build is
releaseordebug - q - absolut to Qt directory. Have to contain /bin/qmake
Reformat C++ and QML code
tools/reformat.sh
Works with CMake option -DSLOTH_TEST_REPORT=ON
Prints coverage report to stdout
tools/test.sh
After the script has done you can find reports in build-static-analysis/report_* directories
tools/static_analysis.sh
Works with CMake option -DSLOTH_PROFILING=ON. Default enabled in debug mode.
Make build/bin/profile-<datetime>.svg file as result.
tools/profile.sh ./app
For testing purposes to deploy on clean environment .deb package very useful
tools/package.sh
To run the package:
sudo apt remove app
sudo apt install app-<version>-<commit>.deb
cd /opt/lonely_sloth/app
sudo sh ./run.sh