gerrit/bucklets/gerrit_plugin.bucklet
David Ostrovsky 6f083b8942 Rename __standalone_mode__ to STANDALONE_MODE
The fix for [1] prevents from importing python variables __foo__,
as explained in [2]. Rename standalone mode flag correspondingly.

[1] https://github.com/facebook/buck/issues/182
[2] https://github.com/facebook/buck/issues/221

Change-Id: If8682278e7c91df3fc18b3d623eb43950e839448
2014-11-24 08:44:12 +00:00

21 lines
665 B
Plaintext

#
# Dummy to make the co-existence of core and standalone plugins possible.
# Intentionaly left empty as this doesn't suppose to have any side effects
# in tree build, i. e.:
#
# cookbook-plugin/BUCK include this line:
# include_defs('//bucklets/gerrit_plugin.bucklet')
#
# When executing from the Gerrit tree:
# buck build plugins/cookbook-plugin
#
# this line has no effect.
#
# 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']
STANDALONE_MODE = False