Index: templates/BUILD.gn.template |
diff --git a/templates/BUILD.gn.template b/templates/BUILD.gn.template |
index 81678ea97ca863afb8e650e8eb3e90947680722f..a3ac6a49b2818edd6496b18dd876d95aec5baafa 100644 |
--- a/templates/BUILD.gn.template |
+++ b/templates/BUILD.gn.template |
@@ -5,6 +5,11 @@ |
# Please look at the templates directory instead. |
# This file can be regenerated from the template by running |
# tools/buildgen/generate_projects.sh |
+ if (is_android) { |
+ import("//build/config/android/config.gni") |
+ import("//build/config/android/rules.gni") |
+ } |
+ |
config("grpc_config") { |
include_dirs = [ |
".", |
@@ -20,6 +25,15 @@ |
# https://crbug.com/593874 |
"GRPC_CXX0X_NO_THREAD", |
] |
+ |
+ cflags_c = [ |
+ "-std=c99", |
+ "-Wimplicit-function-declaration", |
xyzzyz
2016/10/21 20:14:38
Why do we need -Wimplicit-function-declaration?
Garrett Casto
2016/10/21 20:18:25
Nit: whitespace.
|
+ ] |
+ |
+ if (is_android) { |
+ libs = [ "log" ] # For __android_log_write |
+ } |
} |
<%! |