Bazel: implement "depend-on-what-you-include" semantics.

Add direct dependencies on targets exporting included headers
in order to remove all transitive dependencies.

Change-Id: I993a58ffbdc1c1e9ea8dafd96a609464bc469a5e
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Reviewed-on: https://nginx-review.googlesource.com/1076
Reviewed-by: Martin Maly <mmaly@google.com>
diff --git a/BUILD b/BUILD
index 2cf1f69..c391771 100644
--- a/BUILD
+++ b/BUILD
@@ -1,4 +1,4 @@
-# Copyright (C) 2015 Google Inc.
+# Copyright (C) 2015-2016 Google Inc.
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -50,6 +50,7 @@
     ],
     deps = [
         "//external:brotli_enc",
+        "//nginx:core",
         "//nginx:http",
     ],
 )
@@ -66,6 +67,7 @@
         "//visibility:public",
     ],
     deps = [
+        "//nginx:core",
         "//nginx:http",
     ],
 )
@@ -78,5 +80,6 @@
     deps = [
         ":http_brotli_filter",
         ":http_brotli_static",
+        "//nginx:core",
     ],
 )