bazel: pass down **kwargs for some bzl macros.
Change-Id: If136681cc5605d4c945c06c5f01f410d9a98e016
This commit is contained in:
parent
ad41241815
commit
b00302e0ce
@ -11,7 +11,8 @@ def acceptance_tests(
|
||||
flaky = 0,
|
||||
deps = [],
|
||||
labels = [],
|
||||
vm_args = ['-Xmx256m']):
|
||||
vm_args = ['-Xmx256m'],
|
||||
**kwargs):
|
||||
junit_tests(
|
||||
name = group,
|
||||
srcs = srcs,
|
||||
@ -24,4 +25,5 @@ def acceptance_tests(
|
||||
'slow',
|
||||
],
|
||||
jvm_flags = vm_args,
|
||||
**kwargs
|
||||
)
|
||||
|
@ -18,7 +18,7 @@ def prolog_cafe_library(
|
||||
name,
|
||||
srcs,
|
||||
deps = [],
|
||||
visibility = []):
|
||||
**kwargs):
|
||||
genrule2(
|
||||
name = name + '__pl2j',
|
||||
cmd = '$(location //lib/prolog:compiler_bin) ' +
|
||||
@ -32,5 +32,5 @@ def prolog_cafe_library(
|
||||
name = name,
|
||||
srcs = [':' + name + '__pl2j'],
|
||||
deps = ['//lib/prolog:runtime'] + deps,
|
||||
visibility = visibility,
|
||||
**kwargs
|
||||
)
|
||||
|
@ -124,7 +124,7 @@ _pkg_war = rule(
|
||||
outputs = {'war' : '%{name}.war'},
|
||||
)
|
||||
|
||||
def pkg_war(name, ui = 'ui_optdbg', context = []):
|
||||
def pkg_war(name, ui = 'ui_optdbg', context = [], **kwargs):
|
||||
ui_deps = []
|
||||
if ui:
|
||||
ui_deps.append('//gerrit-gwtui:%s' % ui)
|
||||
@ -136,4 +136,5 @@ def pkg_war(name, ui = 'ui_optdbg', context = []):
|
||||
'//gerrit-main:main_bin_deploy.jar',
|
||||
'//gerrit-war:webapp_assets',
|
||||
],
|
||||
**kwargs
|
||||
)
|
||||
|
@ -4,7 +4,8 @@ def gerrit_plugin(
|
||||
deps = [],
|
||||
srcs = [],
|
||||
resources = [],
|
||||
manifest_entries = []):
|
||||
manifest_entries = [],
|
||||
**kwargs):
|
||||
# TODO(davido): Fix stamping: run git describe in plugin directory
|
||||
# https://github.com/bazelbuild/bazel/issues/1758
|
||||
manifest_lines = [
|
||||
@ -31,4 +32,5 @@ def gerrit_plugin(
|
||||
':%s__plugin' % name,
|
||||
],
|
||||
visibility = ['//visibility:public'],
|
||||
**kwargs
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user