Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: templates/BUILD.gn.template

Issue 2214453002: Update BUILD.gn template (Closed) Base URL: https://chromium.googlesource.com/external/github.com/grpc/grpc@2016-07-27
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« BUILD.gn ('K') | « BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/BUILD.gn.template
diff --git a/templates/BUILD.gn.template b/templates/BUILD.gn.template
index 46865d2617805637636726e896cf7794f52cfcc5..0e886f7631c3aa1f2119cc154db0245830fa3b69 100644
--- a/templates/BUILD.gn.template
+++ b/templates/BUILD.gn.template
@@ -36,7 +36,7 @@
name = target_dict.get("name", None)
if name in ("grpc++_unsecure", "grpc++", "grpc++_codegen_lib"):
deps.append("//third_party/protobuf:protobuf_lite")
- elif name == "grpc":
+ elif name in ("grpc", "grpc_unsecure"):
deps.append("//third_party/zlib")
for d in target_dict.get("deps", []):
@@ -47,12 +47,15 @@
return deps
def get_extra_configs(target_dict):
- if target_dict.get("name", "") in ("grpc++", "grpc++_unsecure"):
- return [":grpc_no_cxx11_threads"]
if target_dict.get("name", "") == "grpc_cpp_plugin":
return ["//third_party/protobuf:protobuf_config"]
return []
+ def get_extra_public_configs(target_dict):
+ if target_dict.get("name", "") in ("grpc++", "grpc++_unsecure"):
+ return [":grpc_no_cxx11_threads"]
+ return []
+
def uses_nanopb_or_protofull(f):
return (f.startswith("third_party/nanopb")
or f.endswith(".pb.h")
@@ -114,7 +117,12 @@
"${config}",
% endfor
]
- public_configs = [ ":grpc_config" ]
+ public_configs = [
+ ":grpc_config",
+ % for config in get_extra_public_configs(lib):
+ "${config}",
+ % endfor
+ ]
}
</%def>
« BUILD.gn ('K') | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698