Index: ipc/BUILD.gn |
diff --git a/ipc/BUILD.gn b/ipc/BUILD.gn |
index dcc392e5df5ef8b3286a1f6ac47bbecc5c145f1c..d05cc79c89b8a05bba5375f8a28df6c0275de8fa 100644 |
--- a/ipc/BUILD.gn |
+++ b/ipc/BUILD.gn |
@@ -67,7 +67,6 @@ component("ipc") { |
"ipc_message_start.h", |
"ipc_message_utils.cc", |
"ipc_message_utils.h", |
- "ipc_param_traits.h", |
"ipc_platform_file.cc", |
"ipc_platform_file.h", |
"ipc_platform_file_attachment_posix.cc", |
@@ -120,6 +119,9 @@ component("ipc") { |
defines = [ "IPC_IMPLEMENTATION" ] |
+ public_deps = [ |
+ ":param_traits", |
+ ] |
deps = [ |
"//base", |
@@ -134,6 +136,14 @@ component("ipc") { |
} |
} |
+# This is provided as a separate target so other targets can provide param |
+# traits implementations without necessarily linking to all of IPC. |
+source_set("param_traits") { |
+ public = [ |
+ "ipc_param_traits.h", |
+ ] |
+} |
+ |
group("ipc_tests_run") { |
testonly = true |
deps = [ |
@@ -239,8 +249,10 @@ source_set("test_support") { |
"test_util_mac.cc", |
"test_util_mac.h", |
] |
- deps = [ |
+ public_deps = [ |
":ipc", |
+ ] |
+ deps = [ |
"//base", |
"//base/test:test_support", |
"//testing/gtest", |