summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-16 14:05:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-09-16 14:05:00 +0300
commit1342e64ce432bd72e2273e96d69fff3bc9a2b5db (patch)
treecc42542db0ee34f64ffbd8e260f36b84a81f9601 /protocols/WhatsAppWeb
parente608c114ed6735ff097db948688ea320d2d38f0c (diff)
switch to static libraries
Diffstat (limited to 'protocols/WhatsAppWeb')
-rw-r--r--protocols/WhatsAppWeb/WhatsAppWeb.vcxproj10
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp4
2 files changed, 14 insertions, 0 deletions
diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
index 279fcf8d90..c2ea6b1c8c 100644
--- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
+++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
@@ -33,6 +33,16 @@
<ProjectGuid>{13E796AD-BEA4-4213-A1B8-E18E2397E544}</ProjectGuid>
<ProjectName>WhatsAppWeb</ProjectName>
</PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='Win32'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
+ <VcpkgConfiguration>$(Configuration)</VcpkgConfiguration>
+ </PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='x64'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x64-windows-static-md</VcpkgTriplet>
+ <VcpkgConfiguration>$(Configuration)</VcpkgConfiguration>
+ </PropertyGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" />
</ImportGroup>
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index 98a3b3e886..b7a8a790ed 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -8,7 +8,11 @@ Copyright © 2019-22 George Hazan
#include "stdafx.h"
#include "version.h"
+#ifdef _DEBUG
+#pragma comment(lib, "libprotobufd.lib")
+#else
#pragma comment(lib, "libprotobuf.lib")
+#endif
CMPlugin g_plugin;