Buck: Allow to co-exist in tree and standalone plugins
To allow standalone plugins to be built with Bucklets project we need to be able to include the //bucklets/gerrit_plugin.bucklet from both in tree and standalone build. To achieve this create a dummy bucklets/gerrit_plugin.bucklet file in Gerrit tree, as it doesn't suppose to have any effects in tree build. Change-Id: I885199a66cc71a756176f7edaca5f2cf0509e827
This commit is contained in:
parent
21a1f790e7
commit
44d0564a1a
15
bucklets/gerrit_plugin.bucklet
Normal file
15
bucklets/gerrit_plugin.bucklet
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# 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.
|
Loading…
Reference in New Issue
Block a user