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

Side by Side Diff: BUILD.gn

Issue 2214453002: Update BUILD.gn template (Closed) Base URL: https://chromium.googlesource.com/external/github.com/grpc/grpc@2016-07-27
Patch Set: fix grpc++_unsecure deps Created 4 years, 4 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
« no previous file with comments | « no previous file | templates/BUILD.gn.template » ('j') | templates/BUILD.gn.template » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 support .
Garrett Casto 2016/08/15 22:43:17 80 chars.
17 # in Chromium has a bug, which causes a compilation error on Clang. 17 # https://crbug.com/593874
18 # Therefore, we need to make gRPC not use standard library threading support. 18 "GRPC_CXX0X_NO_THREAD",
19 # https://crbug.com/593874 19 ]
20 defines = [ "GRPC_CXX0X_NO_THREAD" ]
21 } 20 }
22 21
23 22
24 23
25 24
26 25
27 component("gpr") { 26 source_set("gpr") {
28 sources = [ 27 sources = [
29 "include/grpc/support/alloc.h", 28 "include/grpc/support/alloc.h",
30 "include/grpc/support/atm.h", 29 "include/grpc/support/atm.h",
31 "include/grpc/support/atm_gcc_atomic.h", 30 "include/grpc/support/atm_gcc_atomic.h",
32 "include/grpc/support/atm_gcc_sync.h", 31 "include/grpc/support/atm_gcc_sync.h",
33 "include/grpc/support/atm_windows.h", 32 "include/grpc/support/atm_windows.h",
34 "include/grpc/support/avl.h", 33 "include/grpc/support/avl.h",
35 "include/grpc/support/cmdline.h", 34 "include/grpc/support/cmdline.h",
36 "include/grpc/support/cpu.h", 35 "include/grpc/support/cpu.h",
37 "include/grpc/support/histogram.h", 36 "include/grpc/support/histogram.h",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 "src/core/lib/support/tmpfile_posix.c", 123 "src/core/lib/support/tmpfile_posix.c",
125 "src/core/lib/support/tmpfile_windows.c", 124 "src/core/lib/support/tmpfile_windows.c",
126 "src/core/lib/support/wrap_memcpy.c", 125 "src/core/lib/support/wrap_memcpy.c",
127 ] 126 ]
128 deps = [ 127 deps = [
129 ] 128 ]
130 configs -= [ "//build/config/compiler:chromium_code" ] 129 configs -= [ "//build/config/compiler:chromium_code" ]
131 configs += [ 130 configs += [
132 "//build/config/compiler:no_chromium_code", 131 "//build/config/compiler:no_chromium_code",
133 ] 132 ]
134 public_configs = [ ":grpc_config" ] 133 public_configs = [
134 ":grpc_config",
135 ]
135 } 136 }
136 137
137 138
138 139
139 component("grpc") { 140 source_set("grpc") {
140 sources = [ 141 sources = [
141 "include/grpc/byte_buffer.h", 142 "include/grpc/byte_buffer.h",
142 "include/grpc/byte_buffer_reader.h", 143 "include/grpc/byte_buffer_reader.h",
143 "include/grpc/compression.h", 144 "include/grpc/compression.h",
144 "include/grpc/grpc.h", 145 "include/grpc/grpc.h",
145 "include/grpc/grpc_posix.h", 146 "include/grpc/grpc_posix.h",
146 "include/grpc/status.h", 147 "include/grpc/status.h",
147 "include/grpc/impl/codegen/byte_buffer.h", 148 "include/grpc/impl/codegen/byte_buffer.h",
148 "include/grpc/impl/codegen/byte_buffer_reader.h", 149 "include/grpc/impl/codegen/byte_buffer_reader.h",
149 "include/grpc/impl/codegen/compression_types.h", 150 "include/grpc/impl/codegen/compression_types.h",
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 ] 502 ]
502 deps = [ 503 deps = [
503 "//third_party/boringssl", 504 "//third_party/boringssl",
504 "//third_party/zlib", 505 "//third_party/zlib",
505 ":gpr", 506 ":gpr",
506 ] 507 ]
507 configs -= [ "//build/config/compiler:chromium_code" ] 508 configs -= [ "//build/config/compiler:chromium_code" ]
508 configs += [ 509 configs += [
509 "//build/config/compiler:no_chromium_code", 510 "//build/config/compiler:no_chromium_code",
510 ] 511 ]
511 public_configs = [ ":grpc_config" ] 512 public_configs = [
513 ":grpc_config",
514 ]
512 } 515 }
513 516
514 517
515 518
516 component("grpc_cronet") { 519 source_set("grpc_cronet") {
517 sources = [ 520 sources = [
518 "include/grpc/byte_buffer.h", 521 "include/grpc/byte_buffer.h",
519 "include/grpc/byte_buffer_reader.h", 522 "include/grpc/byte_buffer_reader.h",
520 "include/grpc/compression.h", 523 "include/grpc/compression.h",
521 "include/grpc/grpc.h", 524 "include/grpc/grpc.h",
522 "include/grpc/grpc_posix.h", 525 "include/grpc/grpc_posix.h",
523 "include/grpc/status.h", 526 "include/grpc/status.h",
524 "include/grpc/impl/codegen/byte_buffer.h", 527 "include/grpc/impl/codegen/byte_buffer.h",
525 "include/grpc/impl/codegen/byte_buffer_reader.h", 528 "include/grpc/impl/codegen/byte_buffer_reader.h",
526 "include/grpc/impl/codegen/compression_types.h", 529 "include/grpc/impl/codegen/compression_types.h",
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 "src/core/plugin_registry/grpc_cronet_plugin_registry.c", 856 "src/core/plugin_registry/grpc_cronet_plugin_registry.c",
854 ] 857 ]
855 deps = [ 858 deps = [
856 "//third_party/boringssl", 859 "//third_party/boringssl",
857 ":gpr", 860 ":gpr",
858 ] 861 ]
859 configs -= [ "//build/config/compiler:chromium_code" ] 862 configs -= [ "//build/config/compiler:chromium_code" ]
860 configs += [ 863 configs += [
861 "//build/config/compiler:no_chromium_code", 864 "//build/config/compiler:no_chromium_code",
862 ] 865 ]
863 public_configs = [ ":grpc_config" ] 866 public_configs = [
867 ":grpc_config",
868 ]
864 } 869 }
865 870
866 871
867 872
868 component("grpc_unsecure") { 873 source_set("grpc_unsecure") {
869 sources = [ 874 sources = [
870 "include/grpc/byte_buffer.h", 875 "include/grpc/byte_buffer.h",
871 "include/grpc/byte_buffer_reader.h", 876 "include/grpc/byte_buffer_reader.h",
872 "include/grpc/compression.h", 877 "include/grpc/compression.h",
873 "include/grpc/grpc.h", 878 "include/grpc/grpc.h",
874 "include/grpc/grpc_posix.h", 879 "include/grpc/grpc_posix.h",
875 "include/grpc/status.h", 880 "include/grpc/status.h",
876 "include/grpc/impl/codegen/byte_buffer.h", 881 "include/grpc/impl/codegen/byte_buffer.h",
877 "include/grpc/impl/codegen/byte_buffer_reader.h", 882 "include/grpc/impl/codegen/byte_buffer_reader.h",
878 "include/grpc/impl/codegen/compression_types.h", 883 "include/grpc/impl/codegen/compression_types.h",
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 "src/core/ext/census/grpc_filter.c", 1172 "src/core/ext/census/grpc_filter.c",
1168 "src/core/ext/census/grpc_plugin.c", 1173 "src/core/ext/census/grpc_plugin.c",
1169 "src/core/ext/census/initialize.c", 1174 "src/core/ext/census/initialize.c",
1170 "src/core/ext/census/mlog.c", 1175 "src/core/ext/census/mlog.c",
1171 "src/core/ext/census/operation.c", 1176 "src/core/ext/census/operation.c",
1172 "src/core/ext/census/placeholders.c", 1177 "src/core/ext/census/placeholders.c",
1173 "src/core/ext/census/tracing.c", 1178 "src/core/ext/census/tracing.c",
1174 "src/core/plugin_registry/grpc_unsecure_plugin_registry.c", 1179 "src/core/plugin_registry/grpc_unsecure_plugin_registry.c",
1175 ] 1180 ]
1176 deps = [ 1181 deps = [
1182 "//third_party/zlib",
1177 ":gpr", 1183 ":gpr",
1178 ] 1184 ]
1179 configs -= [ "//build/config/compiler:chromium_code" ] 1185 configs -= [ "//build/config/compiler:chromium_code" ]
1180 configs += [ 1186 configs += [
1181 "//build/config/compiler:no_chromium_code", 1187 "//build/config/compiler:no_chromium_code",
1182 ] 1188 ]
1183 public_configs = [ ":grpc_config" ] 1189 public_configs = [
1190 ":grpc_config",
1191 ]
1184 } 1192 }
1185 1193
1186 1194
1187 1195
1188 component("grpc++") { 1196 source_set("grpc++") {
1189 sources = [ 1197 sources = [
1190 "include/grpc++/alarm.h", 1198 "include/grpc++/alarm.h",
1191 "include/grpc++/channel.h", 1199 "include/grpc++/channel.h",
1192 "include/grpc++/client_context.h", 1200 "include/grpc++/client_context.h",
1193 "include/grpc++/completion_queue.h", 1201 "include/grpc++/completion_queue.h",
1194 "include/grpc++/create_channel.h", 1202 "include/grpc++/create_channel.h",
1195 "include/grpc++/create_channel_posix.h", 1203 "include/grpc++/create_channel_posix.h",
1196 "include/grpc++/generic/async_generic_service.h", 1204 "include/grpc++/generic/async_generic_service.h",
1197 "include/grpc++/generic/generic_stub.h", 1205 "include/grpc++/generic/generic_stub.h",
1198 "include/grpc++/grpc++.h", 1206 "include/grpc++/grpc++.h",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 "src/cpp/codegen/codegen_init.cc", 1335 "src/cpp/codegen/codegen_init.cc",
1328 ] 1336 ]
1329 deps = [ 1337 deps = [
1330 "//third_party/boringssl", 1338 "//third_party/boringssl",
1331 "//third_party/protobuf:protobuf_lite", 1339 "//third_party/protobuf:protobuf_lite",
1332 ":grpc", 1340 ":grpc",
1333 ] 1341 ]
1334 configs -= [ "//build/config/compiler:chromium_code" ] 1342 configs -= [ "//build/config/compiler:chromium_code" ]
1335 configs += [ 1343 configs += [
1336 "//build/config/compiler:no_chromium_code", 1344 "//build/config/compiler:no_chromium_code",
1337 ":grpc_no_cxx11_threads",
1338 ] 1345 ]
1339 public_configs = [ ":grpc_config" ] 1346 public_configs = [
1347 ":grpc_config",
1348 ]
1340 } 1349 }
1341 1350
1342 1351
1343 1352
1344 component("grpc++_unsecure") { 1353 source_set("grpc++_unsecure") {
1345 sources = [ 1354 sources = [
1346 "include/grpc++/alarm.h", 1355 "include/grpc++/alarm.h",
1347 "include/grpc++/channel.h", 1356 "include/grpc++/channel.h",
1348 "include/grpc++/client_context.h", 1357 "include/grpc++/client_context.h",
1349 "include/grpc++/completion_queue.h", 1358 "include/grpc++/completion_queue.h",
1350 "include/grpc++/create_channel.h", 1359 "include/grpc++/create_channel.h",
1351 "include/grpc++/create_channel_posix.h", 1360 "include/grpc++/create_channel_posix.h",
1352 "include/grpc++/generic/async_generic_service.h", 1361 "include/grpc++/generic/async_generic_service.h",
1353 "include/grpc++/generic/generic_stub.h", 1362 "include/grpc++/generic/generic_stub.h",
1354 "include/grpc++/grpc++.h", 1363 "include/grpc++/grpc++.h",
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 "src/cpp/util/slice.cc", 1479 "src/cpp/util/slice.cc",
1471 "src/cpp/util/status.cc", 1480 "src/cpp/util/status.cc",
1472 "src/cpp/util/string_ref.cc", 1481 "src/cpp/util/string_ref.cc",
1473 "src/cpp/util/time.cc", 1482 "src/cpp/util/time.cc",
1474 "src/cpp/codegen/codegen_init.cc", 1483 "src/cpp/codegen/codegen_init.cc",
1475 ] 1484 ]
1476 deps = [ 1485 deps = [
1477 "//third_party/protobuf:protobuf_lite", 1486 "//third_party/protobuf:protobuf_lite",
1478 ":gpr", 1487 ":gpr",
1479 ":grpc_unsecure", 1488 ":grpc_unsecure",
1480 ":grpc",
1481 ] 1489 ]
1482 configs -= [ "//build/config/compiler:chromium_code" ] 1490 configs -= [ "//build/config/compiler:chromium_code" ]
1483 configs += [ 1491 configs += [
1484 "//build/config/compiler:no_chromium_code", 1492 "//build/config/compiler:no_chromium_code",
1485 ":grpc_no_cxx11_threads",
1486 ] 1493 ]
1487 public_configs = [ ":grpc_config" ] 1494 public_configs = [
1495 ":grpc_config",
1496 ]
1488 } 1497 }
1489 1498
1490 1499
1491 1500
1492 component("grpc_plugin_support") { 1501 source_set("grpc_plugin_support") {
1493 sources = [ 1502 sources = [
1494 "include/grpc++/impl/codegen/config_protobuf.h", 1503 "include/grpc++/impl/codegen/config_protobuf.h",
1495 "src/compiler/config.h", 1504 "src/compiler/config.h",
1496 "src/compiler/cpp_generator.h", 1505 "src/compiler/cpp_generator.h",
1497 "src/compiler/cpp_generator_helpers.h", 1506 "src/compiler/cpp_generator_helpers.h",
1498 "src/compiler/csharp_generator.h", 1507 "src/compiler/csharp_generator.h",
1499 "src/compiler/csharp_generator_helpers.h", 1508 "src/compiler/csharp_generator_helpers.h",
1500 "src/compiler/generator_helpers.h", 1509 "src/compiler/generator_helpers.h",
1501 "src/compiler/node_generator.h", 1510 "src/compiler/node_generator.h",
1502 "src/compiler/node_generator_helpers.h", 1511 "src/compiler/node_generator_helpers.h",
(...skipping 11 matching lines...) Expand all
1514 "src/compiler/python_generator.cc", 1523 "src/compiler/python_generator.cc",
1515 "src/compiler/ruby_generator.cc", 1524 "src/compiler/ruby_generator.cc",
1516 ] 1525 ]
1517 deps = [ 1526 deps = [
1518 "//third_party/protobuf:protoc_lib", 1527 "//third_party/protobuf:protoc_lib",
1519 ] 1528 ]
1520 configs -= [ "//build/config/compiler:chromium_code" ] 1529 configs -= [ "//build/config/compiler:chromium_code" ]
1521 configs += [ 1530 configs += [
1522 "//build/config/compiler:no_chromium_code", 1531 "//build/config/compiler:no_chromium_code",
1523 ] 1532 ]
1524 public_configs = [ ":grpc_config" ] 1533 public_configs = [
1534 ":grpc_config",
1535 ]
1525 } 1536 }
1526 1537
1527 1538
1528 1539
1529 1540
1530 executable("grpc_cpp_plugin") { 1541 executable("grpc_cpp_plugin") {
1531 sources = [ 1542 sources = [
1532 "src/compiler/cpp_plugin.cc", 1543 "src/compiler/cpp_plugin.cc",
1533 ] 1544 ]
1534 deps = [ 1545 deps = [
1535 "//third_party/protobuf:protoc_lib", 1546 "//third_party/protobuf:protoc_lib",
1536 ":grpc_plugin_support", 1547 ":grpc_plugin_support",
1537 ] 1548 ]
1538 configs -= [ "//build/config/compiler:chromium_code" ] 1549 configs -= [ "//build/config/compiler:chromium_code" ]
1539 configs += [ 1550 configs += [
1540 "//build/config/compiler:no_chromium_code", 1551 "//build/config/compiler:no_chromium_code",
1541 "//third_party/protobuf:protobuf_config", 1552 "//third_party/protobuf:protobuf_config",
1542 ] 1553 ]
1543 public_configs = [ ":grpc_config" ] 1554 public_configs = [ ":grpc_config" ]
1544 } 1555 }
1545 1556
1546 1557
1547 1558
1548 1559
1549 1560
OLDNEW
« no previous file with comments | « no previous file | templates/BUILD.gn.template » ('j') | templates/BUILD.gn.template » ('J')

Powered by Google App Engine
This is Rietveld 408576698