Skip to content

Commit

Permalink
Switch from NuGet to vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienML committed Sep 28, 2024
1 parent cbff9c3 commit 529f722
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vs/
.vscode/
build/
vcpkg_installed/
README BakkesPlugins.md
crash.txt
13 changes: 7 additions & 6 deletions BetterChat.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
<OutDir>$(SolutionDir)plugins\</OutDir>
<IntDir>$(SolutionDir)build\.intermediates\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Label="Vcpkg">
<VcpkgEnableManifest>true</VcpkgEnableManifest>
</PropertyGroup>
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<VcpkgUseStatic>true</VcpkgUseStatic>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -135,11 +141,6 @@
<ItemGroup>
<ResourceCompile Include="BetterChat.rc" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="packages\nlohmann.json.3.11.2\build\native\nlohmann.json.targets" Condition="Exists('packages\nlohmann.json.3.11.2\build\native\nlohmann.json.targets')" />
</ImportGroup>
<ImportGroup Label="ExtensionTargets" />
</Project>
12 changes: 9 additions & 3 deletions BetterChat.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
<ClCompile Include="fmt\src\os.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="IMGUI\imgui_stdlib.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="BetterChat.h">
Expand Down Expand Up @@ -122,13 +125,16 @@
<ClInclude Include="version.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="IMGUI\imgui_stdlib.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="logging.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="BetterChat.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions packages.config

This file was deleted.

Binary file removed packages/nlohmann.json.3.11.2/.signature.p7s
Binary file not shown.
Binary file not shown.
Binary file modified plugins/BetterChat.dll
Binary file not shown.
Binary file modified plugins/BetterChat.pdb
Binary file not shown.
6 changes: 6 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
"nlohmann-json"
]
}
4 changes: 2 additions & 2 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once
#define VERSION_MAJOR 3
#define VERSION_MINOR 0
#define VERSION_PATCH 1
#define VERSION_BUILD 400
#define VERSION_PATCH 2
#define VERSION_BUILD 403

#define stringify(a) stringify_(a)
#define stringify_(a) #a
Expand Down

0 comments on commit 529f722

Please sign in to comment.