Browse Source

Merge pull request #284 from Hoikas/pch

Trickle of PCH
Adam Johnson 12 years ago
parent
commit
9e87967f1a
  1. 1
      Sources/Plasma/CoreLib/CMakeLists.txt
  2. 1
      Sources/Plasma/CoreLib/HeadSpin.cpp
  3. 43
      Sources/Plasma/CoreLib/Pch.cpp
  4. 74
      Sources/Plasma/CoreLib/_CoreLibPch.h
  5. 2
      Sources/Plasma/CoreLib/hsBitVector.cpp
  6. 2
      Sources/Plasma/CoreLib/hsBounds.cpp
  7. 12
      Sources/Plasma/CoreLib/hsCritSect.cpp
  8. 2
      Sources/Plasma/CoreLib/hsFastMath.cpp
  9. 5
      Sources/Plasma/CoreLib/hsGeometry3.cpp
  10. 2
      Sources/Plasma/CoreLib/hsMatrix33.cpp
  11. 5
      Sources/Plasma/CoreLib/hsMatrix44.cpp
  12. 3
      Sources/Plasma/CoreLib/hsMemory.cpp
  13. 3
      Sources/Plasma/CoreLib/hsQuat.cpp
  14. 2
      Sources/Plasma/CoreLib/hsRefCnt.cpp
  15. 13
      Sources/Plasma/CoreLib/hsStream.cpp
  16. 4
      Sources/Plasma/CoreLib/hsThread_Win.cpp
  17. 4
      Sources/Plasma/CoreLib/plFileSystem.cpp
  18. 2
      Sources/Plasma/CoreLib/plLoadMask.cpp
  19. 3
      Sources/Plasma/CoreLib/plProduct.cpp
  20. 11
      Sources/Plasma/CoreLib/plString.cpp
  21. 2
      Sources/Plasma/CoreLib/plViewTransform.cpp
  22. 1
      cmake/PrecompiledHeader.cmake

1
Sources/Plasma/CoreLib/CMakeLists.txt

@ -98,6 +98,7 @@ set(CoreLib_HEADERS
plViewTransform.h
)
use_precompiled_header(_CoreLibPch.h Pch.cpp CoreLib_HEADERS CoreLib_SOURCES)
add_library(CoreLib STATIC ${CoreLib_SOURCES} ${CoreLib_HEADERS})
target_link_libraries(CoreLib ${PCRE_LIBRARY})

1
Sources/Plasma/CoreLib/HeadSpin.cpp

@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifdef _MSC_VER
# include <crtdbg.h>
#endif
#pragma hdrstop
#include "hsTemplates.h"
#include "plString.h"

43
Sources/Plasma/CoreLib/Pch.cpp

@ -0,0 +1,43 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
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, either version 3 of the License, or
(at your option) any later version.
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 for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/
#include "_CoreLibPch.h"

74
Sources/Plasma/CoreLib/_CoreLibPch.h

@ -0,0 +1,74 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
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, either version 3 of the License, or
(at your option) any later version.
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 for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <functional>
#include <limits.h>
#include <memory>
#include <stdarg.h>
#include <stdint.h>
#include <wchar.h>
#include "HeadSpin.h"
#include "hsWindows.h"
#include <sys/stat.h>
#include <sys/types.h>
#if HS_BUILD_FOR_WIN32
# include <io.h>
# include <process.h>
# include <shlobj.h>
#else
# include <unistd.h>
# include <dirent.h>
# include <fnmatch.h>
#endif
#ifdef _MSC_VER
# include <crtdbg.h>
#endif

2
Sources/Plasma/CoreLib/hsBitVector.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsStream.h"
#include "hsBitVector.h"
#include "hsTemplates.h"

2
Sources/Plasma/CoreLib/hsBounds.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsBounds.h"
#include "hsStream.h"

12
Sources/Plasma/CoreLib/hsCritSect.cpp

@ -39,20 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
/*****************************************************************************
*
* $/Plasma20/Sources/Plasma/CoreLib/hsCritSect.cpp
*
*
* By Eric Anderson (10/23/2005)
* Copyright 2005 Cyan Worlds, Inc.
*
***/
#include "HeadSpin.h"
#include "hsCritSect.h"
#pragma hdrstop
#include "hsCritSect.h"
/****************************************************************************
*

2
Sources/Plasma/CoreLib/hsFastMath.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsGeometry3.h"
#include "hsFastMath.h"

5
Sources/Plasma/CoreLib/hsGeometry3.cpp

@ -39,9 +39,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include <cmath>
#pragma hdrstop
#include "hsGeometry3.h"
#include "hsStream.h"
#include <cmath>
hsVector3 operator%(const hsVector3& t, const hsVector3& s)
{

2
Sources/Plasma/CoreLib/hsMatrix33.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsMatrix33.h"
#include "hsStream.h"

5
Sources/Plasma/CoreLib/hsMatrix44.cpp

@ -40,12 +40,15 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include <cmath>
#include "HeadSpin.h"
#pragma hdrstop
#include "hsGeometry3.h"
#include "hsQuat.h"
#include "hsMatrix44.h"
#include "hsStream.h"
#include <cmath>
#ifdef HS_SIMD_INCLUDE
# include HS_SIMD_INCLUDE

3
Sources/Plasma/CoreLib/hsMemory.cpp

@ -40,6 +40,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include <cstring>
#pragma hdrstop
#include "hsMemory.h"
#include "hsExceptions.h"

3
Sources/Plasma/CoreLib/hsQuat.cpp

@ -39,7 +39,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsQuat.h"
#include "hsMatrix44.h"
#include "hsStream.h"

2
Sources/Plasma/CoreLib/hsRefCnt.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsExceptions.h"
#include "hsRefCnt.h"

13
Sources/Plasma/CoreLib/hsStream.cpp

@ -39,19 +39,20 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include <cctype>
#if HS_BUILD_FOR_WIN32
# include <io.h>
#endif
#pragma hdrstop
#include "hsStream.h"
#include "hsMemory.h"
#include "hsTemplates.h"
#if HS_BUILD_FOR_UNIX
#include <unistd.h>
#endif
#if HS_BUILD_FOR_WIN32
#include <io.h>
#endif
//////////////////////////////////////////////////////////////////////////////////
void hsStream::FastFwd()

4
Sources/Plasma/CoreLib/hsThread_Win.cpp

@ -40,9 +40,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "hsThread.h"
#include "hsWindows.h"
#include <process.h>
#pragma hdrstop
#include "hsThread.h"
#include "hsExceptions.h"
#include "hsMemory.h"

4
Sources/Plasma/CoreLib/plFileSystem.cpp

@ -41,7 +41,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "plFileSystem.h"
#if HS_BUILD_FOR_WIN32
# include "hsWindows.h"
@ -57,6 +56,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
# include <memory>
#endif
#include <sys/stat.h>
#pragma hdrstop
#include "plFileSystem.h"
#include "plProduct.h"
/* NOTE For this file: Windows uses UTF-16 filenames, and does not support

2
Sources/Plasma/CoreLib/plLoadMask.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "plLoadMask.h"
#include "hsStream.h"
#include "hsTemplates.h"

3
Sources/Plasma/CoreLib/plProduct.cpp

@ -40,6 +40,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "plProduct.h"
#include "plString.h"

11
Sources/Plasma/CoreLib/plString.cpp

@ -41,13 +41,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "plString.h"
#include <cstring>
#include <cstdlib>
#include <wchar.h>
#include <memory>
#include <functional>
#include <memory>
#include <wchar.h>
#pragma hdrstop
#include "plString.h"
#include <pcre.h>
const plString plString::Null;

2
Sources/Plasma/CoreLib/plViewTransform.cpp

@ -41,6 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#pragma hdrstop
#include "hsBounds.h"
#include "hsStream.h"
#include "plViewTransform.h"

1
cmake/PrecompiledHeader.cmake

@ -14,7 +14,6 @@ function(use_precompiled_header PrecompiledHeader PrecompiledSource Headers Sour
get_filename_component(PrecompiledBasename ${PrecompiledHeader} NAME_WE)
set(PrecompiledBinary ${PrecompiledBasename}.pch)
add_definitions(/Fp"${PrecompiledBinary}")
add_definitions(/Yu"${PrecompiledHeader}")
add_definitions(/FI"${PrecompiledHeader}")
set_source_files_properties(${PrecompiledSource} PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeader}\"")

Loading…
Cancel
Save