forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extensions_build_system.bzl
59 lines (47 loc) · 1.58 KB
/
extensions_build_system.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
load("//bazel:envoy_build_system.bzl", "envoy_benchmark_test", "envoy_cc_benchmark_binary", "envoy_cc_mock", "envoy_cc_test", "envoy_cc_test_binary", "envoy_cc_test_library")
load("@envoy_build_config//:extensions_build_config.bzl", "EXTENSIONS")
# All extension tests should use this version of envoy_cc_test(). It allows compiling out
# tests for extensions that the user does not wish to include in their build.
# @param extension_name should match an extension listed in EXTENSIONS.
def envoy_extension_cc_test(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_cc_test(name, **kwargs)
def envoy_extension_cc_test_library(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_cc_test_library(name, **kwargs)
def envoy_extension_cc_mock(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_cc_mock(name, **kwargs)
def envoy_extension_cc_test_binary(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_cc_test_binary(name, **kwargs)
def envoy_extension_cc_benchmark_binary(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_cc_benchmark_binary(name, **kwargs)
def envoy_extension_benchmark_test(
name,
extension_name,
**kwargs):
if not extension_name in EXTENSIONS:
return
envoy_benchmark_test(name, **kwargs)