...
Include the Bazel integration code from C/C++test. To do this, add the following to the project BUILD file:
Code Block load("@cpptest//:integration/bazel/cpptest.bzl", "cpptest_generate_bdf")
Create a list of targets which will be part of the BDF:
Code Block targets = [ "hello-world" ]
Register the targets with a new BDF generation rule by adding the following rule declaration after targets:
Code Block cpptest_generate_bdf( name = "make_bdf", deps = targets, )
The cpptest_generate_bdf rule has now been registered in the BUILD file.
- Save the BUILD file.
...