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
diff --git a/bucklets/gerrit_plugin.bucklet b/bucklets/gerrit_plugin.bucklet
new file mode 100644
index 0000000..eb10456
--- /dev/null
+++ b/bucklets/gerrit_plugin.bucklet
@@ -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.