From fd6a80eba4e262ad852d927e260de948f65e214a Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 19 Jan 2016 13:03:41 +0800 Subject: [PATCH] Visual Studio builds: Include pcre_version.c in build ... for builds using the PCRE bundled with the GLib sources, so that pcre_version() will also be defined, and be exported so that the regex test program will properly link when the bundled PCRE sources are used. This is a follow-up commit to 476f30a. --- build/win32/vs10/glib-build-defines.props | 6 +++++- build/win32/vs10/glib.vcxproj.filtersin | 3 +++ build/win32/vs10/glib.vcxprojin | 14 ++++++++++++++ build/win32/vs9/glib-build-defines.vsprops | 4 ++++ build/win32/vs9/glib.vcprojin | 10 ++++++++++ 5 files changed, 36 insertions(+), 1 deletion(-) diff --git a/build/win32/vs10/glib-build-defines.props b/build/win32/vs10/glib-build-defines.props index 229ea8ce4..9634e5b33 100644 --- a/build/win32/vs10/glib-build-defines.props +++ b/build/win32/vs10/glib-build-defines.props @@ -5,6 +5,7 @@ PCRE_STATIC;LINK_SIZE=2;MAX_NAME_SIZE=32;MAX_NAME_COUNT=10000;NEWLINE=-1;POSIX_MALLOC_THRESHOLD=10;MATCH_LIMIT=10000000;MATCH_LIMIT_RECURSION=10000000;SUPPORT_UCP;SUPPORT_UTF;SUPPORT_UTF8;G_LOG_DOMAIN="GLib-GRegex" + PCRE_EXP_DECL=__declspec(dllexport)extern;PCRE_EXP_DEFN= -UBSR_ANYCRLF -UEBCDIC LIBDIR="blah" DLL_EXPORT @@ -40,6 +41,9 @@ $(GLibBundledPCREDefines) + + $(GlibBundledPCREExportDefines) + $(GLibBundledPCREUndefs) @@ -77,4 +81,4 @@ $(WindowsNetworkingLibs) - \ No newline at end of file + diff --git a/build/win32/vs10/glib.vcxproj.filtersin b/build/win32/vs10/glib.vcxproj.filtersin index e5bcdc0d6..853efb602 100644 --- a/build/win32/vs10/glib.vcxproj.filtersin +++ b/build/win32/vs10/glib.vcxproj.filtersin @@ -103,6 +103,9 @@ Source Files\pcre + + Source Files\pcre + Source Files\pcre diff --git a/build/win32/vs10/glib.vcxprojin b/build/win32/vs10/glib.vcxprojin index 9602c65fa..548bb1d70 100644 --- a/build/win32/vs10/glib.vcxprojin +++ b/build/win32/vs10/glib.vcxprojin @@ -587,6 +587,20 @@ $(GLibBundledPCREUndefs) %(AdditionalOptions) true + + $(GLibBundledPCREDefines);$(GlibBundledPCREExportDefines);%(PreprocessorDefinitions) + $(GLibBundledPCREUndefs) %(AdditionalOptions) + true + $(GLibBundledPCREDefines);$(GlibBundledPCREExportDefines);%(PreprocessorDefinitions) + $(GLibBundledPCREUndefs) %(AdditionalOptions) + true + $(GLibBundledPCREDefines);$(GlibBundledPCREExportDefines);%(PreprocessorDefinitions) + $(GLibBundledPCREUndefs) %(AdditionalOptions) + true + $(GLibBundledPCREDefines);$(GlibBundledPCREExportDefines);%(PreprocessorDefinitions) + $(GLibBundledPCREUndefs) %(AdditionalOptions) + true + $(GLibBundledPCREDefines);%(PreprocessorDefinitions) $(GLibBundledPCREUndefs) %(AdditionalOptions) diff --git a/build/win32/vs9/glib-build-defines.vsprops b/build/win32/vs9/glib-build-defines.vsprops index 0140dfddd..cc36536a2 100644 --- a/build/win32/vs9/glib-build-defines.vsprops +++ b/build/win32/vs9/glib-build-defines.vsprops @@ -23,6 +23,10 @@ Name="GLibBundledPCREDefines" Value="PCRE_STATIC;LINK_SIZE=2;MAX_NAME_SIZE=32;MAX_NAME_COUNT=10000;NEWLINE=-1;POSIX_MALLOC_THRESHOLD=10;MATCH_LIMIT=10000000;MATCH_LIMIT_RECURSION=10000000;SUPPORT_UCP;SUPPORT_UTF;SUPPORT_UTF8;G_LOG_DOMAIN=\"GLib-GRegex\"" /> + + + + + + + + + + +