1. Jason R. Coombs
  2. pyv8

Commits

flie...@3b770cb8-f9e6-11dd-ac5b-dfceb64ead24  committed 14b99b0

Remove precompiled header

  • Participants
  • Parent commits 3473c7f
  • Branches default

Comments (0)

Files changed (7)

File src/Engine.cpp

View file
  • Ignore whitespace
-#include "StdAfx.h"
 #include "Engine.h"
 
 CEngine::CEngine(py::object global) 
 
 void CEngine::ReportMessage(v8::Handle<v8::Message> message, v8::Handle<v8::Value> data)
 {
-  UNREFERENCED_PARAMETER(data);
-
   v8::String::AsciiValue filename(message->GetScriptResourceName());
   int lineno = message->GetLineNumber();
   v8::String::AsciiValue sourceline(message->GetSourceLine());

File src/PyV8.cpp

View file
  • Ignore whitespace
 // PyV8.cpp : Defines the entry point for the DLL application.
 //
-
-#include "stdafx.h"
-
-#include <sstream>
-
 #include "Engine.h"
 
 BOOST_PYTHON_MODULE(_PyV8)

File src/PyV8.vcproj

View file
  • Ignore whitespace
 				MinimalRebuild="true"
 				BasicRuntimeChecks="3"
 				RuntimeLibrary="1"
-				UsePrecompiledHeader="2"
+				UsePrecompiledHeader="0"
 				WarningLevel="4"
 				Detect64BitPortabilityProblems="false"
 				DebugInformationFormat="4"
 				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;BOOST_PYTHON_STATIC_LIB"
 				RuntimeLibrary="0"
 				EnableFunctionLevelLinking="true"
-				UsePrecompiledHeader="2"
+				UsePrecompiledHeader="0"
 				WarningLevel="4"
 				Detect64BitPortabilityProblems="false"
 				DebugInformationFormat="3"
 			/>
 			<Tool
 				Name="VCPostBuildEventTool"
+				CommandLine="copy PyV8.py $(OutDir)&#x0D;&#x0A;$(OutDir)\PyV8.py&#x0D;&#x0A;"
 			/>
 		</Configuration>
 	</Configurations>
 				>
 			</File>
 			<File
-				RelativePath=".\stdafx.cpp"
-				>
-				<FileConfiguration
-					Name="Debug|Win32"
-					>
-					<Tool
-						Name="VCCLCompilerTool"
-						UsePrecompiledHeader="1"
-					/>
-				</FileConfiguration>
-				<FileConfiguration
-					Name="Release|Win32"
-					>
-					<Tool
-						Name="VCCLCompilerTool"
-						UsePrecompiledHeader="1"
-					/>
-				</FileConfiguration>
-			</File>
-			<File
 				RelativePath=".\Wrapper.cpp"
 				>
 			</File>
 				>
 			</File>
 			<File
-				RelativePath=".\stdafx.h"
-				>
-			</File>
-			<File
 				RelativePath=".\Wrapper.h"
 				>
 			</File>
 			>
 		</Filter>
 		<Filter
-			Name="Unit Tests"
+			Name="Python Files"
 			>
 			<File
+				RelativePath=".\__init__.py"
+				>
+			</File>
+			<File
 				RelativePath=".\PyV8.py"
 				DeploymentContent="true"
 				>
 			</File>
+			<File
+				RelativePath="..\setup.py"
+				>
+			</File>
 		</Filter>
 	</Files>
 	<Globals>

File src/Wrapper.cpp

View file
  • Ignore whitespace
-#include "StdAfx.h"
 #include "Wrapper.h"
 
 v8::Handle<v8::Value> CPythonWrapper::Getter(

File src/Wrapper.h

View file
  • Ignore whitespace
 #include <cassert>
 #include <stdexcept>
 
+#pragma warning( push )
+#pragma warning( disable : 4100 ) // 'identifier' : unreferenced formal parameter
+#pragma warning( disable : 4244 ) // 'argument' : conversion from 'type1' to 'type2', possible loss of data
+#pragma warning( disable : 4512 ) // 'class' : assignment operator could not be generated
+
+#include <boost/python.hpp>
+namespace py = boost::python;
+
+#include <v8.h>
+
+#pragma comment( lib, "v8.lib" )
+#pragma comment( lib, "v8_base.lib" )
+#pragma comment( lib, "v8_snapshot.lib" )
+
+#pragma warning( pop )
+
 class CPythonException : public std::runtime_error
 {
 protected:

File src/stdafx.cpp

  • Ignore whitespace
-// stdafx.cpp : source file that includes just the standard includes
-// PyV8.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

File src/stdafx.h

  • Ignore whitespace
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#pragma once
-
-// Modify the following defines if you have to target a platform prior to the ones specified below.
-// Refer to MSDN for the latest info on corresponding values for different platforms.
-#ifndef WINVER				// Allow use of features specific to Windows XP or later.
-#define WINVER 0x0501		// Change this to the appropriate value to target other versions of Windows.
-#endif
-
-#ifndef _WIN32_WINNT		// Allow use of features specific to Windows XP or later.                   
-#define _WIN32_WINNT 0x0501	// Change this to the appropriate value to target other versions of Windows.
-#endif						
-
-#ifndef _WIN32_WINDOWS		// Allow use of features specific to Windows 98 or later.
-#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
-#endif
-
-#ifndef _WIN32_IE			// Allow use of features specific to IE 6.0 or later.
-#define _WIN32_IE 0x0600	// Change this to the appropriate value to target other versions of IE.
-#endif
-
-#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
-// Windows Header Files:
-#include <windows.h>
-
-#pragma warning( push )
-#pragma warning( disable : 4100 ) // 'identifier' : unreferenced formal parameter
-#pragma warning( disable : 4244 ) // 'argument' : conversion from 'type1' to 'type2', possible loss of data
-#pragma warning( disable : 4512 ) // 'class' : assignment operator could not be generated
-
-#include <boost/python.hpp>
-namespace py = boost::python;
-
-#include <v8.h>
-
-#pragma comment( lib, "v8.lib" )
-#pragma comment( lib, "v8_base.lib" )
-#pragma comment( lib, "v8_snapshot.lib" )
-
-#pragma warning( pop )