Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # GRPC Chromium BUILD.gn file. | 1 # GRPC Chromium BUILD.gn file. |
| 2 # This file has been automatically generated from a template file. | 2 # This file has been automatically generated from a template file. |
| 3 # Please look at the templates directory instead. | 3 # Please look at the templates directory instead. |
| 4 # This file can be regenerated from the template by running | 4 # This file can be regenerated from the template by running |
| 5 # tools/buildgen/generate_projects.sh | 5 # tools/buildgen/generate_projects.sh |
| 6 config("grpc_config") { | 6 config("grpc_config") { |
| 7 include_dirs = [ | 7 include_dirs = [ |
| 8 ".", | 8 ".", |
| 9 "include/", | 9 "include/", |
| 10 ] | 10 ] |
| 11 | 11 |
| 12 defines = [ "GRPC_USE_PROTO_LITE" ] | 12 defines = [ "GRPC_USE_PROTO_LITE" ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 config("grpc_no_cxx11_threads") { | 15 config("grpc_no_cxx11_threads") { |
|
Garrett Casto
2016/08/15 21:20:59
Is there any reason why this is separate from "grp
xyzzyz
2016/08/15 21:59:20
Merged.
| |
| 16 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're using | 16 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're using |
| 17 # in Chromium has a bug, which causes a compilation error on Clang. | 17 # in Chromium has a bug, which causes a compilation error on Clang. |
| 18 # Therefore, we need to make gRPC not use standard library threading support. | 18 # Therefore, we need to make gRPC not use standard library threading support. |
| 19 # https://crbug.com/593874 | 19 # https://crbug.com/593874 |
| 20 defines = [ "GRPC_CXX0X_NO_THREAD" ] | 20 defines = [ "GRPC_CXX0X_NO_THREAD" ] |
| 21 } | 21 } |
| 22 | 22 |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 "src/core/lib/support/tmpfile_posix.c", | 124 "src/core/lib/support/tmpfile_posix.c", |
| 125 "src/core/lib/support/tmpfile_windows.c", | 125 "src/core/lib/support/tmpfile_windows.c", |
| 126 "src/core/lib/support/wrap_memcpy.c", | 126 "src/core/lib/support/wrap_memcpy.c", |
| 127 ] | 127 ] |
| 128 deps = [ | 128 deps = [ |
| 129 ] | 129 ] |
| 130 configs -= [ "//build/config/compiler:chromium_code" ] | 130 configs -= [ "//build/config/compiler:chromium_code" ] |
| 131 configs += [ | 131 configs += [ |
| 132 "//build/config/compiler:no_chromium_code", | 132 "//build/config/compiler:no_chromium_code", |
| 133 ] | 133 ] |
| 134 public_configs = [ ":grpc_config" ] | 134 public_configs = [ |
| 135 ":grpc_config", | |
| 136 ] | |
| 135 } | 137 } |
| 136 | 138 |
| 137 | 139 |
| 138 | 140 |
| 139 component("grpc") { | 141 component("grpc") { |
| 140 sources = [ | 142 sources = [ |
| 141 "include/grpc/byte_buffer.h", | 143 "include/grpc/byte_buffer.h", |
| 142 "include/grpc/byte_buffer_reader.h", | 144 "include/grpc/byte_buffer_reader.h", |
| 143 "include/grpc/compression.h", | 145 "include/grpc/compression.h", |
| 144 "include/grpc/grpc.h", | 146 "include/grpc/grpc.h", |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 ] | 503 ] |
| 502 deps = [ | 504 deps = [ |
| 503 "//third_party/boringssl", | 505 "//third_party/boringssl", |
| 504 "//third_party/zlib", | 506 "//third_party/zlib", |
| 505 ":gpr", | 507 ":gpr", |
| 506 ] | 508 ] |
| 507 configs -= [ "//build/config/compiler:chromium_code" ] | 509 configs -= [ "//build/config/compiler:chromium_code" ] |
| 508 configs += [ | 510 configs += [ |
| 509 "//build/config/compiler:no_chromium_code", | 511 "//build/config/compiler:no_chromium_code", |
| 510 ] | 512 ] |
| 511 public_configs = [ ":grpc_config" ] | 513 public_configs = [ |
| 514 ":grpc_config", | |
| 515 ] | |
| 512 } | 516 } |
| 513 | 517 |
| 514 | 518 |
| 515 | 519 |
| 516 component("grpc_cronet") { | 520 component("grpc_cronet") { |
| 517 sources = [ | 521 sources = [ |
| 518 "include/grpc/byte_buffer.h", | 522 "include/grpc/byte_buffer.h", |
| 519 "include/grpc/byte_buffer_reader.h", | 523 "include/grpc/byte_buffer_reader.h", |
| 520 "include/grpc/compression.h", | 524 "include/grpc/compression.h", |
| 521 "include/grpc/grpc.h", | 525 "include/grpc/grpc.h", |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 853 "src/core/plugin_registry/grpc_cronet_plugin_registry.c", | 857 "src/core/plugin_registry/grpc_cronet_plugin_registry.c", |
| 854 ] | 858 ] |
| 855 deps = [ | 859 deps = [ |
| 856 "//third_party/boringssl", | 860 "//third_party/boringssl", |
| 857 ":gpr", | 861 ":gpr", |
| 858 ] | 862 ] |
| 859 configs -= [ "//build/config/compiler:chromium_code" ] | 863 configs -= [ "//build/config/compiler:chromium_code" ] |
| 860 configs += [ | 864 configs += [ |
| 861 "//build/config/compiler:no_chromium_code", | 865 "//build/config/compiler:no_chromium_code", |
| 862 ] | 866 ] |
| 863 public_configs = [ ":grpc_config" ] | 867 public_configs = [ |
| 868 ":grpc_config", | |
| 869 ] | |
| 864 } | 870 } |
| 865 | 871 |
| 866 | 872 |
| 867 | 873 |
| 868 component("grpc_unsecure") { | 874 component("grpc_unsecure") { |
| 869 sources = [ | 875 sources = [ |
| 870 "include/grpc/byte_buffer.h", | 876 "include/grpc/byte_buffer.h", |
| 871 "include/grpc/byte_buffer_reader.h", | 877 "include/grpc/byte_buffer_reader.h", |
| 872 "include/grpc/compression.h", | 878 "include/grpc/compression.h", |
| 873 "include/grpc/grpc.h", | 879 "include/grpc/grpc.h", |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1167 "src/core/ext/census/grpc_filter.c", | 1173 "src/core/ext/census/grpc_filter.c", |
| 1168 "src/core/ext/census/grpc_plugin.c", | 1174 "src/core/ext/census/grpc_plugin.c", |
| 1169 "src/core/ext/census/initialize.c", | 1175 "src/core/ext/census/initialize.c", |
| 1170 "src/core/ext/census/mlog.c", | 1176 "src/core/ext/census/mlog.c", |
| 1171 "src/core/ext/census/operation.c", | 1177 "src/core/ext/census/operation.c", |
| 1172 "src/core/ext/census/placeholders.c", | 1178 "src/core/ext/census/placeholders.c", |
| 1173 "src/core/ext/census/tracing.c", | 1179 "src/core/ext/census/tracing.c", |
| 1174 "src/core/plugin_registry/grpc_unsecure_plugin_registry.c", | 1180 "src/core/plugin_registry/grpc_unsecure_plugin_registry.c", |
| 1175 ] | 1181 ] |
| 1176 deps = [ | 1182 deps = [ |
| 1183 "//third_party/zlib", | |
|
Garrett Casto
2016/08/15 21:20:59
Can you add a comment in the CL description for th
xyzzyz
2016/08/15 21:59:20
Yes, it was. Editing CL description.
| |
| 1177 ":gpr", | 1184 ":gpr", |
| 1178 ] | 1185 ] |
| 1179 configs -= [ "//build/config/compiler:chromium_code" ] | 1186 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1180 configs += [ | 1187 configs += [ |
| 1181 "//build/config/compiler:no_chromium_code", | 1188 "//build/config/compiler:no_chromium_code", |
| 1182 ] | 1189 ] |
| 1183 public_configs = [ ":grpc_config" ] | 1190 public_configs = [ |
| 1191 ":grpc_config", | |
| 1192 ] | |
| 1184 } | 1193 } |
| 1185 | 1194 |
| 1186 | 1195 |
| 1187 | 1196 |
| 1188 component("grpc++") { | 1197 component("grpc++") { |
| 1189 sources = [ | 1198 sources = [ |
| 1190 "include/grpc++/alarm.h", | 1199 "include/grpc++/alarm.h", |
| 1191 "include/grpc++/channel.h", | 1200 "include/grpc++/channel.h", |
| 1192 "include/grpc++/client_context.h", | 1201 "include/grpc++/client_context.h", |
| 1193 "include/grpc++/completion_queue.h", | 1202 "include/grpc++/completion_queue.h", |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1327 "src/cpp/codegen/codegen_init.cc", | 1336 "src/cpp/codegen/codegen_init.cc", |
| 1328 ] | 1337 ] |
| 1329 deps = [ | 1338 deps = [ |
| 1330 "//third_party/boringssl", | 1339 "//third_party/boringssl", |
| 1331 "//third_party/protobuf:protobuf_lite", | 1340 "//third_party/protobuf:protobuf_lite", |
| 1332 ":grpc", | 1341 ":grpc", |
| 1333 ] | 1342 ] |
| 1334 configs -= [ "//build/config/compiler:chromium_code" ] | 1343 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1335 configs += [ | 1344 configs += [ |
| 1336 "//build/config/compiler:no_chromium_code", | 1345 "//build/config/compiler:no_chromium_code", |
| 1346 ] | |
| 1347 public_configs = [ | |
| 1348 ":grpc_config", | |
| 1337 ":grpc_no_cxx11_threads", | 1349 ":grpc_no_cxx11_threads", |
| 1338 ] | 1350 ] |
| 1339 public_configs = [ ":grpc_config" ] | |
| 1340 } | 1351 } |
| 1341 | 1352 |
| 1342 | 1353 |
| 1343 | 1354 |
| 1344 component("grpc++_unsecure") { | 1355 component("grpc++_unsecure") { |
| 1345 sources = [ | 1356 sources = [ |
| 1346 "include/grpc++/alarm.h", | 1357 "include/grpc++/alarm.h", |
| 1347 "include/grpc++/channel.h", | 1358 "include/grpc++/channel.h", |
| 1348 "include/grpc++/client_context.h", | 1359 "include/grpc++/client_context.h", |
| 1349 "include/grpc++/completion_queue.h", | 1360 "include/grpc++/completion_queue.h", |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1475 ] | 1486 ] |
| 1476 deps = [ | 1487 deps = [ |
| 1477 "//third_party/protobuf:protobuf_lite", | 1488 "//third_party/protobuf:protobuf_lite", |
| 1478 ":gpr", | 1489 ":gpr", |
| 1479 ":grpc_unsecure", | 1490 ":grpc_unsecure", |
| 1480 ":grpc", | 1491 ":grpc", |
| 1481 ] | 1492 ] |
| 1482 configs -= [ "//build/config/compiler:chromium_code" ] | 1493 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1483 configs += [ | 1494 configs += [ |
| 1484 "//build/config/compiler:no_chromium_code", | 1495 "//build/config/compiler:no_chromium_code", |
| 1496 ] | |
| 1497 public_configs = [ | |
| 1498 ":grpc_config", | |
| 1485 ":grpc_no_cxx11_threads", | 1499 ":grpc_no_cxx11_threads", |
| 1486 ] | 1500 ] |
| 1487 public_configs = [ ":grpc_config" ] | |
| 1488 } | 1501 } |
| 1489 | 1502 |
| 1490 | 1503 |
| 1491 | 1504 |
| 1492 component("grpc_plugin_support") { | 1505 component("grpc_plugin_support") { |
| 1493 sources = [ | 1506 sources = [ |
| 1494 "include/grpc++/impl/codegen/config_protobuf.h", | 1507 "include/grpc++/impl/codegen/config_protobuf.h", |
| 1495 "src/compiler/config.h", | 1508 "src/compiler/config.h", |
| 1496 "src/compiler/cpp_generator.h", | 1509 "src/compiler/cpp_generator.h", |
| 1497 "src/compiler/cpp_generator_helpers.h", | 1510 "src/compiler/cpp_generator_helpers.h", |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 1514 "src/compiler/python_generator.cc", | 1527 "src/compiler/python_generator.cc", |
| 1515 "src/compiler/ruby_generator.cc", | 1528 "src/compiler/ruby_generator.cc", |
| 1516 ] | 1529 ] |
| 1517 deps = [ | 1530 deps = [ |
| 1518 "//third_party/protobuf:protoc_lib", | 1531 "//third_party/protobuf:protoc_lib", |
| 1519 ] | 1532 ] |
| 1520 configs -= [ "//build/config/compiler:chromium_code" ] | 1533 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1521 configs += [ | 1534 configs += [ |
| 1522 "//build/config/compiler:no_chromium_code", | 1535 "//build/config/compiler:no_chromium_code", |
| 1523 ] | 1536 ] |
| 1524 public_configs = [ ":grpc_config" ] | 1537 public_configs = [ |
| 1538 ":grpc_config", | |
| 1539 ] | |
| 1525 } | 1540 } |
| 1526 | 1541 |
| 1527 | 1542 |
| 1528 | 1543 |
| 1529 | 1544 |
| 1530 executable("grpc_cpp_plugin") { | 1545 executable("grpc_cpp_plugin") { |
| 1531 sources = [ | 1546 sources = [ |
| 1532 "src/compiler/cpp_plugin.cc", | 1547 "src/compiler/cpp_plugin.cc", |
| 1533 ] | 1548 ] |
| 1534 deps = [ | 1549 deps = [ |
| 1535 "//third_party/protobuf:protoc_lib", | 1550 "//third_party/protobuf:protoc_lib", |
| 1536 ":grpc_plugin_support", | 1551 ":grpc_plugin_support", |
| 1537 ] | 1552 ] |
| 1538 configs -= [ "//build/config/compiler:chromium_code" ] | 1553 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1539 configs += [ | 1554 configs += [ |
| 1540 "//build/config/compiler:no_chromium_code", | 1555 "//build/config/compiler:no_chromium_code", |
| 1541 "//third_party/protobuf:protobuf_config", | 1556 "//third_party/protobuf:protobuf_config", |
| 1542 ] | 1557 ] |
| 1543 public_configs = [ ":grpc_config" ] | 1558 public_configs = [ ":grpc_config" ] |
| 1544 } | 1559 } |
| 1545 | 1560 |
| 1546 | 1561 |
| 1547 | 1562 |
| 1548 | 1563 |
| 1549 | 1564 |
| OLD | NEW |