Porting cfgdef generation into a simple and stand-alone command-line utility.

Change-Id: I1c5731cb15635232e4c7a55a8373b9ee6b282c06
diff --git a/tools/build/cfgdef/BUILD b/tools/build/cfgdef/BUILD
new file mode 100644
index 0000000..8098840
--- /dev/null
+++ b/tools/build/cfgdef/BUILD
@@ -0,0 +1,14 @@
+CFGDEF_EXECUTABLE = "cfgdef_generator"
+
+COMPILE_DEPS = JACKSON + [
+    "@com_google_guava_guava//jar",
+    "@qdox//jar",
+]
+
+java_binary(
+    name = CFGDEF_EXECUTABLE,
+    srcs = glob(["src/main/java/org/onosproject/cfgdef/CfgDefGenerator.java"]),
+    main_class = "org.onosproject.cfgdef.CfgDefGenerator",
+    visibility = ["//visibility:public"],
+    deps = COMPILE_DEPS,
+)