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 ] |
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 ] | 1490 ] |
1491 configs -= [ "//build/config/compiler:chromium_code" ] | 1491 configs -= [ "//build/config/compiler:chromium_code" ] |
1492 configs += [ | 1492 configs += [ |
1493 "//build/config/compiler:no_chromium_code", | 1493 "//build/config/compiler:no_chromium_code", |
1494 ] | 1494 ] |
1495 public_configs = [ | 1495 public_configs = [ |
1496 ":grpc_config", | 1496 ":grpc_config", |
1497 ] | 1497 ] |
1498 } | 1498 } |
1499 | 1499 |
| 1500 # Only compile the plugin for the host architecture. |
| 1501 if (current_toolchain == host_toolchain) { |
1500 | 1502 |
1501 | 1503 |
1502 source_set("grpc_plugin_support") { | 1504 source_set("grpc_plugin_support") { |
1503 sources = [ | 1505 sources = [ |
1504 "include/grpc++/impl/codegen/config_protobuf.h", | 1506 "include/grpc++/impl/codegen/config_protobuf.h", |
1505 "src/compiler/config.h", | 1507 "src/compiler/config.h", |
1506 "src/compiler/cpp_generator.h", | 1508 "src/compiler/cpp_generator.h", |
1507 "src/compiler/cpp_generator_helpers.h", | 1509 "src/compiler/cpp_generator_helpers.h", |
1508 "src/compiler/csharp_generator.h", | 1510 "src/compiler/csharp_generator.h", |
1509 "src/compiler/csharp_generator_helpers.h", | 1511 "src/compiler/csharp_generator_helpers.h", |
(...skipping 19 matching lines...) Expand all Loading... |
1529 ] | 1531 ] |
1530 configs -= [ "//build/config/compiler:chromium_code" ] | 1532 configs -= [ "//build/config/compiler:chromium_code" ] |
1531 configs += [ | 1533 configs += [ |
1532 "//build/config/compiler:no_chromium_code", | 1534 "//build/config/compiler:no_chromium_code", |
1533 ] | 1535 ] |
1534 public_configs = [ | 1536 public_configs = [ |
1535 ":grpc_config", | 1537 ":grpc_config", |
1536 ] | 1538 ] |
1537 } | 1539 } |
1538 | 1540 |
| 1541 } |
1539 | 1542 |
1540 | 1543 |
| 1544 # Only compile the plugin for the host architecture. |
| 1545 if (current_toolchain == host_toolchain) { |
1541 | 1546 |
1542 executable("grpc_cpp_plugin") { | 1547 executable("grpc_cpp_plugin") { |
1543 sources = [ | 1548 sources = [ |
1544 "src/compiler/cpp_plugin.cc", | 1549 "src/compiler/cpp_plugin.cc", |
1545 ] | 1550 ] |
1546 deps = [ | 1551 deps = [ |
1547 "//third_party/protobuf:protoc_lib", | 1552 "//third_party/protobuf:protoc_lib", |
1548 ":grpc_plugin_support", | 1553 ":grpc_plugin_support", |
1549 ] | 1554 ] |
1550 configs -= [ "//build/config/compiler:chromium_code" ] | 1555 configs -= [ "//build/config/compiler:chromium_code" ] |
1551 configs += [ | 1556 configs += [ |
1552 "//build/config/compiler:no_chromium_code", | 1557 "//build/config/compiler:no_chromium_code", |
1553 "//third_party/protobuf:protobuf_config", | 1558 "//third_party/protobuf:protobuf_config", |
1554 ] | 1559 ] |
1555 public_configs = [ ":grpc_config" ] | 1560 public_configs = [ ":grpc_config" ] |
1556 } | 1561 } |
1557 | 1562 |
| 1563 } |
| 1564 |
1558 | 1565 |
1559 | 1566 |
1560 | |
1561 | 1567 |
OLD | NEW |