Make deps transitive in windows_dll_library
If cc_binary A depends on windows_dll_library B, which depends on windows_dll_library C. A should transitively depends on windows_dll_library C.
Closes
@@ -19,6 +19,7 @@ load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_import", "cc_library")
def windows_dll_library(
name,
srcs = [],
+ deps = [],
hdrs = [],
visibility = None,
**kwargs):
@@ -31,6 +32,7 @@ def windows_dll_library(
cc_binary(
name = dll_name,
srcs = srcs + hdrs,
+ deps = deps,
linkshared = 1,
**kwargs
)
@@ -55,7 +57,7 @@ def windows_dll_library(
name = name,
hdrs = hdrs,
visibility = visibility,
- deps = [
+ deps = deps + [
":" + import_target_name,
],
)
