gerrit_plugin: Allow to co-exist in tree and standalone plugins

Expose variable for plugin API that can be used from plugin build. The
path to plugin API artifacts is different between in tree and standalone
mode. To support the build that works for both mode, the plugin API vars
can be used to reference the plugin API. That way this works for both
modes: in gerrit tree and standalone.

Change-Id: Ia6cf1bad769f339be815b81ab528c8ca774e2f85
This commit is contained in:
David Ostrovsky 2014-07-19 23:03:48 +02:00 committed by Adrian Görler
parent 1d613e231d
commit c563e98d9b

View File

@ -13,3 +13,6 @@
#
# When compiling from standalone cookbook-plugin, bucklets directory points
# to cloned bucklets library that includes real gerrit_plugin.bucklet code.
GERRIT_PLUGIN_API = ['//gerrit-plugin-api:lib']
GERRIT_GWT_API = ['//gerrit-plugin-gwtui/gerrit:gwtui-api']