From 716ec71ece2a583d48e7c09e2d8562cf5eb96809 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 21 Aug 2013 13:55:52 +0800 Subject: [PATCH] GLib MSVC Projects: Consolidate PCRE items Move the definitions of macros used to build PCRE that ships with GLib into the property sheets, so that it can be easier to maintain --- build/win32/vs10/glib.props | 4 ++++ build/win32/vs10/glib.vcxprojin | 8 ++++---- build/win32/vs9/glib.vcprojin | 8 ++++---- build/win32/vs9/glib.vsprops | 4 ++++ 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/build/win32/vs10/glib.props b/build/win32/vs10/glib.props index d45b9f2c9..ed8934fea 100644 --- a/build/win32/vs10/glib.props +++ b/build/win32/vs10/glib.props @@ -4,6 +4,7 @@ ..\..\..\..\vs10\$(Platform) $(GlibEtcInstallRoot) 2.0 + 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 mkdir $(CopyDir)\bin @@ -602,6 +603,9 @@ copy ..\..\..\gio\gnetworking.h.win32 ..\..\..\gio\gnetworking.h $(ApiVersion) + + $(GLibBundledPCREDefines) + $(GlibDoInstall) diff --git a/build/win32/vs10/glib.vcxprojin b/build/win32/vs10/glib.vcxprojin index 01f5b21bf..977999a9b 100644 --- a/build/win32/vs10/glib.vcxprojin +++ b/build/win32/vs10/glib.vcxprojin @@ -137,7 +137,7 @@ Disabled - _DEBUG;GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";G_ENABLE_DEBUG;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;%(PreprocessorDefinitions) + _DEBUG;GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";G_ENABLE_DEBUG;$(GLibBundledPCREDefines);%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -187,7 +187,7 @@ Disabled - _DEBUG;GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";G_ENABLE_DEBUG;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;%(PreprocessorDefinitions) + _DEBUG;GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";G_ENABLE_DEBUG;$(GLibBundledPCREDefines);%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -236,7 +236,7 @@ - GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";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;%(PreprocessorDefinitions) + GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";$(GLibBundledPCREDefines);%(PreprocessorDefinitions) MultiThreadedDLL @@ -284,7 +284,7 @@ - GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";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;%(PreprocessorDefinitions) + GLIB_COMPILATION;DLL_EXPORT;G_LOG_DOMAIN="GLib";$(GLibBundledPCREDefines);%(PreprocessorDefinitions) MultiThreadedDLL diff --git a/build/win32/vs9/glib.vcprojin b/build/win32/vs9/glib.vcprojin index b26d21d30..a72bd45cc 100644 --- a/build/win32/vs9/glib.vcprojin +++ b/build/win32/vs9/glib.vcprojin @@ -28,7 +28,7 @@ +