aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiSo <wiso@xbmc.org>2011-04-10 21:30:42 +0200
committerWiSo <wiso@xbmc.org>2011-04-10 21:30:42 +0200
commit2206c2dd2f8c837d674f5fa09bfe8950b3f05059 (patch)
tree226c9cb44122ee469602b8c715a3a0f579c4ff2e
parenta99ff85d055e966b260b14c51d919c7b1f4f1d20 (diff)
Revert "[WIN32] removed pcre project from XBMC solution and fixed the inclusion of the third party lib"
This reverts commit c676c9a553b127c5093d859242f317e667a7bef3 and fixes #11422
-rw-r--r--project/VS2010Express/XBMC for Windows.sln10
-rw-r--r--project/VS2010Express/XBMC.vcxproj4
-rw-r--r--xbmc/filesystem/FTPParse.cpp2
-rw-r--r--xbmc/utils/RegExp.cpp4
-rw-r--r--xbmc/utils/RegExp.h5
5 files changed, 20 insertions, 5 deletions
diff --git a/project/VS2010Express/XBMC for Windows.sln b/project/VS2010Express/XBMC for Windows.sln
index 82348a6ae3..1fb2deb0a0 100644
--- a/project/VS2010Express/XBMC for Windows.sln
+++ b/project/VS2010Express/XBMC for Windows.sln
@@ -20,6 +20,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "visMilkdrop", "..\..\xbmc\v
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcmyth_dll", "..\..\lib\cmyth\Win32\libcmyth.vcxproj", "{F9E6874D-60A8-49BA-9393-A2105E63ABCF}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libpcre", "..\..\lib\win32\pcre\libpcre\libpcre.vcxproj", "{D8097C41-605D-4917-8957-9DF7F44A18CD}"
+EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libXDAAP", "..\..\lib\libXDAAP\libXDAAP_win32\libXDAAP_win32.vcxproj", "{19B16CD0-3B47-47B7-AB0E-81EF2BF1B187}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libenca", "..\..\lib\enca\libenca_win32\libenca_win32.vcxproj", "{22B25AEC-7223-46FC-8356-4418327EFDE1}"
@@ -146,6 +148,14 @@ Global
{F9E6874D-60A8-49BA-9393-A2105E63ABCF}.Release (DirectX)|Win32.Build.0 = Release|Win32
{F9E6874D-60A8-49BA-9393-A2105E63ABCF}.Release (OpenGL)|Win32.ActiveCfg = Release|Win32
{F9E6874D-60A8-49BA-9393-A2105E63ABCF}.Release (OpenGL)|Win32.Build.0 = Release|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Debug (DirectX)|Win32.ActiveCfg = Debug|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Debug (DirectX)|Win32.Build.0 = Debug|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Debug (OpenGL)|Win32.ActiveCfg = Debug|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Debug (OpenGL)|Win32.Build.0 = Debug|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Release (DirectX)|Win32.ActiveCfg = Release|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Release (DirectX)|Win32.Build.0 = Release|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Release (OpenGL)|Win32.ActiveCfg = Release|Win32
+ {D8097C41-605D-4917-8957-9DF7F44A18CD}.Release (OpenGL)|Win32.Build.0 = Release|Win32
{19B16CD0-3B47-47B7-AB0E-81EF2BF1B187}.Debug (DirectX)|Win32.ActiveCfg = Debug|Win32
{19B16CD0-3B47-47B7-AB0E-81EF2BF1B187}.Debug (DirectX)|Win32.Build.0 = Debug|Win32
{19B16CD0-3B47-47B7-AB0E-81EF2BF1B187}.Debug (OpenGL)|Win32.ActiveCfg = Debug|Win32
diff --git a/project/VS2010Express/XBMC.vcxproj b/project/VS2010Express/XBMC.vcxproj
index e3157c61e4..fc75958ec5 100644
--- a/project/VS2010Express/XBMC.vcxproj
+++ b/project/VS2010Express/XBMC.vcxproj
@@ -2008,6 +2008,10 @@
<Project>{7a74ed4b-2bf5-47d7-b43e-c80f714417fb}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
+ <ProjectReference Include="..\..\lib\win32\pcre\libpcre\libpcre.vcxproj">
+ <Project>{d8097c41-605d-4917-8957-9df7f44a18cd}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
<ProjectReference Include="..\..\lib\libapetag\libapetag.vcxproj">
<Project>{bdd2cb99-93c5-4a70-acbf-396ffb961ad3}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
diff --git a/xbmc/filesystem/FTPParse.cpp b/xbmc/filesystem/FTPParse.cpp
index ddb220d503..b3b5251812 100644
--- a/xbmc/filesystem/FTPParse.cpp
+++ b/xbmc/filesystem/FTPParse.cpp
@@ -20,7 +20,7 @@
*/
#if _WIN32
-#pragma comment(lib, "pcrecpp.lib")
+#define PCRE_STATIC
#endif
#include <pcrecpp.h>
#include <cmath>
diff --git a/xbmc/utils/RegExp.cpp b/xbmc/utils/RegExp.cpp
index 2d4a67d5a0..15c6bc206b 100644
--- a/xbmc/utils/RegExp.cpp
+++ b/xbmc/utils/RegExp.cpp
@@ -19,10 +19,6 @@
*
*/
-#if _WIN32
-#pragma comment(lib, "pcre.lib")
-#endif
-
#include <stdlib.h>
#include <string.h>
#include "RegExp.h"
diff --git a/xbmc/utils/RegExp.h b/xbmc/utils/RegExp.h
index 63b96a2e24..87d1748d8f 100644
--- a/xbmc/utils/RegExp.h
+++ b/xbmc/utils/RegExp.h
@@ -27,7 +27,12 @@
#include <vector>
namespace PCRE {
+#ifdef _WIN32
+#define PCRE_STATIC
+#include "lib/win32/pcre/pcre.h"
+#else
#include <pcre.h>
+#endif
}
// maximum of 20 backreferences