| OLD | NEW |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
| 8 | 8 |
| 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', | 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', |
| 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', | 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }], | 169 }], |
| 170 ['OS=="android"', { | 170 ['OS=="android"', { |
| 171 'link_settings': { | 171 'link_settings': { |
| 172 'libraries': [ | 172 'libraries': [ |
| 173 '-ldl', | 173 '-ldl', |
| 174 ], | 174 ], |
| 175 }, | 175 }, |
| 176 }], | 176 }], |
| 177 ], | 177 ], |
| 178 }, | 178 }, |
| 179 # This is a combination of libdart_io, libdart_builtin, and vmservice bits. |
| 180 # The dart_io is built without support for secure sockets. |
| 181 { |
| 182 'target_name': 'libvmservice_io', |
| 183 'type': 'static_library', |
| 184 'toolsets': ['host', 'target'], |
| 185 'include_dirs': [ |
| 186 '..', |
| 187 '../include', |
| 188 ], |
| 189 'includes': [ |
| 190 'io_impl_sources.gypi', |
| 191 'builtin_impl_sources.gypi', |
| 192 ], |
| 193 'dependencies': [ |
| 194 'generate_builtin_cc_file#host', |
| 195 'generate_io_cc_file#host', |
| 196 'generate_io_patch_cc_file#host', |
| 197 'generate_snapshot_file#host', |
| 198 'generate_resources_cc_file#host', |
| 199 ], |
| 200 'sources': [ |
| 201 'builtin_common.cc', |
| 202 'builtin_natives.cc', |
| 203 'builtin_nolib.cc', |
| 204 'builtin.h', |
| 205 'dartutils.cc', |
| 206 'dartutils.h', |
| 207 'io_natives.cc', |
| 208 'io_natives.h', |
| 209 'log_android.cc', |
| 210 'log_linux.cc', |
| 211 'log_macos.cc', |
| 212 'log_win.cc', |
| 213 'vmservice_dartium.h', |
| 214 'vmservice_dartium.cc', |
| 215 'vmservice_impl.cc', |
| 216 'vmservice_impl.h', |
| 217 '<(resources_cc_file)', |
| 218 '<(snapshot_cc_file)', |
| 219 ], |
| 220 'sources/': [ |
| 221 ['exclude', '_test\\.(cc|h)$'], |
| 222 ], |
| 223 'conditions': [ |
| 224 ['dart_io_support==1 and dart_io_secure_socket==1', { |
| 225 'dependencies': [ |
| 226 'bin/net/ssl.gyp:libssl_dart', |
| 227 ], |
| 228 }], |
| 229 ['dart_io_secure_socket==0', { |
| 230 'defines': [ |
| 231 'DART_IO_SECURE_SOCKET_DISABLED' |
| 232 ], |
| 233 }], |
| 234 ['OS=="win"', { |
| 235 'sources/' : [ |
| 236 ['exclude', 'fdutils.h'], |
| 237 ], |
| 238 # TODO(antonm): fix the implementation. |
| 239 # Current implementation accepts char* strings |
| 240 # and therefore fails to compile once _UNICODE is |
| 241 # enabled. That should be addressed using -A |
| 242 # versions of functions and adding necessary conversions. |
| 243 'configurations': { |
| 244 'Common_Base': { |
| 245 'msvs_configuration_attributes': { |
| 246 'CharacterSet': '0', |
| 247 }, |
| 248 }, |
| 249 }, |
| 250 'link_settings': { |
| 251 'libraries': [ '-liphlpapi.lib' ], |
| 252 }, |
| 253 }], |
| 254 ['OS=="mac"', { |
| 255 'link_settings': { |
| 256 'libraries': [ |
| 257 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 258 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', |
| 259 ], |
| 260 }, |
| 261 }], |
| 262 ['OS=="linux"', { |
| 263 'link_settings': { |
| 264 'libraries': [ |
| 265 '-ldl', |
| 266 ], |
| 267 }, |
| 268 }], |
| 269 ['OS=="android"', { |
| 270 'link_settings': { |
| 271 'libraries': [ |
| 272 '-ldl', |
| 273 ], |
| 274 }, |
| 275 }], |
| 276 ], |
| 277 }, |
| 179 { | 278 { |
| 180 'target_name': 'libdart_io', | 279 'target_name': 'libdart_io', |
| 181 'type': 'static_library', | 280 'type': 'static_library', |
| 182 'toolsets': ['host', 'target'], | 281 'toolsets': ['host', 'target'], |
| 183 'include_dirs': [ | 282 'include_dirs': [ |
| 184 '..', | 283 '..', |
| 185 ], | 284 ], |
| 186 'includes': [ | 285 'includes': [ |
| 187 'io_impl_sources.gypi', | 286 'io_impl_sources.gypi', |
| 188 ], | 287 ], |
| 189 'sources': [ | 288 'sources': [ |
| 190 'io_natives.h', | 289 'io_natives.h', |
| 191 'io_natives.cc', | 290 'io_natives.cc', |
| 192 ], | 291 ], |
| 193 'conditions': [ | 292 'conditions': [ |
| 194 ['dart_io_support==1', { | 293 ['dart_io_support==1 and dart_io_secure_socket==1', { |
| 195 'dependencies': [ | 294 'dependencies': [ |
| 196 'bin/net/ssl.gyp:libssl_dart', | 295 'bin/net/ssl.gyp:libssl_dart', |
| 197 ], | 296 ], |
| 198 }], | 297 }], |
| 298 ['dart_io_support==1 and dart_io_secure_socket==0', { |
| 299 'dependencies': [ |
| 300 'bin/net/zlib.gyp:zlib_dart', |
| 301 ], |
| 302 }], |
| 303 ['dart_io_secure_socket==0', { |
| 304 'defines': [ |
| 305 'DART_IO_SECURE_SOCKET_DISABLED' |
| 306 ], |
| 307 }], |
| 199 ['OS=="win"', { | 308 ['OS=="win"', { |
| 200 'link_settings': { | 309 'link_settings': { |
| 201 'libraries': [ '-liphlpapi.lib' ], | 310 'libraries': [ '-liphlpapi.lib' ], |
| 202 }, | 311 }, |
| 203 # TODO(antonm): fix the implementation. | 312 # TODO(antonm): fix the implementation. |
| 204 # Current implementation accepts char* strings | 313 # Current implementation accepts char* strings |
| 205 # and therefore fails to compile once _UNICODE is | 314 # and therefore fails to compile once _UNICODE is |
| 206 # enabled. That should be addressed using -A | 315 # enabled. That should be addressed using -A |
| 207 # versions of functions and adding necessary conversions. | 316 # versions of functions and adding necessary conversions. |
| 208 'configurations': { | 317 'configurations': { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 'libdart_withcore', | 383 'libdart_withcore', |
| 275 'libdart_builtin', | 384 'libdart_builtin', |
| 276 ], | 385 ], |
| 277 'include_dirs': [ | 386 'include_dirs': [ |
| 278 '..', | 387 '..', |
| 279 ], | 388 ], |
| 280 'sources': [ | 389 'sources': [ |
| 281 'gen_snapshot.cc', | 390 'gen_snapshot.cc', |
| 282 # Very limited native resolver provided. | 391 # Very limited native resolver provided. |
| 283 'builtin_gen_snapshot.cc', | 392 'builtin_gen_snapshot.cc', |
| 393 'builtin_common.cc', |
| 284 'builtin.cc', | 394 'builtin.cc', |
| 285 'builtin.h', | 395 'builtin.h', |
| 396 'platform_android.cc', |
| 397 'platform_linux.cc', |
| 398 'platform_macos.cc', |
| 399 'platform_win.cc', |
| 400 'platform.h', |
| 286 # Include generated source files. | 401 # Include generated source files. |
| 287 '<(builtin_cc_file)', | 402 '<(builtin_cc_file)', |
| 288 '<(io_cc_file)', | 403 '<(io_cc_file)', |
| 289 '<(io_patch_cc_file)', | 404 '<(io_patch_cc_file)', |
| 290 ], | 405 ], |
| 406 'defines': [ |
| 407 'PLATFORM_DISABLE_SOCKET' |
| 408 ], |
| 291 'conditions': [ | 409 'conditions': [ |
| 292 ['OS=="win"', { | 410 ['OS=="win"', { |
| 293 'link_settings': { | 411 'link_settings': { |
| 294 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 412 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 295 }, | 413 }, |
| 296 }], | 414 }], |
| 297 ], | 415 ], |
| 298 }, | 416 }, |
| 299 { | 417 { |
| 300 # Generate snapshot bin file. | 418 # Generate snapshot bin file. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 'libdart_io', | 554 'libdart_io', |
| 437 'build_observatory#host', | 555 'build_observatory#host', |
| 438 'generate_snapshot_file#host', | 556 'generate_snapshot_file#host', |
| 439 'generate_resources_cc_file#host', | 557 'generate_resources_cc_file#host', |
| 440 ], | 558 ], |
| 441 'include_dirs': [ | 559 'include_dirs': [ |
| 442 '..', | 560 '..', |
| 443 ], | 561 ], |
| 444 'sources': [ | 562 'sources': [ |
| 445 'main.cc', | 563 'main.cc', |
| 564 'builtin_common.cc', |
| 446 'builtin_natives.cc', | 565 'builtin_natives.cc', |
| 447 'builtin_nolib.cc', | 566 'builtin_nolib.cc', |
| 448 'builtin.h', | 567 'builtin.h', |
| 449 'io_natives.h', | 568 'io_natives.h', |
| 450 'vmservice.h', | 569 'vmservice.h', |
| 451 'vmservice_impl.cc', | 570 'vmservice_impl.cc', |
| 452 'vmservice_impl.h', | 571 'vmservice_impl.h', |
| 453 '<(snapshot_cc_file)', | 572 '<(snapshot_cc_file)', |
| 454 '<(resources_cc_file)', | 573 '<(resources_cc_file)', |
| 455 ], | 574 ], |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 'libdart_withcore', | 606 'libdart_withcore', |
| 488 'libdart_builtin', | 607 'libdart_builtin', |
| 489 'libdart_io', | 608 'libdart_io', |
| 490 'generate_bootstrap_resources_cc_file#host', | 609 'generate_bootstrap_resources_cc_file#host', |
| 491 ], | 610 ], |
| 492 'include_dirs': [ | 611 'include_dirs': [ |
| 493 '..', | 612 '..', |
| 494 ], | 613 ], |
| 495 'sources': [ | 614 'sources': [ |
| 496 'main.cc', | 615 'main.cc', |
| 616 'builtin_common.cc', |
| 617 'builtin_natives.cc', |
| 497 'builtin.cc', | 618 'builtin.cc', |
| 498 'builtin_natives.cc', | |
| 499 'builtin.h', | 619 'builtin.h', |
| 500 'io_natives.h', | 620 'io_natives.h', |
| 501 'vmservice.h', | 621 'vmservice.h', |
| 502 'vmservice_impl.cc', | 622 'vmservice_impl.cc', |
| 503 'vmservice_impl.h', | 623 'vmservice_impl.h', |
| 504 # Include generated source files. | 624 # Include generated source files. |
| 505 '<(builtin_cc_file)', | 625 '<(builtin_cc_file)', |
| 506 '<(io_cc_file)', | 626 '<(io_cc_file)', |
| 507 '<(io_patch_cc_file)', | 627 '<(io_patch_cc_file)', |
| 508 '<(bootstrap_resources_cc_file)', | 628 '<(bootstrap_resources_cc_file)', |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 'libdart_withcore', | 660 'libdart_withcore', |
| 541 'libdart_builtin', | 661 'libdart_builtin', |
| 542 'libdart_io', | 662 'libdart_io', |
| 543 'generate_resources_cc_file#host', | 663 'generate_resources_cc_file#host', |
| 544 ], | 664 ], |
| 545 'include_dirs': [ | 665 'include_dirs': [ |
| 546 '..', | 666 '..', |
| 547 ], | 667 ], |
| 548 'sources': [ | 668 'sources': [ |
| 549 'main.cc', | 669 'main.cc', |
| 670 'builtin_common.cc', |
| 671 'builtin_natives.cc', |
| 550 'builtin.cc', | 672 'builtin.cc', |
| 551 'builtin_natives.cc', | |
| 552 'builtin.h', | 673 'builtin.h', |
| 553 'io_natives.h', | 674 'io_natives.h', |
| 554 'vmservice.h', | 675 'vmservice.h', |
| 555 'vmservice_impl.cc', | 676 'vmservice_impl.cc', |
| 556 'vmservice_impl.h', | 677 'vmservice_impl.h', |
| 557 # Include generated source files. | 678 # Include generated source files. |
| 558 '<(builtin_cc_file)', | 679 '<(builtin_cc_file)', |
| 559 '<(io_cc_file)', | 680 '<(io_cc_file)', |
| 560 '<(io_patch_cc_file)', | 681 '<(io_patch_cc_file)', |
| 561 '<(resources_cc_file)', | 682 '<(resources_cc_file)', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 'libdart_io', | 722 'libdart_io', |
| 602 'generate_snapshot_file#host', | 723 'generate_snapshot_file#host', |
| 603 'generate_snapshot_test_dat_file#host', | 724 'generate_snapshot_test_dat_file#host', |
| 604 ], | 725 ], |
| 605 'include_dirs': [ | 726 'include_dirs': [ |
| 606 '..', | 727 '..', |
| 607 '<(gen_source_dir)', | 728 '<(gen_source_dir)', |
| 608 ], | 729 ], |
| 609 'sources': [ | 730 'sources': [ |
| 610 'run_vm_tests.cc', | 731 'run_vm_tests.cc', |
| 732 'builtin_common.cc', |
| 611 'builtin_natives.cc', | 733 'builtin_natives.cc', |
| 612 'builtin_nolib.cc', | 734 'builtin_nolib.cc', |
| 613 'builtin.h', | 735 'builtin.h', |
| 614 'io_natives.h', | 736 'io_natives.h', |
| 615 # Include generated source files. | 737 # Include generated source files. |
| 616 '<(snapshot_cc_file)', | 738 '<(snapshot_cc_file)', |
| 617 '<(builtin_cc_file)', | 739 '<(builtin_cc_file)', |
| 618 '<(io_cc_file)', | 740 '<(io_cc_file)', |
| 619 '<(io_patch_cc_file)', | 741 '<(io_patch_cc_file)', |
| 620 ], | 742 ], |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 }], | 805 }], |
| 684 ['OS=="linux"', { | 806 ['OS=="linux"', { |
| 685 'cflags': [ | 807 'cflags': [ |
| 686 '-fPIC', | 808 '-fPIC', |
| 687 ], | 809 ], |
| 688 }], | 810 }], |
| 689 ], | 811 ], |
| 690 }, | 812 }, |
| 691 ], | 813 ], |
| 692 } | 814 } |
| OLD | NEW |