mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 07:02:13 +08:00
d48bae0c50
* [EasyHook] Fix build when MFC isn't available See https://github.com/microsoft/vcpkg/issues/21011 https://github.com/EasyHook/EasyHook/issues/210 * update port version
155 lines
6.9 KiB
Diff
155 lines
6.9 KiB
Diff
diff --git a/EasyHookDll/EasyHookDll.vcxproj b/EasyHookDll/EasyHookDll.vcxproj
|
|
index ec66f91..5773555 100644
|
|
--- a/EasyHookDll/EasyHookDll.vcxproj
|
|
+++ b/EasyHookDll/EasyHookDll.vcxproj
|
|
@@ -188,7 +188,7 @@
|
|
<StringPooling>true</StringPooling>
|
|
<MinimalRebuild>true</MinimalRebuild>
|
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
|
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
@@ -207,10 +207,6 @@
|
|
<TargetMachine>MachineX86</TargetMachine>
|
|
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
|
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
</MASM>
|
|
@@ -223,7 +219,7 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<StringPooling>true</StringPooling>
|
|
<MinimalRebuild>true</MinimalRebuild>
|
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
|
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
@@ -242,10 +238,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<TargetMachine>MachineX86</TargetMachine>
|
|
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
|
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
</MASM>
|
|
@@ -261,7 +253,7 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<StringPooling>true</StringPooling>
|
|
<MinimalRebuild>true</MinimalRebuild>
|
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
|
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
@@ -278,10 +270,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<SubSystem>Windows</SubSystem>
|
|
<TargetMachine>MachineX64</TargetMachine>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
|
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
</MASM>
|
|
@@ -297,7 +285,7 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
<StringPooling>true</StringPooling>
|
|
<MinimalRebuild>true</MinimalRebuild>
|
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
|
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
@@ -314,10 +302,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
<SubSystem>Windows</SubSystem>
|
|
<TargetMachine>MachineX64</TargetMachine>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
|
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
</MASM>
|
|
@@ -355,10 +339,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
<TargetMachine>MachineX86</TargetMachine>
|
|
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
|
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
@@ -397,10 +377,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<TargetMachine>MachineX86</TargetMachine>
|
|
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
|
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
@@ -439,10 +415,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<TargetMachine>MachineX64</TargetMachine>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
|
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
@@ -481,10 +453,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<TargetMachine>MachineX64</TargetMachine>
|
|
</Link>
|
|
- <PostBuildEvent>
|
|
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
|
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
|
- </PostBuildEvent>
|
|
<MASM>
|
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
|
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
|
diff --git a/EasyHookDll/EasyHookDll_32.rc b/EasyHookDll/EasyHookDll_32.rc
|
|
index 2a8dfb6..abf5ae3 100644
|
|
--- a/EasyHookDll/EasyHookDll_32.rc
|
|
+++ b/EasyHookDll/EasyHookDll_32.rc
|
|
@@ -7,7 +7,7 @@
|
|
//
|
|
// Generated from the TEXTINCLUDE 2 resource.
|
|
//
|
|
-#include "afxres.h"
|
|
+#include "windows.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#undef APSTUDIO_READONLY_SYMBOLS
|
|
diff --git a/EasyHookDll/EasyHookDll_64.rc b/EasyHookDll/EasyHookDll_64.rc
|
|
index 163a2f0..b32a4d4 100644
|
|
--- a/EasyHookDll/EasyHookDll_64.rc
|
|
+++ b/EasyHookDll/EasyHookDll_64.rc
|
|
@@ -7,7 +7,7 @@
|
|
//
|
|
// Generated from the TEXTINCLUDE 2 resource.
|
|
//
|
|
-#include "afxres.h"
|
|
+#include "windows.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#undef APSTUDIO_READONLY_SYMBOLS
|