Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc how to using iceoryx as 3rdparty dependency #2246

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/website/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,30 @@ To avoid undefined behavior of iceoryx posh it is recommended to terminate RouDi
processes with SIGINT or SIGTERM. In RouDi, we have integrated a sighandler that catches the signals and gives RouDi
the chance to exit and clean-up everything. This also applies for processes. Therefore, we recommend adding a signalhandler
to your process (see [this example](../../iceoryx_examples/icedelivery/iox_publisher_untyped.cpp)).

## How to use iceoryx as external dependency with bazel

Define iceoryx repository information in your [WORKSPACE](https://bazel.build/concepts/build-ref#workspace)
then calling bazel macro from [load_repositories.bzl](https://github.com/eclipse-iceoryx/iceoryx/blob/master/bazel/load_repositories.bzl)
and [setup_repositories.bzl](https://github.com/eclipse-iceoryx/iceoryx/blob/master/bazel/setup_repositories.bzl) for loading transitive dependencies.

```
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

IOX_COMMIT = "....."

http_archive(
name = "eclipse_iceoryx",
sha256 = <sha256 sum of z>,
strip_prefix = "iceoryx-" + IOX_COMMIT,
url = "https://github.com/eclipse-iceoryx/iceoryx/archive/" + IOX_COMMIT + ".zip",
)

# load iceoryx transitive dependencies

load("@eclipse_iceoryx//bazel:load_repositories.bzl", "load_repositories")
load("@eclipse_iceoryx//bazel:setup_repositories.bzl", "setup_repositories")
load_repositories()
setup_repositories()

```
Loading