Additional bazel build files for apps

Change-Id: If3f31139022b5657e4a7b8a33871e4eba0da286e
diff --git a/apps/ofagent/BUILD b/apps/ofagent/BUILD
new file mode 100644
index 0000000..2cf8f09
--- /dev/null
+++ b/apps/ofagent/BUILD
@@ -0,0 +1,43 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + JACKSON + KRYO + CLI + REST + [
+    "@netty_transport//jar",
+    "@netty_codec//jar",
+    "@netty_handler//jar",
+    "@openflowj//jar",
+    "//core/store/serializers:onos-core-serializers",
+    "//core/common:onos-core-common",
+    "//incubator/api:onos-incubator-api",
+    "//providers/openflow/flow:onos-providers-openflow-flow",
+    "//protocols/openflow/api:onos-protocols-openflow-api",
+]
+
+BUNDLES = [
+    "//apps/ofagent:onos-apps-ofagent",
+    "//providers/openflow/flow:onos-providers-openflow-flow",
+    "//protocols/openflow/api:onos-protocols-openflow-api",
+]
+
+TEST_DEPS = TEST_ADAPTERS + TEST_REST + [
+    "@jersey_server//jar",
+    "@minimal_json//jar",
+    "//core/api:onos-api-tests",
+    "//core/common:onos-core-common-tests",
+    "//web/api:onos-rest-tests",
+]
+
+osgi_jar_with_tests(
+    api_description = "REST API for OFAgent",
+    api_package = "org.onosproject.ofagent.rest",
+    api_title = "OFAgent API",
+    api_version = "1.0",
+    test_deps = TEST_DEPS,
+    web_context = "/onos/ofagent",
+    deps = COMPILE_DEPS,
+)
+
+onos_app(
+    category = "Traffic Engineering",
+    description = "OpenFlow agent application for virtualization subsystem.",
+    included_bundles = BUNDLES,
+    title = "OpenFlow Agent",
+    url = "http://onosproject.org",
+)