2020-01-14 07:43:36 +08:00
|
|
|
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
|
2022-03-24 07:41:00 +08:00
|
|
|
index 2820ace22..7fddbf0fb 100644
|
|
|
|
--- a/src/tools/msvc/Solution.pm
|
2020-01-14 07:43:36 +08:00
|
|
|
+++ b/src/tools/msvc/Solution.pm
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -948,7 +948,7 @@ sub AddProject
|
2020-01-14 07:43:36 +08:00
|
|
|
if ($self->{options}->{zlib})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{zlib} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{zlib} . '\lib\zdll.lib');
|
2021-12-15 02:59:38 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{zlib} . '\debug\lib\zlibd.lib');
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
if ($self->{options}->{openssl})
|
|
|
|
{
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -989,8 +989,11 @@ sub AddProject
|
2020-01-14 07:43:36 +08:00
|
|
|
# On both Win32 and Win64 the same library
|
|
|
|
# names are used without a debugging context.
|
|
|
|
$dbgsuffix = 0;
|
|
|
|
- $libsslpath = '\lib\libssl.lib';
|
|
|
|
- $libcryptopath = '\lib\libcrypto.lib';
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $libsslpath = '\debug\lib\libssl.lib'; #
|
|
|
|
+ $libcryptopath = '\debug\lib\libcrypto.lib'; #
|
|
|
|
+ $proj->AddLibrary('crypt32.lib');
|
|
|
|
+ $proj->AddLibrary('ws2_32.lib');
|
|
|
|
+ $proj->AddLibrary('secur32.lib');
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
$proj->AddLibrary($self->{options}->{openssl} . $libsslpath,
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -1024,7 +1024,7 @@ sub AddProject
|
2020-01-14 07:43:36 +08:00
|
|
|
if ($self->{options}->{nls})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{nls} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{nls} . '\lib\libintl.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{nls} . '\debug\lib\intl.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
if ($self->{options}->{gss})
|
|
|
|
{
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -1051,21 +1051,21 @@ sub AddProject
|
|
|
|
}
|
2020-01-14 07:43:36 +08:00
|
|
|
if ($self->{options}->{iconv})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{iconv} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{iconv} . '\lib\iconv.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{iconv} . '\debug\lib\iconv.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
if ($self->{options}->{icu})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{icu} . '\include');
|
|
|
|
if ($self->{platform} eq 'Win32')
|
|
|
|
{
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib');
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib\icuuc.lib');
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib\icudt.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuind.lib'); #
|
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuucd.lib'); #
|
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icudtd.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuin.lib');
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuuc.lib');
|
|
|
|
- $proj->AddLibrary($self->{options}->{icu} . '\lib64\icudt.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuind.lib'); #
|
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuucd.lib'); #
|
|
|
|
+ $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icudtd.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
2022-03-24 07:41:00 +08:00
|
|
|
@@ -1074,22 +1074,22 @@ sub AddProject
|
2020-01-14 07:43:36 +08:00
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{xml} . '\include');
|
|
|
|
$proj->AddIncludeDir($self->{options}->{xml} . '\include\libxml2');
|
|
|
|
- $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{xml} . '\debug\lib\libxml2.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
if ($self->{options}->{xslt})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{xslt} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{xslt} . '\debug\lib\libxslt.lib'); #
|
|
|
|
}
|
|
|
|
if ($self->{options}->{lz4})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{lz4} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{lz4} . '\lib\liblz4.lib');
|
|
|
|
+ $proj->AddLibrary($self->{options}->{lz4} . '\debug\lib\lz4d.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
if ($self->{options}->{uuid})
|
|
|
|
{
|
|
|
|
$proj->AddIncludeDir($self->{options}->{uuid} . '\include');
|
|
|
|
- $proj->AddLibrary($self->{options}->{uuid} . '\lib\uuid.lib');
|
2022-03-24 07:41:00 +08:00
|
|
|
+ $proj->AddLibrary($self->{options}->{uuid} . '\debug\lib\uuid.lib'); #
|
2020-01-14 07:43:36 +08:00
|
|
|
}
|
|
|
|
return $proj;
|
|
|
|
}
|