| 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 = [ |
| 13 } | 13 "GRPC_USE_PROTO_LITE", |
| 14 | 14 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're using |
| 15 config("grpc_no_cxx11_threads") { | 15 # in Chromium has a bug, which causes a compilation error on Clang. |
| 16 # TODO(xyzzyz): the <condition_variable> header in libstdc++-4.6 we're using | 16 # Therefore, we need to make gRPC not use standard library threading |
| 17 # in Chromium has a bug, which causes a compilation error on Clang. | 17 # support. |
| 18 # Therefore, we need to make gRPC not use standard library threading support. | 18 # https://crbug.com/593874 |
| 19 # https://crbug.com/593874 | 19 "GRPC_CXX0X_NO_THREAD", |
| 20 defines = [ "GRPC_CXX0X_NO_THREAD" ] | 20 ] |
| 21 } | 21 } |
| 22 | 22 |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| 26 | 26 |
| 27 component("gpr") { | 27 source_set("gpr") { |
| 28 sources = [ | 28 sources = [ |
| 29 "include/grpc/support/alloc.h", | 29 "include/grpc/support/alloc.h", |
| 30 "include/grpc/support/atm.h", | 30 "include/grpc/support/atm.h", |
| 31 "include/grpc/support/atm_gcc_atomic.h", | 31 "include/grpc/support/atm_gcc_atomic.h", |
| 32 "include/grpc/support/atm_gcc_sync.h", | 32 "include/grpc/support/atm_gcc_sync.h", |
| 33 "include/grpc/support/atm_windows.h", | 33 "include/grpc/support/atm_windows.h", |
| 34 "include/grpc/support/avl.h", | 34 "include/grpc/support/avl.h", |
| 35 "include/grpc/support/cmdline.h", | 35 "include/grpc/support/cmdline.h", |
| 36 "include/grpc/support/cpu.h", | 36 "include/grpc/support/cpu.h", |
| 37 "include/grpc/support/histogram.h", | 37 "include/grpc/support/histogram.h", |
| (...skipping 86 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 source_set("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", |
| 145 "include/grpc/grpc_posix.h", | 147 "include/grpc/grpc_posix.h", |
| 146 "include/grpc/status.h", | 148 "include/grpc/status.h", |
| 147 "include/grpc/impl/codegen/byte_buffer.h", | 149 "include/grpc/impl/codegen/byte_buffer.h", |
| 148 "include/grpc/impl/codegen/byte_buffer_reader.h", | 150 "include/grpc/impl/codegen/byte_buffer_reader.h", |
| 149 "include/grpc/impl/codegen/compression_types.h", | 151 "include/grpc/impl/codegen/compression_types.h", |
| (...skipping 351 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 source_set("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", |
| 522 "include/grpc/grpc_posix.h", | 526 "include/grpc/grpc_posix.h", |
| 523 "include/grpc/status.h", | 527 "include/grpc/status.h", |
| 524 "include/grpc/impl/codegen/byte_buffer.h", | 528 "include/grpc/impl/codegen/byte_buffer.h", |
| 525 "include/grpc/impl/codegen/byte_buffer_reader.h", | 529 "include/grpc/impl/codegen/byte_buffer_reader.h", |
| 526 "include/grpc/impl/codegen/compression_types.h", | 530 "include/grpc/impl/codegen/compression_types.h", |
| (...skipping 326 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 source_set("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", |
| 874 "include/grpc/grpc_posix.h", | 880 "include/grpc/grpc_posix.h", |
| 875 "include/grpc/status.h", | 881 "include/grpc/status.h", |
| 876 "include/grpc/impl/codegen/byte_buffer.h", | 882 "include/grpc/impl/codegen/byte_buffer.h", |
| 877 "include/grpc/impl/codegen/byte_buffer_reader.h", | 883 "include/grpc/impl/codegen/byte_buffer_reader.h", |
| 878 "include/grpc/impl/codegen/compression_types.h", | 884 "include/grpc/impl/codegen/compression_types.h", |
| (...skipping 288 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", |
| 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 source_set("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", |
| 1194 "include/grpc++/create_channel.h", | 1203 "include/grpc++/create_channel.h", |
| 1195 "include/grpc++/create_channel_posix.h", | 1204 "include/grpc++/create_channel_posix.h", |
| 1196 "include/grpc++/generic/async_generic_service.h", | 1205 "include/grpc++/generic/async_generic_service.h", |
| 1197 "include/grpc++/generic/generic_stub.h", | 1206 "include/grpc++/generic/generic_stub.h", |
| 1198 "include/grpc++/grpc++.h", | 1207 "include/grpc++/grpc++.h", |
| (...skipping 128 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", |
| 1337 ":grpc_no_cxx11_threads", | |
| 1338 ] | 1346 ] |
| 1339 public_configs = [ ":grpc_config" ] | 1347 public_configs = [ |
| 1348 ":grpc_config", |
| 1349 ] |
| 1340 } | 1350 } |
| 1341 | 1351 |
| 1342 | 1352 |
| 1343 | 1353 |
| 1344 component("grpc++_unsecure") { | 1354 source_set("grpc++_unsecure") { |
| 1345 sources = [ | 1355 sources = [ |
| 1346 "include/grpc++/alarm.h", | 1356 "include/grpc++/alarm.h", |
| 1347 "include/grpc++/channel.h", | 1357 "include/grpc++/channel.h", |
| 1348 "include/grpc++/client_context.h", | 1358 "include/grpc++/client_context.h", |
| 1349 "include/grpc++/completion_queue.h", | 1359 "include/grpc++/completion_queue.h", |
| 1350 "include/grpc++/create_channel.h", | 1360 "include/grpc++/create_channel.h", |
| 1351 "include/grpc++/create_channel_posix.h", | 1361 "include/grpc++/create_channel_posix.h", |
| 1352 "include/grpc++/generic/async_generic_service.h", | 1362 "include/grpc++/generic/async_generic_service.h", |
| 1353 "include/grpc++/generic/generic_stub.h", | 1363 "include/grpc++/generic/generic_stub.h", |
| 1354 "include/grpc++/grpc++.h", | 1364 "include/grpc++/grpc++.h", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 "src/cpp/util/slice.cc", | 1480 "src/cpp/util/slice.cc", |
| 1471 "src/cpp/util/status.cc", | 1481 "src/cpp/util/status.cc", |
| 1472 "src/cpp/util/string_ref.cc", | 1482 "src/cpp/util/string_ref.cc", |
| 1473 "src/cpp/util/time.cc", | 1483 "src/cpp/util/time.cc", |
| 1474 "src/cpp/codegen/codegen_init.cc", | 1484 "src/cpp/codegen/codegen_init.cc", |
| 1475 ] | 1485 ] |
| 1476 deps = [ | 1486 deps = [ |
| 1477 "//third_party/protobuf:protobuf_lite", | 1487 "//third_party/protobuf:protobuf_lite", |
| 1478 ":gpr", | 1488 ":gpr", |
| 1479 ":grpc_unsecure", | 1489 ":grpc_unsecure", |
| 1480 ":grpc", | |
| 1481 ] | 1490 ] |
| 1482 configs -= [ "//build/config/compiler:chromium_code" ] | 1491 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1483 configs += [ | 1492 configs += [ |
| 1484 "//build/config/compiler:no_chromium_code", | 1493 "//build/config/compiler:no_chromium_code", |
| 1485 ":grpc_no_cxx11_threads", | |
| 1486 ] | 1494 ] |
| 1487 public_configs = [ ":grpc_config" ] | 1495 public_configs = [ |
| 1496 ":grpc_config", |
| 1497 ] |
| 1488 } | 1498 } |
| 1489 | 1499 |
| 1490 | 1500 |
| 1491 | 1501 |
| 1492 component("grpc_plugin_support") { | 1502 source_set("grpc_plugin_support") { |
| 1493 sources = [ | 1503 sources = [ |
| 1494 "include/grpc++/impl/codegen/config_protobuf.h", | 1504 "include/grpc++/impl/codegen/config_protobuf.h", |
| 1495 "src/compiler/config.h", | 1505 "src/compiler/config.h", |
| 1496 "src/compiler/cpp_generator.h", | 1506 "src/compiler/cpp_generator.h", |
| 1497 "src/compiler/cpp_generator_helpers.h", | 1507 "src/compiler/cpp_generator_helpers.h", |
| 1498 "src/compiler/csharp_generator.h", | 1508 "src/compiler/csharp_generator.h", |
| 1499 "src/compiler/csharp_generator_helpers.h", | 1509 "src/compiler/csharp_generator_helpers.h", |
| 1500 "src/compiler/generator_helpers.h", | 1510 "src/compiler/generator_helpers.h", |
| 1501 "src/compiler/node_generator.h", | 1511 "src/compiler/node_generator.h", |
| 1502 "src/compiler/node_generator_helpers.h", | 1512 "src/compiler/node_generator_helpers.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1514 "src/compiler/python_generator.cc", | 1524 "src/compiler/python_generator.cc", |
| 1515 "src/compiler/ruby_generator.cc", | 1525 "src/compiler/ruby_generator.cc", |
| 1516 ] | 1526 ] |
| 1517 deps = [ | 1527 deps = [ |
| 1518 "//third_party/protobuf:protoc_lib", | 1528 "//third_party/protobuf:protoc_lib", |
| 1519 ] | 1529 ] |
| 1520 configs -= [ "//build/config/compiler:chromium_code" ] | 1530 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1521 configs += [ | 1531 configs += [ |
| 1522 "//build/config/compiler:no_chromium_code", | 1532 "//build/config/compiler:no_chromium_code", |
| 1523 ] | 1533 ] |
| 1524 public_configs = [ ":grpc_config" ] | 1534 public_configs = [ |
| 1535 ":grpc_config", |
| 1536 ] |
| 1525 } | 1537 } |
| 1526 | 1538 |
| 1527 | 1539 |
| 1528 | 1540 |
| 1529 | 1541 |
| 1530 executable("grpc_cpp_plugin") { | 1542 executable("grpc_cpp_plugin") { |
| 1531 sources = [ | 1543 sources = [ |
| 1532 "src/compiler/cpp_plugin.cc", | 1544 "src/compiler/cpp_plugin.cc", |
| 1533 ] | 1545 ] |
| 1534 deps = [ | 1546 deps = [ |
| 1535 "//third_party/protobuf:protoc_lib", | 1547 "//third_party/protobuf:protoc_lib", |
| 1536 ":grpc_plugin_support", | 1548 ":grpc_plugin_support", |
| 1537 ] | 1549 ] |
| 1538 configs -= [ "//build/config/compiler:chromium_code" ] | 1550 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1539 configs += [ | 1551 configs += [ |
| 1540 "//build/config/compiler:no_chromium_code", | 1552 "//build/config/compiler:no_chromium_code", |
| 1541 "//third_party/protobuf:protobuf_config", | 1553 "//third_party/protobuf:protobuf_config", |
| 1542 ] | 1554 ] |
| 1543 public_configs = [ ":grpc_config" ] | 1555 public_configs = [ ":grpc_config" ] |
| 1544 } | 1556 } |
| 1545 | 1557 |
| 1546 | 1558 |
| 1547 | 1559 |
| 1548 | 1560 |
| 1549 | 1561 |
| OLD | NEW |