EmbeddedLib is a modular C/C++ library designed for embedded software projects. It provides reusable components, build/test automation with CMake, and packaging via Conan. The repository supports both development and production builds, integrates with JFrog Artifactory for package management, and includes documentation generation tools. This project aims to streamline embedded development workflows and promote code reuse across projects.
- run docker
- run dev container in vs code
- build project
mkdir build && cd build
- test build:
cmake -DTARGET_GROUP=test ..
cmake --build .
ctest
- production build:
cmake -DTARGET_GROUP=production ..
cmake --build .
conan remote add emilcode-conan https://emilcodedev.jfrog.io/artifactory/api/conan/emilcode-conan
conan remote login -p <jfrog-artifactory-token> emilcode-conan <username/email>
Upload a Conan (Conan 2) recipe and its binary packages using the following command:
conan upload "*" --remote=emilcode-conan --confirm
is the Conan recipe reference you want to upload in the format: /@/ For example: lib/1.0@conan/stable
conan profile detect --name=profile_build_detected
conan install . --build missing --profile:build=profile_build_detected --profile:host=profile_build_detected
source build/Release/generators/conanbuild.sh
cmake --preset=conan-release
cmake --build --preset=conan-release
Unity is used in this project as unittesting framework.
mkdir build && cd build
cmake -DTARGET_GROUP=test ..
cmake --build .
ctest
cd doc
doxygen Doxyfile
sphinx-build ./source ./build
- Extend READMe.md
- Publish package to another remote after jfrog trial has expired