Remove PreCompiled header from Common

This commit is contained in:
zilmar 2021-04-12 19:11:28 +09:30
parent 3482e0a3fa
commit a48f8d1a62
26 changed files with 37 additions and 55 deletions

View File

@ -31,6 +31,11 @@
</ImportGroup> </ImportGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="CriticalSection.cpp" /> <ClCompile Include="CriticalSection.cpp" />
<ClCompile Include="DateTimeClass.cpp" /> <ClCompile Include="DateTimeClass.cpp" />
@ -44,9 +49,6 @@
<ClCompile Include="path.cpp" /> <ClCompile Include="path.cpp" />
<ClCompile Include="Platform.cpp" /> <ClCompile Include="Platform.cpp" />
<ClCompile Include="Random.cpp" /> <ClCompile Include="Random.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="StdString.cpp" /> <ClCompile Include="StdString.cpp" />
<ClCompile Include="SyncEvent.cpp" /> <ClCompile Include="SyncEvent.cpp" />
<ClCompile Include="Thread.cpp" /> <ClCompile Include="Thread.cpp" />
@ -66,7 +68,6 @@
<ClInclude Include="path.h" /> <ClInclude Include="path.h" />
<ClInclude Include="Platform.h" /> <ClInclude Include="Platform.h" />
<ClInclude Include="Random.h" /> <ClInclude Include="Random.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="StdString.h" /> <ClInclude Include="StdString.h" />
<ClInclude Include="stdtypes.h" /> <ClInclude Include="stdtypes.h" />
<ClInclude Include="SyncEvent.h" /> <ClInclude Include="SyncEvent.h" />

View File

@ -11,9 +11,6 @@
</Filter> </Filter>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="CriticalSection.cpp"> <ClCompile Include="CriticalSection.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
@ -67,9 +64,6 @@
</ClCompile> </ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="CriticalSection.h"> <ClInclude Include="CriticalSection.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "CriticalSection.h"
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#endif #endif

View File

@ -1,4 +1,3 @@
#include "stdafx.h"
#include "DateTimeClass.h" #include "DateTimeClass.h"
#include <time.h> #include <time.h>

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>
#include <string>
class CDateTime class CDateTime
{ {

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "FileClass.h"
#ifdef _WIN32 #ifdef _WIN32
#include <io.h> #include <io.h>
#define USE_WINDOWS_API #define USE_WINDOWS_API

View File

@ -1,4 +1,3 @@
#include "stdafx.h"
#include "HighResTimeStamp.h" #include "HighResTimeStamp.h"
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "IniFileClass.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -4,7 +4,6 @@
#include <strings.h> #include <strings.h>
#endif #endif
#include "stdafx.h"
#include "FileClass.h" #include "FileClass.h"
#include "CriticalSection.h" #include "CriticalSection.h"
#include <string> #include <string>

View File

@ -1,4 +1,5 @@
#include "stdafx.h" #include "LogClass.h"
#include "path.h"
#include "Platform.h" #include "Platform.h"
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -1,5 +1,5 @@
#include "stdafx.h"
#include "MemTest.h" #include "MemTest.h"
#include <map>
#if defined(MEM_LEAK_TEST) && defined(_WIN32) #if defined(MEM_LEAK_TEST) && defined(_WIN32)

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "MemoryManagement.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#else #else

View File

@ -12,4 +12,4 @@ void* AllocateAddressSpace(size_t size, void * base_address = 0);
bool FreeAddressSpace(void* addr, size_t size); bool FreeAddressSpace(void* addr, size_t size);
void* CommitMemory(void* addr, size_t size, MEM_PROTECTION memProtection); void* CommitMemory(void* addr, size_t size, MEM_PROTECTION memProtection);
bool DecommitMemory(void* addr, size_t size); bool DecommitMemory(void* addr, size_t size);
bool ProtectMemory(void* addr, size_t size, MEM_PROTECTION memProtection, MEM_PROTECTION * OldProtect = NULL); bool ProtectMemory(void* addr, size_t size, MEM_PROTECTION memProtection, MEM_PROTECTION * OldProtect = nullptr);

View File

@ -1,4 +1,5 @@
#include "stdafx.h" #include "Platform.h"
#include <stdint.h>
#ifndef _WIN32 #ifndef _WIN32
int _vscprintf(const char * format, va_list pargs) int _vscprintf(const char * format, va_list pargs)

View File

@ -1,7 +1,6 @@
// Implements the CRandom class // Implements the CRandom class
// This class implements the Lehmer Random Number Generator // This class implements the Lehmer Random Number Generator
#include "stdafx.h"
#include "Random.h" #include "Random.h"
#include <time.h> #include <time.h>

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "StdString.h"
#include <malloc.h> #include <malloc.h>
#include <algorithm> #include <algorithm>
#ifdef _WIN32 #ifdef _WIN32

View File

@ -1,4 +1,4 @@
#include "stdafx.h" #include "SyncEvent.h"
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#endif #endif

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Thread.h" #include "Thread.h"
#include "Trace.h"
#include "TraceModulesCommon.h"
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#else #else

View File

@ -1,5 +1,9 @@
#include "stdafx.h" #include "Trace.h"
#include <Common/Thread.h> #include "StdString.h"
#include "CriticalSection.h"
#include "Thread.h"
#include <map>
#include <vector>
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#else #else
@ -15,7 +19,7 @@ static ModuleNameMap g_ModuleNames;
class CTraceLog class CTraceLog
{ {
std::vector<CTraceModule *> m_Modules; std::vector<CTraceModule *> m_Modules;
CriticalSection m_CS; CriticalSection m_CS;
public: public:
CTraceLog() CTraceLog()

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Util.h" #include "Util.h"
#include "StdString.h"
#include "path.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#include <Tlhelp32.h> #include <Tlhelp32.h>

View File

@ -38,8 +38,9 @@ These notices must be retained in any copies of any part of this
documentation and/or software. documentation and/or software.
*/ */
#include "md5.h"
#include "stdafx.h" #include "Trace.h"
#include "TraceModulesCommon.h"
// MD5 simple initialization method // MD5 simple initialization method
MD5::MD5() MD5::MD5()

View File

@ -46,6 +46,7 @@ documentation and/or software.
#include <string> #include <string>
#include <functional> #include <functional>
#include "path.h" #include "path.h"
#include "StdString.h"
struct MD5Digest struct MD5Digest
{ {

View File

@ -1,6 +1,8 @@
// Path.cpp: Implementation of the CPath class #include "path.h"
#include "Trace.h"
#include "TraceModulesCommon.h"
#include "StdString.h"
#include "stdafx.h"
#ifdef _WIN32 #ifdef _WIN32
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4091) // warning C4091: 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared #pragma warning(disable : 4091) // warning C4091: 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared

View File

@ -1,3 +0,0 @@
#pragma warning(disable:4786)
#include "stdafx.h"

View File

@ -1,18 +0,0 @@
#pragma warning(disable:4786)
#include <map>
#include <stdio.h>
#include <stdarg.h>
#include "MemTest.h"
#include "Platform.h"
#include "StdString.h"
#include "CriticalSection.h"
#include "FileClass.h"
#include "IniFileClass.h"
#include "path.h"
#include "LogClass.h"
#include "TraceModulesCommon.h"
#include "Trace.h"
#include "md5.h"
#include "SyncEvent.h"

View File

@ -1,5 +1,4 @@
#pragma once #pragma once
#include <Common/stdafx.h>
#include <vector> #include <vector>
#include <string> #include <string>
#include <Project64-core/N64System/Enhancement/Enhancement.h> #include <Project64-core/N64System/Enhancement/Enhancement.h>