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

Side by Side 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 unified diff | Download patch
OLDNEW
1 %YAML 1.2 1 %YAML 1.2
2 --- | 2 --- |
3 # GRPC Chromium BUILD.gn file. 3 # GRPC Chromium BUILD.gn file.
4 # This file has been automatically generated from a template file. 4 # This file has been automatically generated from a template file.
5 # Please look at the templates directory instead. 5 # Please look at the templates directory instead.
6 # This file can be regenerated from the template by running 6 # This file can be regenerated from the template by running
7 # tools/buildgen/generate_projects.sh 7 # tools/buildgen/generate_projects.sh
8 if (is_android) {
9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni")
11 }
12
8 config("grpc_config") { 13 config("grpc_config") {
9 include_dirs = [ 14 include_dirs = [
10 ".", 15 ".",
11 "include/", 16 "include/",
12 ] 17 ]
13 18
14 defines = [ 19 defines = [
15 "GRPC_USE_PROTO_LITE", 20 "GRPC_USE_PROTO_LITE",
16 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're usi ng 21 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're usi ng
17 # in Chromium has a bug, which causes a compilation error on Clang. 22 # in Chromium has a bug, which causes a compilation error on Clang.
18 # Therefore, we need to make gRPC not use standard library threading 23 # Therefore, we need to make gRPC not use standard library threading
19 # support. 24 # support.
20 # https://crbug.com/593874 25 # https://crbug.com/593874
21 "GRPC_CXX0X_NO_THREAD", 26 "GRPC_CXX0X_NO_THREAD",
22 ] 27 ]
28
29 cflags_c = [
30 "-std=c99"
31 ]
32
33 if (is_android) {
34 libs = [ "log" ] # For __android_log_write
35 }
23 } 36 }
24 37
25 <%! 38 <%!
26 def get_deps(target_dict): 39 def get_deps(target_dict):
27 deps = [] 40 deps = []
28 if target_dict.get("secure", False): 41 if target_dict.get("secure", False):
29 deps = [ 42 deps = [
30 "//third_party/boringssl", 43 "//third_party/boringssl",
31 ] 44 ]
32 45
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 configs -= [ "//build/config/compiler:chromium_code" ] 167 configs -= [ "//build/config/compiler:chromium_code" ]
155 configs += [ 168 configs += [
156 "//build/config/compiler:no_chromium_code", 169 "//build/config/compiler:no_chromium_code",
157 % for config in get_extra_configs(tgt): 170 % for config in get_extra_configs(tgt):
158 "${config}", 171 "${config}",
159 % endfor 172 % endfor
160 ] 173 ]
161 public_configs = [ ":grpc_config" ] 174 public_configs = [ ":grpc_config" ]
162 } 175 }
163 </%def> 176 </%def>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698