forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
extensions_build_system.bzl
41 lines (33 loc) · 1.15 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
load("//bazel:envoy_build_system.bzl", "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)