Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How can I introduce the dependency of another external library in the build file of an external library?

28 views
Skip to first unread message

shuman zhuang

unread,
Jan 9, 2025, 8:11:06 AMJan 9
to bazel-discuss
I am using Bazel to compile the Velox library, which depends on the Folly and Boost libraries. I have defined the BUILD file for Boost as shown below.

企业微信20250109-202910@2x.png
I want to add a dependency on the Boost target in the Folly BUILD file. How should I write this dependency? The content of the BUILD file is as follows:
企业微信20250109-203338@2x.png
Folly and Boost are both external libraries, defined in the WORKSPACE file as follows:
企业微信20250109-203528@2x.png
My system version is CentOS 7, Bazel version is 6.4.0, and GCC version is GCC (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3).My question is how to correctly add a dependency on Boost in the deps of the Folly BUILD file.

heisenberg1993

unread,
Jan 14, 2025, 6:19:11 AMJan 14
to shuman zhuang, bazel-discuss
I saw you specify build_file for folly_archive.
However I didn't see you do so for boost_archive. Is it inside the zip?

shuman zhuang <zsm145...@gmail.com> 于2025年1月9日周四 21:11写道:
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bazel-discuss/8302b8c3-1709-426f-a375-24ca8c9c3663n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages