From da07d04da9b5eba1be8d4d909568932c440b844a Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 28 Mar 2009 17:50:32 +0000 Subject: [PATCH] Add precompiled headers back...I like being able to compile in less than 2 hours, kthx git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2780 8ced0084-cf51-0410-be5f-012b33b47a6e --- Externals/Bochs_disasm/Bochs_disasm.vcproj | 100 +++- .../Bochs_disasm/Bochs_disasm_2008.vcproj | 510 ------------------ Externals/Bochs_disasm/stdafx.cpp | 8 + Externals/Bochs_disasm/stdafx.h | 18 + Source/Core/AudioCommon/AudioCommon.vcproj | 4 + Source/Core/Common/Common.vcproj | 100 +++- Source/Core/Common/Src/stdafx.cpp | 18 + Source/Core/Common/Src/stdafx.h | 35 ++ Source/Core/Core/Core.vcproj | 114 +++- Source/Core/Core/Src/stdafx.cpp | 18 + Source/Core/Core/Src/stdafx.h | 25 + 11 files changed, 368 insertions(+), 582 deletions(-) delete mode 100644 Externals/Bochs_disasm/Bochs_disasm_2008.vcproj create mode 100644 Externals/Bochs_disasm/stdafx.cpp create mode 100644 Externals/Bochs_disasm/stdafx.h create mode 100644 Source/Core/Common/Src/stdafx.cpp create mode 100644 Source/Core/Common/Src/stdafx.h create mode 100644 Source/Core/Core/Src/stdafx.cpp create mode 100644 Source/Core/Core/Src/stdafx.h diff --git a/Externals/Bochs_disasm/Bochs_disasm.vcproj b/Externals/Bochs_disasm/Bochs_disasm.vcproj index c0a27290be..f52d322f58 100644 --- a/Externals/Bochs_disasm/Bochs_disasm.vcproj +++ b/Externals/Bochs_disasm/Bochs_disasm.vcproj @@ -1,7 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Externals/Bochs_disasm/Bochs_disasm_2008.vcproj b/Externals/Bochs_disasm/Bochs_disasm_2008.vcproj deleted file mode 100644 index 556c4ccfb6..0000000000 --- a/Externals/Bochs_disasm/Bochs_disasm_2008.vcproj +++ /dev/null @@ -1,510 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Externals/Bochs_disasm/stdafx.cpp b/Externals/Bochs_disasm/stdafx.cpp new file mode 100644 index 0000000000..ce48aa1c24 --- /dev/null +++ b/Externals/Bochs_disasm/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// Bochs_disasm.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/Externals/Bochs_disasm/stdafx.h b/Externals/Bochs_disasm/stdafx.h new file mode 100644 index 0000000000..ecce07d111 --- /dev/null +++ b/Externals/Bochs_disasm/stdafx.h @@ -0,0 +1,18 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +#define _CRT_SECURE_NO_DEPRECATE 1 + +#include +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/Source/Core/AudioCommon/AudioCommon.vcproj b/Source/Core/AudioCommon/AudioCommon.vcproj index 72fa38fd81..ee39204101 100644 --- a/Source/Core/AudioCommon/AudioCommon.vcproj +++ b/Source/Core/AudioCommon/AudioCommon.vcproj @@ -461,6 +461,10 @@ RelativePath=".\Src\Mixer.h" > + + diff --git a/Source/Core/Common/Common.vcproj b/Source/Core/Common/Common.vcproj index 4cb9181449..c86cb67f28 100644 --- a/Source/Core/Common/Common.vcproj +++ b/Source/Core/Common/Common.vcproj @@ -51,12 +51,12 @@ MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" - UsePrecompiledHeader="0" - PrecompiledHeaderThrough="" + UsePrecompiledHeader="2" + PrecompiledHeaderThrough="stdafx.h" AssemblerListingLocation="$(IntDir)\" WarningLevel="3" DebugInformationFormat="3" - ForcedIncludeFiles="" + ForcedIncludeFiles="stdafx.h" /> + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/Core/Common/Src/stdafx.cpp b/Source/Core/Common/Src/stdafx.cpp new file mode 100644 index 0000000000..1dc71df3a9 --- /dev/null +++ b/Source/Core/Common/Src/stdafx.cpp @@ -0,0 +1,18 @@ +// Copyright (C) 2003-2008 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#include "stdafx.h" diff --git a/Source/Core/Common/Src/stdafx.h b/Source/Core/Common/Src/stdafx.h new file mode 100644 index 0000000000..546a643aae --- /dev/null +++ b/Source/Core/Common/Src/stdafx.h @@ -0,0 +1,35 @@ +// Copyright (C) 2003-2008 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#pragma once + +#ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x501 +#endif +#ifndef _WIN32_IE +#define _WIN32_IE 0x0500 // Default value is 0x0400 +#endif + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#define _CRT_SECURE_NO_DEPRECATE 1 +#define _CRT_NONSTDC_NO_DEPRECATE 1 + +#include +#include +#include + diff --git a/Source/Core/Core/Core.vcproj b/Source/Core/Core/Core.vcproj index 2f8ecd5790..545c87efa9 100644 --- a/Source/Core/Core/Core.vcproj +++ b/Source/Core/Core/Core.vcproj @@ -1,7 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/Core/Core/Src/stdafx.cpp b/Source/Core/Core/Src/stdafx.cpp new file mode 100644 index 0000000000..d1a69e47c1 --- /dev/null +++ b/Source/Core/Core/Src/stdafx.cpp @@ -0,0 +1,18 @@ +// Copyright (C) 2003-2008 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#include "stdafx.h" \ No newline at end of file diff --git a/Source/Core/Core/Src/stdafx.h b/Source/Core/Core/Src/stdafx.h new file mode 100644 index 0000000000..04922bcb2e --- /dev/null +++ b/Source/Core/Core/Src/stdafx.h @@ -0,0 +1,25 @@ +// Copyright (C) 2003-2008 Dolphin Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official SVN repository and contact information can be found at +// http://code.google.com/p/dolphin-emu/ + +#pragma once + +#define _WIN32_WINNT 0x501 +#ifndef _WIN32_IE +#define _WIN32_IE 0x0500 // Default value is 0x0400 +#endif + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers