Skip to content

eclipse-score/baselibs

Repository files navigation

Base Libraries

Foundational C++ libraries providing common functionality for S-CORE modules, from QM to ASIL-B integrity levels.

Documentation

Using Base Libraries

To depend on score_baselibs in your Bazel module, add the following to your MODULE.bazel file:

bazel_dep(name="score_baselibs", version="x.x.x")

Replace x.x.x with a version from the S-CORE Bazel Registry, where all available releases are listed.

Using Unreleased Versions

To depend on an unreleased version (e.g., for testing or development), you can use a non-registry override in your MODULE.bazel file, for example git_override:

git_override(
    module_name = "score_baselibs",
    commit = "de5bb275ee9957433b3587582ac07d3eeb98dd6a",
    remote = "https://github.com/eclipse-score/baselibs.git",
)

Replace the commit value with the specific git hash you want to use. This override allows you to depend on any commit from the repository, bypassing the registry resolution.

Contributing

Prerequisites

To set up your development environment, follow the official S-CORE Development Environment Guide. Key requirements include:

DevContainer Setup (Optional)

This repository offers a DevContainer.

For setup instructions and enabling code completion, see eclipse-score/devcontainer/README.md#inside-the-container.

Note

If you are using Docker on Windows without WSL2 in between, you have to select the alternative container eclipse-s-core-docker-on-windows.

Building the Module

First, clone the repository:

git clone [email protected]:eclipse-score/baselibs.git
cd baselibs

Building for x86_64 Linux

# Build all targets
bazel build --config=bl-x86_64-linux //...

# Run all tests
bazel test --config=bl-x86_64-linux //...

Building for x86_64 QNX 8.0 SDP

# Build all targets
bazel build --credential_helper="*.qnx.com=$(pwd)/.git/tools/qnx_credential_helper.py" --config=bl-x86_64-qnx //...

Support and Community

About

base libraries including common functionality

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages