Add app to srcs polygerrit_plugin only if needed
Change-Id: I381e4a3d24b1c70f781acda6e3e6803645fd8e88
This commit is contained in:
parent
7b5929068b
commit
d3adb10813
@ -443,7 +443,13 @@ def polygerrit_plugin(name, app, srcs = [], assets = None, **kwargs):
|
||||
"""
|
||||
|
||||
# Combines all .js and .html files into foo_combined.js and foo_combined.html
|
||||
_vulcanize_rule(name = name + "_combined", app = app, srcs = srcs + [app], pkg = PACKAGE_NAME, **kwargs)
|
||||
_vulcanize_rule(
|
||||
name = name + "_combined",
|
||||
app = app,
|
||||
srcs = srcs if app in srcs else srcs + [app],
|
||||
pkg = PACKAGE_NAME,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
closure_js_binary(
|
||||
name = name + "_bin",
|
||||
|
Loading…
Reference in New Issue
Block a user