Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 899a604

Browse files
committed
Move pcre to common targets
1 parent 9b0131c commit 899a604

File tree

1 file changed

+57
-65
lines changed

1 file changed

+57
-65
lines changed

binding.gyp

+57-65
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
'dependencies': [
4848
'zlib',
4949
'http_parser',
50+
'pcre'
5051
],
5152
# Automatically generated by using the following command in bash:
5253
# 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 " '{}',"
@@ -360,9 +361,6 @@
360361
'GIT_REGEX_BUILTIN',
361362
'GIT_SHA1_WIN32'
362363
],
363-
'dependencies': [
364-
'pcre',
365-
],
366364
'link_settings': {
367365
'libraries': [
368366
'-lcrypt32.lib',
@@ -551,67 +549,61 @@
551549
}],
552550
],
553551
},
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',
552+
{
553+
'target_name': 'pcre',
554+
'win_delay_load_hook': 'false',
555+
'type': 'static_library',
556+
# Automatically generated by using the following command in bash:
557+
# find "./deps/libgit2/deps/pcre" -regex ".*\.[h|c]" -print0 | xargs -0 -I {} echo " '{}',"
558+
'sources': [
559+
'./deps/libgit2/deps/pcre/pcre.h',
560+
'./deps/libgit2/deps/pcre/pcreposix.c',
561+
'./deps/libgit2/deps/pcre/pcreposix.h',
562+
'./deps/libgit2/deps/pcre/pcre_byte_order.c',
563+
'./deps/libgit2/deps/pcre/pcre_chartables.c',
564+
'./deps/libgit2/deps/pcre/pcre_compile.c',
565+
'./deps/libgit2/deps/pcre/pcre_config.c',
566+
'./deps/libgit2/deps/pcre/pcre_dfa_exec.c',
567+
'./deps/libgit2/deps/pcre/pcre_exec.c',
568+
'./deps/libgit2/deps/pcre/pcre_fullinfo.c',
569+
'./deps/libgit2/deps/pcre/pcre_get.c',
570+
'./deps/libgit2/deps/pcre/pcre_globals.c',
571+
'./deps/libgit2/deps/pcre/pcre_internal.h',
572+
'./deps/libgit2/deps/pcre/pcre_jit_compile.c',
573+
'./deps/libgit2/deps/pcre/pcre_maketables.c',
574+
'./deps/libgit2/deps/pcre/pcre_newline.c',
575+
'./deps/libgit2/deps/pcre/pcre_ord2utf8.c',
576+
'./deps/libgit2/deps/pcre/pcre_printint.c',
577+
'./deps/libgit2/deps/pcre/pcre_refcount.c',
578+
'./deps/libgit2/deps/pcre/pcre_string_utils.c',
579+
'./deps/libgit2/deps/pcre/pcre_study.c',
580+
'./deps/libgit2/deps/pcre/pcre_tables.c',
581+
'./deps/libgit2/deps/pcre/pcre_ucd.c',
582+
'./deps/libgit2/deps/pcre/pcre_valid_utf8.c',
583+
'./deps/libgit2/deps/pcre/pcre_version.c',
584+
'./deps/libgit2/deps/pcre/pcre_xclass.c',
585+
'./deps/libgit2/deps/pcre/ucp.h',
592586

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-
]
587+
],
588+
'defines': [
589+
'SUPPORT_PCRE8=1',
590+
'LINK_SIZE=2',
591+
'PARENS_NEST_LIMIT=250',
592+
'MATCH_LIMIT=10000000',
593+
'MATCH_LIMIT_RECURSION="MATCH_LIMIT"',
594+
'NEWLINE="LF"',
595+
'NO_RECURSE=1',
596+
'POSIX_MALLOC_THRESHOLD=10',
597+
'BSR_ANYCRLF=0',
598+
'MAX_NAME_SIZE=32',
599+
'MAX_NAME_COUNT=10000',
600+
],
601+
'include_dirs': [],
602+
'direct_dependent_settings': {
603+
'include_dirs': [
604+
'deps/libgit2/deps/pcre',
605+
],
606+
},
607+
},
608+
],
617609
}

0 commit comments

Comments
 (0)