|
43 | 43 | # Node's util.h may be accidentally included so use this to guard |
44 | 44 | # against compilation error. |
45 | 45 | 'SRC_UTIL_H_', |
| 46 | + 'GIT_REGEX_BUILTIN', |
46 | 47 | ], |
47 | 48 | 'dependencies': [ |
48 | 49 | 'zlib', |
49 | 50 | 'http_parser', |
| 51 | + 'pcre' |
50 | 52 | ], |
51 | 53 | # Automatically generated by using the following command in bash: |
52 | 54 | # find "./deps/libgit2/src" -mindepth 1 -type f ! -path "./deps/libgit2/src/win32/*" ! -path "./deps/libgit2/src/unix/*" ! -path "./deps/libgit2/src/hash/*" -print0 | xargs -0 -I {} echo " '{}'," |
|
357 | 359 | ['OS=="win"', { |
358 | 360 | 'defines': [ |
359 | 361 | 'GIT_WINHTTP', |
360 | | - 'GIT_REGEX_BUILTIN', |
361 | 362 | 'GIT_SHA1_WIN32' |
362 | 363 | ], |
363 | | - 'dependencies': [ |
364 | | - 'pcre', |
365 | | - ], |
366 | 364 | 'link_settings': { |
367 | 365 | 'libraries': [ |
368 | 366 | '-lcrypt32.lib', |
|
522 | 520 | 'msvs_disabled_warnings': [ |
523 | 521 | 4005, # macro redefinition |
524 | 522 | ], |
525 | | - 'include_dirs': [ |
526 | | - 'deps/libgit2/deps/regex', |
527 | | - ], |
528 | 523 | }], |
529 | 524 | ], |
530 | 525 | }, |
|
551 | 546 | }], |
552 | 547 | ], |
553 | 548 | }, |
554 | | - ], |
555 | | - 'conditions': [ |
556 | | - ['OS=="win"', { |
557 | | - 'targets': [ |
558 | | - { |
559 | | - 'target_name': 'pcre', |
560 | | - 'win_delay_load_hook': 'false', |
561 | | - 'type': 'static_library', |
562 | | - # Automatically generated by using the following command in bash: |
563 | | - # find "./deps/libgit2/deps/pcre" -regex ".*\.[h|c]" -print0 | xargs -0 -I {} echo " '{}'," |
564 | | - 'sources': [ |
565 | | - './deps/libgit2/deps/pcre/pcre.h', |
566 | | - './deps/libgit2/deps/pcre/pcreposix.c', |
567 | | - './deps/libgit2/deps/pcre/pcreposix.h', |
568 | | - './deps/libgit2/deps/pcre/pcre_byte_order.c', |
569 | | - './deps/libgit2/deps/pcre/pcre_chartables.c', |
570 | | - './deps/libgit2/deps/pcre/pcre_compile.c', |
571 | | - './deps/libgit2/deps/pcre/pcre_config.c', |
572 | | - './deps/libgit2/deps/pcre/pcre_dfa_exec.c', |
573 | | - './deps/libgit2/deps/pcre/pcre_exec.c', |
574 | | - './deps/libgit2/deps/pcre/pcre_fullinfo.c', |
575 | | - './deps/libgit2/deps/pcre/pcre_get.c', |
576 | | - './deps/libgit2/deps/pcre/pcre_globals.c', |
577 | | - './deps/libgit2/deps/pcre/pcre_internal.h', |
578 | | - './deps/libgit2/deps/pcre/pcre_jit_compile.c', |
579 | | - './deps/libgit2/deps/pcre/pcre_maketables.c', |
580 | | - './deps/libgit2/deps/pcre/pcre_newline.c', |
581 | | - './deps/libgit2/deps/pcre/pcre_ord2utf8.c', |
582 | | - './deps/libgit2/deps/pcre/pcre_printint.c', |
583 | | - './deps/libgit2/deps/pcre/pcre_refcount.c', |
584 | | - './deps/libgit2/deps/pcre/pcre_string_utils.c', |
585 | | - './deps/libgit2/deps/pcre/pcre_study.c', |
586 | | - './deps/libgit2/deps/pcre/pcre_tables.c', |
587 | | - './deps/libgit2/deps/pcre/pcre_ucd.c', |
588 | | - './deps/libgit2/deps/pcre/pcre_valid_utf8.c', |
589 | | - './deps/libgit2/deps/pcre/pcre_version.c', |
590 | | - './deps/libgit2/deps/pcre/pcre_xclass.c', |
591 | | - './deps/libgit2/deps/pcre/ucp.h', |
| 549 | + { |
| 550 | + 'target_name': 'pcre', |
| 551 | + 'win_delay_load_hook': 'false', |
| 552 | + 'type': 'static_library', |
| 553 | + # Automatically generated by using the following command in bash: |
| 554 | + # find "./deps/libgit2/deps/pcre" -regex ".*\.[h|c]" -print0 | xargs -0 -I {} echo " '{}'," |
| 555 | + 'sources': [ |
| 556 | + './deps/libgit2/deps/pcre/pcre.h', |
| 557 | + './deps/libgit2/deps/pcre/pcreposix.c', |
| 558 | + './deps/libgit2/deps/pcre/pcreposix.h', |
| 559 | + './deps/libgit2/deps/pcre/pcre_byte_order.c', |
| 560 | + './deps/libgit2/deps/pcre/pcre_chartables.c', |
| 561 | + './deps/libgit2/deps/pcre/pcre_compile.c', |
| 562 | + './deps/libgit2/deps/pcre/pcre_config.c', |
| 563 | + './deps/libgit2/deps/pcre/pcre_dfa_exec.c', |
| 564 | + './deps/libgit2/deps/pcre/pcre_exec.c', |
| 565 | + './deps/libgit2/deps/pcre/pcre_fullinfo.c', |
| 566 | + './deps/libgit2/deps/pcre/pcre_get.c', |
| 567 | + './deps/libgit2/deps/pcre/pcre_globals.c', |
| 568 | + './deps/libgit2/deps/pcre/pcre_internal.h', |
| 569 | + './deps/libgit2/deps/pcre/pcre_jit_compile.c', |
| 570 | + './deps/libgit2/deps/pcre/pcre_maketables.c', |
| 571 | + './deps/libgit2/deps/pcre/pcre_newline.c', |
| 572 | + './deps/libgit2/deps/pcre/pcre_ord2utf8.c', |
| 573 | + './deps/libgit2/deps/pcre/pcre_printint.c', |
| 574 | + './deps/libgit2/deps/pcre/pcre_refcount.c', |
| 575 | + './deps/libgit2/deps/pcre/pcre_string_utils.c', |
| 576 | + './deps/libgit2/deps/pcre/pcre_study.c', |
| 577 | + './deps/libgit2/deps/pcre/pcre_tables.c', |
| 578 | + './deps/libgit2/deps/pcre/pcre_ucd.c', |
| 579 | + './deps/libgit2/deps/pcre/pcre_valid_utf8.c', |
| 580 | + './deps/libgit2/deps/pcre/pcre_version.c', |
| 581 | + './deps/libgit2/deps/pcre/pcre_xclass.c', |
| 582 | + './deps/libgit2/deps/pcre/ucp.h', |
592 | 583 |
|
593 | | - ], |
594 | | - 'defines': [ |
595 | | - 'SUPPORT_PCRE8=1', |
596 | | - 'LINK_SIZE=2', |
597 | | - 'PARENS_NEST_LIMIT=250', |
598 | | - 'MATCH_LIMIT=10000000', |
599 | | - 'MATCH_LIMIT_RECURSION="MATCH_LIMIT"', |
600 | | - 'NEWLINE="LF"', |
601 | | - 'NO_RECURSE=1', |
602 | | - 'POSIX_MALLOC_THRESHOLD=10', |
603 | | - 'BSR_ANYCRLF=0', |
604 | | - 'MAX_NAME_SIZE=32', |
605 | | - 'MAX_NAME_COUNT=10000', |
606 | | - ], |
607 | | - 'include_dirs': [], |
608 | | - 'direct_dependent_settings': { |
609 | | - 'include_dirs': [ |
610 | | - 'deps/libgit2/deps/pcre', |
611 | | - ], |
612 | | - }, |
613 | | - }, |
614 | | - ] |
615 | | - }] |
616 | | - ] |
| 584 | + ], |
| 585 | + 'defines': [ |
| 586 | + 'SUPPORT_PCRE8=1', |
| 587 | + 'LINK_SIZE=2', |
| 588 | + 'PARENS_NEST_LIMIT=250', |
| 589 | + 'MATCH_LIMIT=10000000', |
| 590 | + 'MATCH_LIMIT_RECURSION="MATCH_LIMIT"', |
| 591 | + 'NEWLINE="LF"', |
| 592 | + 'NO_RECURSE=1', |
| 593 | + 'POSIX_MALLOC_THRESHOLD=10', |
| 594 | + 'BSR_ANYCRLF=0', |
| 595 | + 'MAX_NAME_SIZE=32', |
| 596 | + 'MAX_NAME_COUNT=10000', |
| 597 | + ], |
| 598 | + 'include_dirs': [], |
| 599 | + 'direct_dependent_settings': { |
| 600 | + 'include_dirs': [ |
| 601 | + 'deps/libgit2/deps/pcre', |
| 602 | + ], |
| 603 | + }, |
| 604 | + }, |
| 605 | + ], |
617 | 606 | } |
0 commit comments