Skip to content

Commit

Permalink
Use dependencies from vcpkg where possible.
Browse files Browse the repository at this point in the history
This doesn't use minhook from vcpkg because that version seems to be incompatible somehow, and we want to start using the ModEngine2 hook API anyway.
  • Loading branch information
nex3 committed Nov 26, 2023
1 parent bd219ef commit b900b66
Show file tree
Hide file tree
Showing 274 changed files with 24 additions and 108,053 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bld/
[Oo]bj/
[Ll]og/
[Ll]ogs/
vcpkg_installed/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand Down
8 changes: 0 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@
path = archipelago-client/subprojects/minhook
url = https://github.com/TsudaKageyu/minhook.git

[submodule "archipelago-client/subprojects/asio"]
path = archipelago-client/subprojects/asio
url = https://github.com/chriskohlhoff/asio.git

[submodule "archipelago-client/subprojects/wswrap"]
path = archipelago-client/subprojects/wswrap
url = https://github.com/black-sliver/wswrap.git

[submodule "archipelago-client/subprojects/websocketpp"]
path = archipelago-client/subprojects/websocketpp
url = https://github.com/zaphoyd/websocketpp.git

[submodule "archipelago-client/subprojects/apclientpp"]
path = archipelago-client/subprojects/apclientpp
Expand Down
2 changes: 1 addition & 1 deletion archipelago-client/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <tlhelp32.h>
#include <stdio.h>
#include <functional>
#include "./subprojects/json/include/nlohmann/json.hpp"
#include <nlohmann/json.hpp>
#include "ArchipelagoInterface.h"

#define int3 __debugbreak();
Expand Down
3 changes: 3 additions & 0 deletions archipelago-client/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project>
<Import Project="$(MSBuildThisFileDirectory)subprojects\vcpkg\scripts\buildsystems\msbuild\vcpkg.props" />
</Project>
3 changes: 3 additions & 0 deletions archipelago-client/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project>
<Import Project="$(MSBuildThisFileDirectory)subprojects\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets" />
</Project>
113 changes: 5 additions & 108 deletions archipelago-client/archipelago-client.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
<LinkIncremental>false</LinkIncremental>
<TargetName>dinput8</TargetName>
</PropertyGroup>
<PropertyGroup Label="Vcpkg">
<VcpkgEnableManifest>true</VcpkgEnableManifest>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand All @@ -95,7 +98,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_WINDOWS;_USRDLL;DINPUT8_EXPORTS;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>subprojects;dep;subprojects\wswrap\include;subprojects\apclientpp;subprojects\asio\asio\include;subprojects\json\include;subprojects\minhook\include;subprojects\valijson\include;subprojects\websocketpp;subprojects\mem\include;subprojects\fd4_singleton;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>subprojects;dep;subprojects\wswrap\include;subprojects\apclientpp;subprojects\minhook\include;subprojects\mem\include;subprojects\fd4_singleton;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
Expand All @@ -105,7 +108,7 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>Core.def</ModuleDefinitionFile>
<AdditionalDependencies>subprojects\openssl\x64\libssl.lib;subprojects\openssl\x64\libcrypto.lib;subprojects\openssl\x64\libapps.lib;Crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>Crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down Expand Up @@ -134,7 +137,6 @@
<ClCompile Include="subprojects\minhook\src\trampoline.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\..\Downloads\openSSLFolder (1)\x64\include\openssl\opensslconf.h" />
<ClInclude Include="Core.h" />
<ClInclude Include="GameHook.h" />
<ClInclude Include="ArchipelagoInterface.h" />
Expand Down Expand Up @@ -173,111 +175,6 @@
<ClInclude Include="subprojects\minhook\src\hde\table32.h" />
<ClInclude Include="subprojects\minhook\src\hde\table64.h" />
<ClInclude Include="subprojects\minhook\src\trampoline.h" />
<ClInclude Include="subprojects\openssl\aes.h" />
<ClInclude Include="subprojects\openssl\asn1.h" />
<ClInclude Include="subprojects\openssl\asn1err.h" />
<ClInclude Include="subprojects\openssl\asn1t.h" />
<ClInclude Include="subprojects\openssl\asn1_mac.h" />
<ClInclude Include="subprojects\openssl\async.h" />
<ClInclude Include="subprojects\openssl\asyncerr.h" />
<ClInclude Include="subprojects\openssl\bio.h" />
<ClInclude Include="subprojects\openssl\bioerr.h" />
<ClInclude Include="subprojects\openssl\blowfish.h" />
<ClInclude Include="subprojects\openssl\bn.h" />
<ClInclude Include="subprojects\openssl\bnerr.h" />
<ClInclude Include="subprojects\openssl\buffer.h" />
<ClInclude Include="subprojects\openssl\buffererr.h" />
<ClInclude Include="subprojects\openssl\camellia.h" />
<ClInclude Include="subprojects\openssl\cast.h" />
<ClInclude Include="subprojects\openssl\cmac.h" />
<ClInclude Include="subprojects\openssl\cms.h" />
<ClInclude Include="subprojects\openssl\cmserr.h" />
<ClInclude Include="subprojects\openssl\comp.h" />
<ClInclude Include="subprojects\openssl\comperr.h" />
<ClInclude Include="subprojects\openssl\conf.h" />
<ClInclude Include="subprojects\openssl\conferr.h" />
<ClInclude Include="subprojects\openssl\conf_api.h" />
<ClInclude Include="subprojects\openssl\crypto.h" />
<ClInclude Include="subprojects\openssl\cryptoerr.h" />
<ClInclude Include="subprojects\openssl\ct.h" />
<ClInclude Include="subprojects\openssl\cterr.h" />
<ClInclude Include="subprojects\openssl\des.h" />
<ClInclude Include="subprojects\openssl\dh.h" />
<ClInclude Include="subprojects\openssl\dherr.h" />
<ClInclude Include="subprojects\openssl\dsa.h" />
<ClInclude Include="subprojects\openssl\dsaerr.h" />
<ClInclude Include="subprojects\openssl\dtls1.h" />
<ClInclude Include="subprojects\openssl\ebcdic.h" />
<ClInclude Include="subprojects\openssl\ec.h" />
<ClInclude Include="subprojects\openssl\ecdh.h" />
<ClInclude Include="subprojects\openssl\ecdsa.h" />
<ClInclude Include="subprojects\openssl\ecerr.h" />
<ClInclude Include="subprojects\openssl\engine.h" />
<ClInclude Include="subprojects\openssl\engineerr.h" />
<ClInclude Include="subprojects\openssl\err.h" />
<ClInclude Include="subprojects\openssl\evp.h" />
<ClInclude Include="subprojects\openssl\evperr.h" />
<ClInclude Include="subprojects\openssl\e_os2.h" />
<ClInclude Include="subprojects\openssl\hmac.h" />
<ClInclude Include="subprojects\openssl\idea.h" />
<ClInclude Include="subprojects\openssl\kdf.h" />
<ClInclude Include="subprojects\openssl\kdferr.h" />
<ClInclude Include="subprojects\openssl\lhash.h" />
<ClInclude Include="subprojects\openssl\md2.h" />
<ClInclude Include="subprojects\openssl\md4.h" />
<ClInclude Include="subprojects\openssl\md5.h" />
<ClInclude Include="subprojects\openssl\mdc2.h" />
<ClInclude Include="subprojects\openssl\modes.h" />
<ClInclude Include="subprojects\openssl\objects.h" />
<ClInclude Include="subprojects\openssl\objectserr.h" />
<ClInclude Include="subprojects\openssl\obj_mac.h" />
<ClInclude Include="subprojects\openssl\ocsp.h" />
<ClInclude Include="subprojects\openssl\ocsperr.h" />
<ClInclude Include="subprojects\openssl\opensslv.h" />
<ClInclude Include="subprojects\openssl\ossl_typ.h" />
<ClInclude Include="subprojects\openssl\pem.h" />
<ClInclude Include="subprojects\openssl\pem2.h" />
<ClInclude Include="subprojects\openssl\pemerr.h" />
<ClInclude Include="subprojects\openssl\pkcs12.h" />
<ClInclude Include="subprojects\openssl\pkcs12err.h" />
<ClInclude Include="subprojects\openssl\pkcs7.h" />
<ClInclude Include="subprojects\openssl\pkcs7err.h" />
<ClInclude Include="subprojects\openssl\rand.h" />
<ClInclude Include="subprojects\openssl\randerr.h" />
<ClInclude Include="subprojects\openssl\rand_drbg.h" />
<ClInclude Include="subprojects\openssl\rc2.h" />
<ClInclude Include="subprojects\openssl\rc4.h" />
<ClInclude Include="subprojects\openssl\rc5.h" />
<ClInclude Include="subprojects\openssl\ripemd.h" />
<ClInclude Include="subprojects\openssl\rsa.h" />
<ClInclude Include="subprojects\openssl\rsaerr.h" />
<ClInclude Include="subprojects\openssl\safestack.h" />
<ClInclude Include="subprojects\openssl\seed.h" />
<ClInclude Include="subprojects\openssl\sha.h" />
<ClInclude Include="subprojects\openssl\srp.h" />
<ClInclude Include="subprojects\openssl\srtp.h" />
<ClInclude Include="subprojects\openssl\ssl.h" />
<ClInclude Include="subprojects\openssl\ssl2.h" />
<ClInclude Include="subprojects\openssl\ssl3.h" />
<ClInclude Include="subprojects\openssl\sslerr.h" />
<ClInclude Include="subprojects\openssl\stack.h" />
<ClInclude Include="subprojects\openssl\store.h" />
<ClInclude Include="subprojects\openssl\storeerr.h" />
<ClInclude Include="subprojects\openssl\symhacks.h" />
<ClInclude Include="subprojects\openssl\tls1.h" />
<ClInclude Include="subprojects\openssl\ts.h" />
<ClInclude Include="subprojects\openssl\tserr.h" />
<ClInclude Include="subprojects\openssl\txt_db.h" />
<ClInclude Include="subprojects\openssl\ui.h" />
<ClInclude Include="subprojects\openssl\uierr.h" />
<ClInclude Include="subprojects\openssl\whrlpool.h" />
<ClInclude Include="subprojects\openssl\x509.h" />
<ClInclude Include="subprojects\openssl\x509err.h" />
<ClInclude Include="subprojects\openssl\x509v3.h" />
<ClInclude Include="subprojects\openssl\x509v3err.h" />
<ClInclude Include="subprojects\openssl\x509_vfy.h" />
<ClInclude Include="subprojects\openssl\__DECC_INCLUDE_EPILOGUE.H" />
<ClInclude Include="subprojects\openssl\__DECC_INCLUDE_PROLOGUE.H" />
<ClInclude Include="subprojects\wswrap\include\wswrap.hpp" />
<ClInclude Include="subprojects\wswrap\include\wswrap_websocketpp.hpp" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion archipelago-client/dep/Readme.txt

This file was deleted.

22 changes: 0 additions & 22 deletions archipelago-client/dep/openssl/__DECC_INCLUDE_EPILOGUE.H

This file was deleted.

26 changes: 0 additions & 26 deletions archipelago-client/dep/openssl/__DECC_INCLUDE_PROLOGUE.H

This file was deleted.

92 changes: 0 additions & 92 deletions archipelago-client/dep/openssl/aes.h

This file was deleted.

Loading

0 comments on commit b900b66

Please sign in to comment.