Fix sources to static_library
Recent changes to GN require only buildable files to be included in
sources. See crbug.com/gn/77 for additional details.
Change-Id: Iee324852c1f4bbd1b0db9d4a352d6ad3c025a74b
diff --git a/proto_library.gni b/proto_library.gni
index 1ede629..3017002 100644
--- a/proto_library.gni
+++ b/proto_library.gni
@@ -345,8 +345,13 @@
"testonly",
"visibility",
])
-
- sources = get_target_outputs(":$action_name")
+ sources = []
+ foreach(source, get_target_outputs(":$action_name")) {
+ extension = get_path_info(source, "extension")
+ if (extension == "h" || extension == "cc" ) {
+ sources += [ source ]
+ }
+ }
if (defined(invoker.extra_configs)) {
configs += invoker.extra_configs