Skip to content

xakod/coma

 
 

Repository files navigation

Codacy Badge

OS Status Download
Windows x64 Download
Windows x86 Download
Linux (Debian 10) x64 Download
Linux (Debian 10) armv7 Download

Requires

C++ language feature support you can check here

MSVC - https://docs.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance?view=msvc-160

Others - https://en.cppreference.com/w/cpp/compiler_support

  • boost/header_only - conan
  • LimeReport - submodule
  • QXlsx - submodule
  • hidapi - conan if Windows, system package if Linux
  • ctti - inside project tree because project was abandoned
  • qcustomplot - inside project tree
  • protobuf - conan
  • zeromq - conan

Build

How to initialize conan, just run command in repository root folder

$ mkdir build && cd build
$ cmake [<options>] ../src 

supported options:

  • cmake

    • CMAKE_TOOLCHAIN_FILE - custom toolchain file if needed
    • CMAKE_BUILD_TYPE - build type of course
    • CMAKE_INSTALL_PREFIX=install_prefix - prefix for cmake --build --target install
    • CMAKE_PREFIX_PATH:STRING=path_to_qt - path to Qt location, for example C:\Qt\5.15.2\msvc2019
  • git

    • COMMIT_COUNT - output of command git rev-list --count HEAD, neccessary if you don't have git in PATH or you don't have git locally
    • SHORT_HASH - output of command git rev-parse --short"="8 HEAD, neccessary if you don't have git in PATH or you don't have git locally
  • cpack

    • CPACK_PACKAGING_INSTALL_PREFIX=/usr/local - prefix for installed files (now ony for deb packages)
  • conan

    • CONAN_EXEC=path_to_conan - neccessary if conan is not in PATH
    • USER_DIRECTORY=user_directory - neccessary if you want to use non default conan directory, provide path contains .conan folder
  • other

    • A x64/Win32 - used to change target arch only with Visual Studio cmake generator, ninja uses only provided compilers
    • BUILD_WITH_ALISE:BOOL=ON (off by default) - do u wanna build Alise? Use only if you know her.
    • ENABLE_EMULATOR:BOOL=ON (off by default) - coma'll be built with dummy interface, it can be used without real device $ cmake --build . [<options>]

supported options for multi-config generators:

  • config Release/Debug

$ cmake --install . [<options>]

supported options for multi-config generators same as for build step

Supported architectures

x86 x86_64 armv7
core + + +
gui + + -
avtuk + + only CCU

Non gui parts can be compiled for x86 (i386, win32), x86_64 (amd64, win64), armv7(armv7a, armhf)

How to provide cmake options in QtCreator

For example, if you want to provide path to conan executable CONAN_EXEC , you need to append -DCONAN_EXEC=path_to_conan to cmake configure command (look at image).

example

About

COMplex for Avtuk

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 96.6%
  • CMake 2.7%
  • Inno Setup 0.6%
  • C 0.1%
  • XSLT 0.0%
  • Shell 0.0%