https://github.com/ierturk/bazel-dds
Building and consuming FastDDS by Bazel Build Tools and Bazel Central Registry
https://github.com/ierturk/bazel-dds
bazel bazel-registry dds fastdds vscode wsl
Last synced: about 2 months ago
JSON representation
Building and consuming FastDDS by Bazel Build Tools and Bazel Central Registry
- Host: GitHub
- URL: https://github.com/ierturk/bazel-dds
- Owner: ierturk
- License: bsd-3-clause
- Created: 2025-04-14T16:19:55.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-16T11:36:03.000Z (about 1 year ago)
- Last Synced: 2025-06-24T15:46:06.050Z (12 months ago)
- Topics: bazel, bazel-registry, dds, fastdds, vscode, wsl
- Language: C++
- Homepage: https://erturk.me/
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building and consuming FastDDS by Bazel Build Tools and Bazel Central Registry
## Prerequisites
- Ubuntu WSL
- FastDDSGen V3 tool from eProsima (included in FastDDS installation)
- VS Code
- Bazel Build Tools
- Bazel Central Registry
## Libraries from Bazel Central Registry
- FastDDS
- FastCDR
## Building on Windows
Start a console
```bash
$ $ bazel run //:publisher
INFO: Analyzed target //:publisher (94 packages loaded, 15192 targets configured).
INFO: Found 1 target...
Target //:publisher up-to-date:
bazel-bin/publisher
INFO: Elapsed time: 4.579s, Critical Path: 0.08s
INFO: 1 process: 126 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/publisher
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
Published: Hello from Fast DDS!
```
Start another console
```bash
$ bazel run //:subscriber
INFO: Analyzed target //:subscriber (0 packages loaded, 2 targets configured).
INFO: Found 1 target...
Target //:subscriber up-to-date:
bazel-bin/subscriber
INFO: Elapsed time: 0.330s, Critical Path: 0.02s
INFO: 1 process: 7 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/subscriber
Waiting for data...
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
Received: Hello from Fast DDS!
```
# Clangd Support
To create file `compile_commands.json`
```
# with hedronvision/bazel-compile-commands-extractor
$ bazel run @hedron_compile_commands//:refresh_all
# or kiron1/bazel-compile-commands
$ bazel-compile-commands --bazelopt "--config=debug_target" --bazelopt "--config=opt_deps" --replace=-fno-canonical-system-headers= //...
```
## License
This project is licensed under the BSD 3-Clause License, which permits use, distribution, and modification with proper attribution, while disclaiming liability and warranty. See the [LICENSE](./LICENSE) file for full details.