summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-22 17:38:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-22 17:38:10 +0300
commit265b6179424fcf1a493c2683175781dad1aaa84f (patch)
tree6d995a5feac22e29f362aaacb7a19e7f438c9308
parentfacec0fbfb54f51cb1b1fbb22c9d52c206ae6639 (diff)
project file fix
-rw-r--r--protocols/WhatsAppWeb/WhatsAppWeb.vcxproj13
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp18
2 files changed, 18 insertions, 13 deletions
diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
index 3648058fe1..620af4a800 100644
--- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
+++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj
@@ -33,6 +33,14 @@
<ProjectGuid>{13E796AD-BEA4-4213-A1B8-E18E2397E544}</ProjectGuid>
<ProjectName>WhatsAppWeb</ProjectName>
</PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='x64'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x64-windows-static-md</VcpkgTriplet>
+ </PropertyGroup>
+ <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='Win32'">
+ <VcpkgUseStatic>true</VcpkgUseStatic>
+ <VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
+ </PropertyGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" />
</ImportGroup>
@@ -47,10 +55,7 @@
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\options.cpp" />
<ClCompile Include="src\pmsg.pb.cc">
- <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
- <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
- <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
- <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="src\proto.cpp" />
<ClCompile Include="src\qrcode.cpp" />
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index 91c44d4b18..852e55b3af 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -30,6 +30,15 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
/////////////////////////////////////////////////////////////////////////////////////////
+CMPlugin::CMPlugin() :
+ ACCPROTOPLUGIN<WhatsAppProto>(MODULENAME, pluginInfo)
+{
+ SetUniqueId(DBKEY_ID);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// Load
+
static int hmac_sha256_init(void **hmac_context, const uint8_t *key, size_t key_len, void *)
{
HMAC_CTX *ctx = HMAC_CTX_new();
@@ -65,15 +74,6 @@ static int random_func(uint8_t *pData, size_t size, void *)
return 0;
}
-CMPlugin::CMPlugin() :
- ACCPROTOPLUGIN<WhatsAppProto>(MODULENAME, pluginInfo)
-{
- SetUniqueId(DBKEY_ID);
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-// Load
-
int CMPlugin::Load()
{
// InitIcons();