GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/node.gyp at master · apapirovski/node Expand file tree/ Copy pathnode.gypMore file actions 1504 lines (1458 loc) · 46.3 KB / Copy pathnode.gypFile metadata and controls1504 lines (1458 loc) · 46.3 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 { 'variables': { 'v8_use_siphash%': 0, 'v8_trace_maps%': 0, 'v8_enable_pointer_compression%': 0, 'v8_enable_31bit_smis_on_64bit_arch%': 0, 'node_use_dtrace%': 'false', 'node_use_etw%': 'false', 'node_no_browser_globals%': 'false', 'node_use_node_snapshot%': 'false', 'node_use_v8_platform%': 'true', 'node_use_bundled_v8%': 'true', 'node_shared%': 'false', 'force_dynamic_crt%': 0, 'ossfuzz' : 'false', 'node_module_version%': '', 'node_shared_brotli%': 'false', 'node_shared_zlib%': 'false', 'node_shared_http_parser%': 'false', 'node_shared_cares%': 'false', 'node_shared_libuv%': 'false', 'node_shared_nghttp2%': 'false', 'node_use_openssl%': 'true', 'node_shared_openssl%': 'false', 'node_v8_options%': '', 'node_core_target_name%': 'node', 'node_lib_target_name%': 'libnode', 'node_intermediate_lib_type%': 'static_library', 'node_builtin_modules_path%': '', # We list the deps/ files out instead of globbing them in js2c.py since we # only include a subset of all the files under these directories. # The lengths of their file names combined should not exceed the # Windows command length limit or there would be an error. # See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 'library_files': [ '<@(node_library_files)', ], 'deps_files': [ 'deps/v8/tools/splaytree.mjs', 'deps/v8/tools/codemap.mjs', 'deps/v8/tools/consarray.mjs', 'deps/v8/tools/csvparser.mjs', 'deps/v8/tools/profile.mjs', 'deps/v8/tools/profile_view.mjs', 'deps/v8/tools/logreader.mjs', 'deps/v8/tools/arguments.mjs', 'deps/v8/tools/tickprocessor.mjs', 'deps/v8/tools/sourcemap.mjs', 'deps/v8/tools/tickprocessor-driver.mjs', 'deps/acorn/acorn/dist/acorn.js', 'deps/acorn/acorn-walk/dist/walk.js', 'deps/cjs-module-lexer/lexer.js', 'deps/cjs-module-lexer/dist/lexer.js', ], 'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)', 'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)', 'conditions': [ ['GENERATOR == "ninja"', { 'node_text_start_object_path': 'src/large_pages/node_text_start.node_text_start.o' }, { 'node_text_start_object_path': 'node_text_start/src/large_pages/node_text_start.o' }], [ 'node_shared=="true"', { 'node_target_type%': 'shared_library', 'conditions': [ ['OS=="aix"', { # For AIX, always generate static library first, # It needs an extra step to generate exp and # then use both static lib and exp to create # shared lib. 'node_intermediate_lib_type': 'static_library', }, { 'node_intermediate_lib_type': 'shared_library', }], ], }, { 'node_target_type%': 'executable', }], [ 'OS=="win" and ' 'node_use_openssl=="true" and ' 'node_shared_openssl=="false"', { 'use_openssl_def%': 1, }, { 'use_openssl_def%': 0, }], ], }, 'target_defaults': { # Putting these explicitly here so not to depend on `common.gypi`. # `common.gypi` need to be more general because it is used to build userland native addons. # Refs: https://github.com/nodejs/node-gyp/issues/1118 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ], 'xcode_settings': { 'WARNING_CFLAGS': [ '-Wall', '-Wendif-labels', '-W', '-Wno-unused-parameter', '-Werror=undefined-inline', ], }, # Relevant only for x86. # Refs: https://github.com/nodejs/node/pull/25852 # Refs: https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers 'msvs_settings': { 'VCLinkerTool': { 'ImageHasSafeExceptionHandlers': 'false', }, }, 'conditions': [ ['OS=="aix"', { 'ldflags': [ '-Wl,-bnoerrmsg', ], }], ['OS == "linux" and llvm_version != "0.0"', { 'libraries': ['-latomic'], }], ], }, 'targets': [ { 'target_name': 'node_text_start', 'type': 'none', 'conditions': [ [ 'OS in "linux freebsd solaris" and ' 'target_arch=="x64"', { 'type': 'static_library', 'sources': [ 'src/large_pages/node_text_start.S' ] }], ] }, { 'target_name': '<(node_core_target_name)', 'type': 'executable', 'defines': [ 'NODE_ARCH="<(target_arch)"', 'NODE_PLATFORM="<(OS)"', 'NODE_WANT_INTERNALS=1', ], 'includes': [ 'node.gypi' ], 'include_dirs': [ 'src', 'deps/v8/include' ], 'sources': [ 'src/node_main.cc' ], 'dependencies': [ 'deps/histogram/histogram.gyp:histogram', 'deps/uvwasi/uvwasi.gyp:uvwasi', ], 'msvs_settings': { 'VCLinkerTool': { 'GenerateMapFile': 'true', # /MAP 'MapExports': 'true', # /MAPINFO:EXPORTS 'RandomizedBaseAddress': 2, # enable ASLR 'DataExecutionPrevention': 2, # enable DEP 'AllowIsolation': 'true', }, }, # - "C4244: conversion from 'type1' to 'type2', possible loss of data" # Ususaly safe. Disable for `dep`, enable for `src` 'msvs_disabled_warnings!': [4244], 'conditions': [ [ 'error_on_warn=="true"', { 'cflags': ['-Werror'], 'xcode_settings': { 'WARNING_CFLAGS': [ '-Werror' ], }, }], [ 'node_intermediate_lib_type=="static_library" and ' 'node_shared=="true" and OS=="aix"', { # For AIX, shared lib is linked by static lib and .exp. In the # case here, the executable needs to link to shared lib. # Therefore, use 'node_aix_shared' target to generate the # shared lib and then executable. 'dependencies': [ 'node_aix_shared' ], }, { 'dependencies': [ '<(node_lib_target_name)' ], }], [ 'node_intermediate_lib_type=="static_library" and node_shared=="false"', { 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', ], }, 'msvs_settings': { 'VCLinkerTool': { 'AdditionalOptions': [ '/WHOLEARCHIVE:<(node_lib_target_name)<(STATIC_LIB_SUFFIX)', '/WHOLEARCHIVE:<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', ], }, }, 'conditions': [ ['OS != "aix" and OS != "mac"', { 'ldflags': [ '-Wl,--whole-archive', '<(obj_dir)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', '<(obj_dir)/tools/v8_gypfiles/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)', '-Wl,--no-whole-archive', ], }], [ 'OS=="win"', { 'sources': [ 'src/res/node.rc' ], 'conditions': [ [ 'node_use_etw=="true"', { 'sources': [ 'tools/msvs/genfiles/node_etw_provider.rc' ], }], ], }], ], }], [ 'node_shared=="true"', { 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ], }, }], [ 'enable_lto=="true"', { 'xcode_settings': { 'OTHER_LDFLAGS': [ # man ld -export_dynamic: # Preserves all global symbols in main executables during LTO. # Without this option, Link Time Optimization is allowed to # inline and remove global functions. This option is used when # a main executable may load a plug-in which requires certain # symbols from the main executable. '-Wl,-export_dynamic', ], }, }], ['OS=="win"', { 'libraries': [ 'Dbghelp.lib', 'winmm.lib', 'Ws2_32.lib', ], }], ['node_with_ltcg=="true"', { 'msvs_settings': { 'VCCLCompilerTool': { 'WholeProgramOptimization': 'true' # /GL, whole program optimization, needed for LTCG }, 'VCLibrarianTool': { 'AdditionalOptions': [ '/LTCG:INCREMENTAL', # link time code generation ], }, 'VCLinkerTool': { 'OptimizeReferences': 2, # /OPT:REF 'EnableCOMDATFolding': 2, # /OPT:ICF 'LinkIncremental': 1, # disable incremental linking 'AdditionalOptions': [ '/LTCG:INCREMENTAL', # incremental link-time code generation ], } } }, { 'msvs_settings': { 'VCCLCompilerTool': { 'WholeProgramOptimization': 'false' }, 'VCLinkerTool': { 'LinkIncremental': 2 # enable incremental linking }, }, }], ['node_use_node_code_cache=="true"', { 'dependencies': [ 'mkcodecache', ], 'actions': [ { 'action_name': 'run_mkcodecache', 'process_outputs_as_sources': 1, 'inputs': [ '<(mkcodecache_exec)', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_code_cache.cc', ], 'action': [ '<@(_inputs)', '<@(_outputs)', ], }, ], }, { 'sources': [ 'src/node_code_cache_stub.cc' ], }], ['node_use_node_snapshot=="true"', { 'dependencies': [ 'node_mksnapshot', ], 'actions': [ { 'action_name': 'node_mksnapshot', 'process_outputs_as_sources': 1, 'inputs': [ '<(node_mksnapshot_exec)', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc', ], 'action': [ '<@(_inputs)', '<@(_outputs)', ], }, ], }, { 'sources': [ 'src/node_snapshot_stub.cc' ], }], [ 'OS in "linux freebsd" and ' 'target_arch=="x64"', { 'dependencies': [ 'node_text_start' ], 'ldflags+': [ '<(obj_dir)/<(node_text_start_object_path)' ] }], ['node_fipsinstall=="true"', { 'variables': { 'openssl-cli': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)openssl-cli<(EXECUTABLE_SUFFIX)', 'provider_name': 'libopenssl-fipsmodule', 'opensslconfig': './deps/openssl/openssl/apps/openssl.cnf', 'conditions': [ ['GENERATOR == "ninja"', { 'fipsmodule_internal': '<(PRODUCT_DIR)/lib/<(provider_name).so', 'fipsmodule': '<(PRODUCT_DIR)/obj/lib/openssl-modules/fips.so', 'fipsconfig': '<(PRODUCT_DIR)/obj/lib/fipsmodule.cnf', 'opensslconfig_internal': '<(PRODUCT_DIR)/obj/lib/openssl.cnf', }, { 'fipsmodule_internal': '<(PRODUCT_DIR)/obj.target/deps/openssl/<(provider_name).so', 'fipsmodule': '<(PRODUCT_DIR)/obj.target/deps/openssl/lib/openssl-modules/fips.so', 'fipsconfig': '<(PRODUCT_DIR)/obj/deps/openssl/fipsmodule.cnf', 'opensslconfig_internal': '<(PRODUCT_DIR)/obj.target/deps/openssl/openssl.cnf', }], ], }, 'actions': [ { 'action_name': 'fipsinstall', 'process_outputs_as_sources': 1, 'inputs': [ '<(fipsmodule_internal)', ], 'outputs': [ '<(fipsconfig)', ], 'action': [ '<(openssl-cli)', 'fipsinstall', '-provider_name', '<(provider_name)', '-module', '<(fipsmodule_internal)', '-out', '<(fipsconfig)', #'-quiet', ], }, { 'action_name': 'copy_fips_module', 'inputs': [ '<(fipsmodule_internal)', ], 'outputs': [ '<(fipsmodule)', ], 'action': [ 'python', 'tools/copyfile.py', '<(fipsmodule_internal)', '<(fipsmodule)', ], }, { 'action_name': 'copy_openssl_cnf_and_include_fips_cnf', 'inputs': [ '<(opensslconfig)', ], 'outputs': [ '<(opensslconfig_internal)', ], 'action': [ 'python', 'tools/enable_fips_include.py', '<(opensslconfig)', '<(opensslconfig_internal)', '<(fipsconfig)', ], }, ], }, { 'variables': { 'opensslconfig_internal': '<(obj_dir)/deps/openssl/openssl.cnf', 'opensslconfig': './deps/openssl/openssl/apps/openssl.cnf', }, 'actions': [ { 'action_name': 'reset_openssl_cnf', 'inputs': [ '<(opensslconfig)', ], 'outputs': [ '<(opensslconfig_internal)', ], 'action': [ 'python', 'tools/copyfile.py', './deps/openssl/openssl/apps/openssl.cnf', '<(obj_dir)/deps/openssl/openssl.cnf', ], }, ], }], ], }, # node_core_target_name { 'target_name': '<(node_lib_target_name)', 'type': '<(node_intermediate_lib_type)', 'includes': [ 'node.gypi', ], 'include_dirs': [ 'src', '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h ], 'dependencies': [ 'deps/googletest/googletest.gyp:gtest_prod', 'deps/histogram/histogram.gyp:histogram', 'deps/uvwasi/uvwasi.gyp:uvwasi', ], 'sources': [ 'src/api/async_resource.cc', 'src/api/callback.cc', 'src/api/embed_helpers.cc', 'src/api/encoding.cc', 'src/api/environment.cc', 'src/api/exceptions.cc', 'src/api/hooks.cc', 'src/api/utils.cc', 'src/async_wrap.cc', 'src/cares_wrap.cc', 'src/connect_wrap.cc', 'src/connection_wrap.cc', 'src/debug_utils.cc', 'src/env.cc', 'src/fs_event_wrap.cc', 'src/handle_wrap.cc', 'src/heap_utils.cc', 'src/histogram.cc', 'src/js_native_api.h', 'src/js_native_api_types.h', 'src/js_native_api_v8.cc', 'src/js_native_api_v8.h', 'src/js_native_api_v8_internals.h', 'src/js_stream.cc', 'src/json_utils.cc', 'src/js_udp_wrap.cc', 'src/module_wrap.cc', 'src/node.cc', 'src/node_api.cc', 'src/node_binding.cc', 'src/node_blob.cc', 'src/node_buffer.cc', 'src/node_config.cc', 'src/node_constants.cc', 'src/node_contextify.cc', 'src/node_credentials.cc', 'src/node_dir.cc', 'src/node_env_var.cc', 'src/node_errors.cc', 'src/node_external_reference.cc', 'src/node_file.cc', 'src/node_http_parser.cc', 'src/node_http2.cc', 'src/node_i18n.cc', 'src/node_main_instance.cc', 'src/node_messaging.cc', 'src/node_metadata.cc', 'src/node_native_module.cc', 'src/node_native_module_env.cc', 'src/node_options.cc', 'src/node_os.cc', 'src/node_perf.cc', 'src/node_platform.cc', 'src/node_postmortem_metadata.cc', 'src/node_process_events.cc', 'src/node_process_methods.cc', 'src/node_process_object.cc', 'src/node_report.cc', 'src/node_report_module.cc', 'src/node_report_utils.cc', 'src/node_serdes.cc', 'src/node_snapshotable.cc', 'src/node_sockaddr.cc', 'src/node_stat_watcher.cc', 'src/node_symbols.cc', 'src/node_task_queue.cc', 'src/node_trace_events.cc', 'src/node_types.cc', 'src/node_url.cc', 'src/node_url_tables.cc', 'src/node_util.cc', 'src/node_v8.cc', 'src/node_wasi.cc', 'src/node_watchdog.cc', 'src/node_worker.cc', 'src/node_zlib.cc', 'src/pipe_wrap.cc', 'src/process_wrap.cc', 'src/signal_wrap.cc', 'src/spawn_sync.cc', 'src/stream_base.cc', 'src/stream_pipe.cc', 'src/stream_wrap.cc', 'src/string_bytes.cc', 'src/string_decoder.cc', 'src/tcp_wrap.cc', 'src/timers.cc', 'src/timer_wrap.cc', 'src/tracing/agent.cc', 'src/tracing/node_trace_buffer.cc', 'src/tracing/node_trace_writer.cc', 'src/tracing/trace_event.cc', 'src/tracing/traced_value.cc', 'src/tty_wrap.cc', 'src/udp_wrap.cc', 'src/util.cc', 'src/uv.cc', # headers to make for a more pleasant IDE experience 'src/aliased_buffer.h', 'src/aliased_struct.h', 'src/aliased_struct-inl.h', 'src/allocated_buffer.h', 'src/allocated_buffer-inl.h', 'src/async_wrap.h', 'src/async_wrap-inl.h', 'src/base_object.h', 'src/base_object-inl.h', 'src/base64.h', 'src/base64-inl.h', 'src/callback_queue.h', 'src/callback_queue-inl.h', 'src/connect_wrap.h', 'src/connection_wrap.h', 'src/debug_utils.h', 'src/debug_utils-inl.h', 'src/env.h', 'src/env-inl.h', 'src/handle_wrap.h', 'src/histogram.h', 'src/histogram-inl.h', 'src/js_stream.h', 'src/json_utils.h', 'src/large_pages/node_large_page.cc', 'src/large_pages/node_large_page.h', 'src/memory_tracker.h', 'src/memory_tracker-inl.h', 'src/module_wrap.h', 'src/node.h', 'src/node_api.h', 'src/node_api_types.h', 'src/node_binding.h', 'src/node_blob.h', 'src/node_buffer.h', 'src/node_constants.h', 'src/node_context_data.h', 'src/node_contextify.h', 'src/node_dir.h', 'src/node_errors.h', 'src/node_external_reference.h', 'src/node_file.h', 'src/node_file-inl.h', 'src/node_http_common.h', 'src/node_http_common-inl.h', 'src/node_http2.h', 'src/node_http2_state.h', 'src/node_i18n.h', 'src/node_internals.h', 'src/node_main_instance.h', 'src/node_mem.h', 'src/node_mem-inl.h', 'src/node_messaging.h', 'src/node_metadata.h', 'src/node_mutex.h', 'src/node_native_module.h', 'src/node_native_module_env.h', 'src/node_object_wrap.h', 'src/node_options.h', 'src/node_options-inl.h', 'src/node_perf.h', 'src/node_perf_common.h', 'src/node_platform.h', 'src/node_process.h', 'src/node_process-inl.h', 'src/node_report.h', 'src/node_revert.h', 'src/node_root_certs.h', 'src/node_snapshotable.h', 'src/node_sockaddr.h', 'src/node_sockaddr-inl.h', 'src/node_stat_watcher.h', 'src/node_union_bytes.h', 'src/node_url.h', 'src/node_version.h', 'src/node_v8.h', 'src/node_v8_platform-inl.h', 'src/node_wasi.h', 'src/node_watchdog.h', 'src/node_worker.h', 'src/pipe_wrap.h', 'src/req_wrap.h', 'src/req_wrap-inl.h', 'src/spawn_sync.h', 'src/stream_base.h', 'src/stream_base-inl.h', 'src/stream_pipe.h', 'src/stream_wrap.h', 'src/string_bytes.h', 'src/string_decoder.h', 'src/string_decoder-inl.h', 'src/string_search.h', 'src/tcp_wrap.h', 'src/tracing/agent.h', 'src/tracing/node_trace_buffer.h', 'src/tracing/node_trace_writer.h', 'src/tracing/trace_event.h', 'src/tracing/trace_event_common.h', 'src/tracing/traced_value.h', 'src/timer_wrap.h', 'src/timer_wrap-inl.h', 'src/tty_wrap.h', 'src/udp_wrap.h', 'src/util.h', 'src/util-inl.h', # Dependency headers 'deps/v8/include/v8.h', # javascript files to make for an even more pleasant IDE experience '<@(library_files)', '<@(deps_files)', # node.gyp is added by default, common.gypi is added for change detection 'common.gypi', ], 'variables': { 'openssl_system_ca_path%': '', 'openssl_default_cipher_list%': '', }, 'defines': [ 'NODE_ARCH="<(target_arch)"', 'NODE_PLATFORM="<(OS)"', 'NODE_WANT_INTERNALS=1', # Warn when using deprecated V8 APIs. 'V8_DEPRECATION_WARNINGS=1', 'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"', ], # - "C4244: conversion from 'type1' to 'type2', possible loss of data" # Ususaly safe. Disable for `dep`, enable for `src` 'msvs_disabled_warnings!': [4244], 'conditions': [ [ 'openssl_default_cipher_list!=""', { 'defines': [ 'NODE_OPENSSL_DEFAULT_CIPHER_LIST="<(openssl_default_cipher_list)"' ] }], [ 'error_on_warn=="true"', { 'cflags': ['-Werror'], 'xcode_settings': { 'WARNING_CFLAGS': [ '-Werror' ], }, }], [ 'node_builtin_modules_path!=""', { 'defines': [ 'NODE_BUILTIN_MODULES_PATH="<(node_builtin_modules_path)"' ] }], [ 'node_shared=="true"', { 'sources': [ 'src/node_snapshot_stub.cc', 'src/node_code_cache_stub.cc', ] }], [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { 'product_extension': '<(shlib_suffix)', 'xcode_settings': { 'LD_DYLIB_INSTALL_NAME': '@rpath/lib<(node_core_target_name).<(shlib_suffix)' }, }], ['node_shared=="true" and OS=="aix"', { 'product_name': 'node_base', }], [ 'v8_enable_inspector==1', { 'includes' : [ 'src/inspector/node_inspector.gypi' ], }, { 'defines': [ 'HAVE_INSPECTOR=0' ] }], [ 'OS=="win"', { 'conditions': [ [ 'node_intermediate_lib_type!="static_library"', { 'sources': [ 'src/res/node.rc', ], }], ], 'libraries': [ 'Dbghelp', 'Psapi', 'Ws2_32', ], }], [ 'node_use_etw=="true"', { 'defines': [ 'HAVE_ETW=1' ], 'dependencies': [ 'node_etw' ], 'include_dirs': [ 'src', 'tools/msvs/genfiles', '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h ], 'sources': [ 'src/node_win32_etw_provider.h', 'src/node_win32_etw_provider-inl.h', 'src/node_win32_etw_provider.cc', 'src/node_dtrace.h', 'src/node_dtrace.cc', 'tools/msvs/genfiles/node_etw_provider.h', ], 'conditions': [ ['node_intermediate_lib_type != "static_library"', { 'sources': [ 'tools/msvs/genfiles/node_etw_provider.rc', ], }], ], }], [ 'node_use_dtrace=="true"', { 'defines': [ 'HAVE_DTRACE=1' ], 'dependencies': [ 'node_dtrace_header', 'specialize_node_d', ], 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ], # # DTrace is supported on linux, solaris, mac, and bsd. There are # three object files associated with DTrace support, but they're # not all used all the time: # # node_dtrace.o all configurations # node_dtrace_ustack.o not supported on mac and linux # node_dtrace_provider.o All except OS X. "dtrace -G" is not # used on OS X. # # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not # actually exist. They're listed here to trick GYP into linking the # corresponding object files into the final "node" executable. These # object files are generated by "dtrace -G" using custom actions # below, and the GYP-generated Makefiles will properly build them when # needed. # 'sources': [ 'src/node_dtrace.h', 'src/node_dtrace.cc', ], 'conditions': [ [ 'OS=="linux"', { 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o' ], }], [ 'OS!="mac" and OS!="linux"', { 'sources': [ 'src/node_dtrace_ustack.cc', 'src/node_dtrace_provider.cc', ] } ] ] } ], [ 'node_use_openssl=="true"', { 'sources': [ 'src/crypto/crypto_aes.cc', 'src/crypto/crypto_bio.cc', 'src/crypto/crypto_common.cc', 'src/crypto/crypto_dsa.cc', 'src/crypto/crypto_hkdf.cc', 'src/crypto/crypto_pbkdf2.cc', 'src/crypto/crypto_sig.cc', 'src/crypto/crypto_timing.cc', 'src/crypto/crypto_cipher.cc', 'src/crypto/crypto_context.cc', 'src/crypto/crypto_ec.cc', 'src/crypto/crypto_hmac.cc', 'src/crypto/crypto_random.cc', 'src/crypto/crypto_rsa.cc', 'src/crypto/crypto_spkac.cc', 'src/crypto/crypto_util.cc', 'src/crypto/crypto_clienthello.cc', 'src/crypto/crypto_dh.cc', 'src/crypto/crypto_hash.cc', 'src/crypto/crypto_keys.cc', 'src/crypto/crypto_keygen.cc', 'src/crypto/crypto_scrypt.cc', 'src/crypto/crypto_tls.cc', 'src/crypto/crypto_aes.cc', 'src/crypto/crypto_x509.cc', 'src/crypto/crypto_bio.h', 'src/crypto/crypto_clienthello-inl.h', 'src/crypto/crypto_dh.h', 'src/crypto/crypto_groups.h', 'src/crypto/crypto_hmac.h', 'src/crypto/crypto_rsa.h', 'src/crypto/crypto_spkac.h', 'src/crypto/crypto_util.h', 'src/crypto/crypto_cipher.h', 'src/crypto/crypto_common.h', 'src/crypto/crypto_dsa.h', 'src/crypto/crypto_hash.h', 'src/crypto/crypto_keys.h', 'src/crypto/crypto_keygen.h', 'src/crypto/crypto_scrypt.h', 'src/crypto/crypto_tls.h', 'src/crypto/crypto_clienthello.h', 'src/crypto/crypto_context.h', 'src/crypto/crypto_ec.h', 'src/crypto/crypto_hkdf.h', 'src/crypto/crypto_pbkdf2.h', 'src/crypto/crypto_sig.h', 'src/crypto/crypto_random.h', 'src/crypto/crypto_timing.h', 'src/crypto/crypto_x509.h', 'src/node_crypto.cc', 'src/node_crypto.h' ], }], [ 'OS in "linux freebsd mac solaris" and ' 'target_arch=="x64" and ' 'node_target_type=="executable"', { 'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ], }], [ 'use_openssl_def==1', { # TODO(bnoordhuis) Make all platforms export the same list of symbols. # Teach mkssldef.py to generate linker maps that UNIX linkers understand. 'variables': { 'mkssldef_flags': [ # Categories to export. '-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,' 'PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,SOCK,STDIO,TLSEXT,' 'UI,FP_API,TLS1_METHOD,TLS1_1_METHOD,TLS1_2_METHOD,SCRYPT,OCSP,' 'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0', # Defines. '-DWIN32', # Symbols to filter from the export list. '-X^DSO', '-X^_', '-X^private_', # Base generated DEF on zlib.def '-Bdeps/zlib/win32/zlib.def' ], }, 'conditions': [ ['openssl_is_fips!=""', { 'variables': { 'mkssldef_flags': ['-DOPENSSL_FIPS'] }, }], ], 'actions': [ { 'action_name': 'mkssldef', 'inputs': [ 'deps/openssl/openssl/util/libcrypto.num', 'deps/openssl/openssl/util/libssl.num', ], 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'], 'process_outputs_as_sources': 1, 'action': [ '<(python)', 'tools/mkssldef.py', '<@(mkssldef_flags)', '-o', '<@(_outputs)', '<@(_inputs)', ], }, ], }], ], 'actions': [ { 'action_name': 'node_js2c', 'process_outputs_as_sources': 1, 'inputs': [ # Put the code first so it's a dependency and can be used for invocation. 'tools/js2c.py', '<@(library_files)', '<@(deps_files)', 'config.gypi' ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc', ], 'action': [ '<(python)', 'tools/js2c.py', '--directory', 'lib', '--target', '<@(_outputs)', 'config.gypi', '<@(deps_files)', ], }, ], }, # node_lib_target_name { # generate ETW header and resource files 'target_name': 'node_etw', 'type': 'none', 'conditions': [ [ 'node_use_etw=="true"', { 'actions': [ { 'action_name': 'node_etw', 'inputs': [ 'src/res/node_etw_provider.man' ], 'outputs': [ 'tools/msvs/genfiles/node_etw_provider.rc', 'tools/msvs/genfiles/node_etw_provider.h', 'tools/msvs/genfiles/node_etw_providerTEMP.BIN', ], 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ] } ] } ] ] }, # node_etw { 'target_name': 'node_dtrace_header', 'type': 'none', 'conditions': [ [ 'node_use_dtrace=="true" and OS!="linux"', { 'actions': [ { 'action_name': 'node_dtrace_header', 'inputs': [ 'src/node_provider.d' ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ], 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)', '-o', '<@(_outputs)' ] } ] } ], [ 'node_use_dtrace=="true" and OS=="linux"', { 'actions': [ { 'action_name': 'node_dtrace_header', 'inputs': [ 'src/node_provider.d' ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ], 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)', '-o', '<@(_outputs)' ] } ] } ], ] }, # node_dtrace_header { 'target_name': 'node_dtrace_provider', 'type': 'none', 'conditions': [ [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', { 'actions': [ { 'action_name': 'node_dtrace_provider_o', 'inputs': [ '<(obj_dir)/<(node_lib_target_name)/src/node_dtrace.o', ], 'outputs': [ '<(obj_dir)/<(node_lib_target_name)/src/node_dtrace_provider.o' ], 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d', '<@(_inputs)', '-o', '<@(_outputs)' ] } ] }], [ 'node_use_dtrace=="true" and OS=="linux"', { 'actions': [ { 'action_name': 'node_dtrace_provider_o', 'inputs': [ 'src/node_provider.d' ], 'outputs': [ |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |