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

Unified Diff: templates/BUILD.gn.template

Issue 2440763002: Fix Android build issues and gRPC LB policy (Closed)
Patch Set: Sync BUILD.gn Created 4 years, 2 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
Index: templates/BUILD.gn.template
diff --git a/templates/BUILD.gn.template b/templates/BUILD.gn.template
index 81678ea97ca863afb8e650e8eb3e90947680722f..71607a21a9d98f44bf8574470a3f4c5c3562467d 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,14 @@
# https://crbug.com/593874
"GRPC_CXX0X_NO_THREAD",
]
+
+ cflags_c = [
+ "-std=c99"
+ ]
+
+ if (is_android) {
+ libs = [ "log" ] # For __android_log_write
+ }
}
<%!

Powered by Google App Engine
This is Rietveld 408576698