-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel: additional build targets and tests (#415). #617
Conversation
This takes us to ~65% of targets. I've switched to machine generating the BUILD files based on header analysis, the Envoy file naming conventions and a hardcoded list of exceptions. The remaining targets should be much faster.
@lizan @PiotrSikora for review. |
test/mocks/BUILD.wip
Outdated
@@ -4,6 +4,7 @@ load("//bazel:envoy_build_system.bzl", "envoy_cc_library") | |||
|
|||
envoy_cc_library( | |||
name = "common_lib", | |||
testonly = 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to use envoy_cc_library
with testonly = 1
here instead of envoy_cc_test_library
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote that rule before I added envoy_cc_test_library :) Fixed.
bazel/envoy_build_system.bzl
Outdated
@@ -29,6 +29,7 @@ def envoy_include_prefix(path): | |||
|
|||
# Envoy C++ library targets should be specified with this function. | |||
def envoy_cc_library(name, | |||
testonly = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this option is never used.
* Creating a Makefile for global build * Remove unecessary env and calls * Update date on license * Fix Jenkinsfile
This takes us to ~65% of targets. I've switched to machine generating the BUILD files based on
header analysis, the Envoy file naming conventions and a hardcoded list of exceptions. The remaining
targets should be much faster.