OLD | NEW |
---|---|
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 "-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.
| |
32 ] | |
33 | |
34 if (is_android) { | |
35 libs = [ "log" ] # For __android_log_write | |
36 } | |
23 } | 37 } |
24 | 38 |
25 <%! | 39 <%! |
26 def get_deps(target_dict): | 40 def get_deps(target_dict): |
27 deps = [] | 41 deps = [] |
28 if target_dict.get("secure", False): | 42 if target_dict.get("secure", False): |
29 deps = [ | 43 deps = [ |
30 "//third_party/boringssl", | 44 "//third_party/boringssl", |
31 ] | 45 ] |
32 | 46 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
154 configs -= [ "//build/config/compiler:chromium_code" ] | 168 configs -= [ "//build/config/compiler:chromium_code" ] |
155 configs += [ | 169 configs += [ |
156 "//build/config/compiler:no_chromium_code", | 170 "//build/config/compiler:no_chromium_code", |
157 % for config in get_extra_configs(tgt): | 171 % for config in get_extra_configs(tgt): |
158 "${config}", | 172 "${config}", |
159 % endfor | 173 % endfor |
160 ] | 174 ] |
161 public_configs = [ ":grpc_config" ] | 175 public_configs = [ ":grpc_config" ] |
162 } | 176 } |
163 </%def> | 177 </%def> |
OLD | NEW |