diff --git a/BUILD.bazel b/BUILD.bazel index 0ca3f7a..9ce6d04 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -108,13 +108,6 @@ cmake( name = "cli-cpp", generate_crosstool_file = False, - # Qpid Cpp has absolute paths in QpidConfig.cmake, can't use that - # Let's disable sandbox instead, and we'd need to fix in Qpid Cpp - #env = { - # "LDFLAGS": "-L$$EXT_BUILD_DEPS/qpid-cpp/lib64" - #}, - tags = ["no-sandbox"], - cache_entries = { "CMAKE_CXX_COMPILER": "g++", diff --git a/BUILD.md b/BUILD.md index d3577af..b5b97cb 100644 --- a/BUILD.md +++ b/BUILD.md @@ -54,6 +54,19 @@ Get more output with `--verbose_failures` flag. Disable sandbox with `--spawn_strategy=standalone` flag, use values of `processwrapper-sandbox`, `linux-sandbox`, ... +Run `bazel sync` to redownload external dependencies (we reference `main` branches in `WORKSPACE`). + +##### Overriding repos +Replace qpid-cpp external repo with (modified) local checkout `--override_repository=qpid-cpp=/home/jdanek/repos/qpid/qpid-cpp`. + +In the directory, create empty `WORKSPACE` file and a `BUILD.bazel` file containing the following `filegroup` def + +```python +filegroup(name = "all", srcs = glob(["**/*"]), visibility = ["//visibility:public"]) +``` + +See for additional discussion. + ### CMake build If you want to use the dependencies built by Bazel in your CMake build, do this.