Add Bazel build support for simple_switch_grpc#1359
Open
koustubh-v wants to merge 7 commits intop4lang:mainfrom
Open
Add Bazel build support for simple_switch_grpc#1359koustubh-v wants to merge 7 commits intop4lang:mainfrom
koustubh-v wants to merge 7 commits intop4lang:mainfrom
Conversation
81d2232 to
eac2772
Compare
Author
|
Hi @matthewtlam, Kindly Review this PR! |
This introduces canonical Bazel build rules (MODULE.bazel, cc_library, cc_grpc_library, cc_test) to simple_switch_grpc and its dependencies, providing an alternative to the existing CMake workflow. Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
…oto by unifying codegen and system linking Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
538e8dc to
4be250b
Compare
Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
8ea79ef to
151d01c
Compare
…witch abort Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
017bdc2 to
1a04b08
Compare
…I execution Signed-off-by: Koustubh Verma <hp.koustubh@gmail.com>
Author
|
Sorry for too many commits! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds initial Bazel build support for simple_switch_grpc as an alternative to the existing CMake-based workflow.
While working on this, I explored the current build system's structure and gradually mapped the required components into Bazel. This includes setting up MODULE.bazel, defining cc_library and cc_binary targets, and wiring core dependencies such as gRPC, protobuf, and spdlog.
The main goal here was to get a working end-to-end Bazel build for simple_switch_grpc. During the process, I also addressed multiple build issues, including missing headers and dependency linking, to ensure the target compiles successfully.
This is a first step toward enabling a cleaner, more modern Bazel-based workflow for BMv2, and I’d really appreciate any feedback or suggestions to improve the structure or dependency handling.