mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
integrate with panda environment a bit better
This commit is contained in:
parent
9a96ac6a23
commit
a5a779cf33
@ -1,10 +1,5 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "P3DActiveX", "P3DActiveX.vcproj", "{74451B00-2D87-412B-9359-B5CA2C2FEC2A}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{1278896B-1978-40CC-B1A0-2D6A7450A32C} = {1278896B-1978-40CC-B1A0-2D6A7450A32C}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyxml", "..\..\..\wintools\sdk\tinyxml\tinyxml_lib_mfc_static.vcproj", "{1278896B-1978-40CC-B1A0-2D6A7450A32C}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
@ -13,17 +8,11 @@ Global
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{74451B00-2D87-412B-9359-B5CA2C2FEC2A}.Debug.ActiveCfg = Debug|Win32
|
||||
{74451B00-2D87-412B-9359-B5CA2C2FEC2A}.Debug.Build.0 = Debug|Win32
|
||||
{74451B00-2D87-412B-9359-B5CA2C2FEC2A}.Release.ActiveCfg = Release|Win32
|
||||
{74451B00-2D87-412B-9359-B5CA2C2FEC2A}.Release.Build.0 = Release|Win32
|
||||
{1278896B-1978-40CC-B1A0-2D6A7450A32C}.Debug.ActiveCfg = Debug|Win32
|
||||
{1278896B-1978-40CC-B1A0-2D6A7450A32C}.Debug.Build.0 = Debug|Win32
|
||||
{1278896B-1978-40CC-B1A0-2D6A7450A32C}.Release.ActiveCfg = Release|Win32
|
||||
{1278896B-1978-40CC-B1A0-2D6A7450A32C}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
|
@ -15,33 +15,36 @@
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="1"
|
||||
UseOfMFC="2"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\;..\..\.."
|
||||
AdditionalIncludeDirectories="..\plugin;..\..\..\wintools\sdk\tinyxml"
|
||||
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
RuntimeLibrary="2"
|
||||
TreatWChar_tAsBuiltInType="TRUE"
|
||||
UsePrecompiledHeader="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="TRUE"
|
||||
DebugInformationFormat="4"/>
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="tinyxml_d.lib"
|
||||
OutputFile="$(OutDir)/P3DActiveX.ocx"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories=""
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../../wintools/built/lib"
|
||||
IgnoreDefaultLibraryNames="LIBCI.LIB MSVCRTD.LIB MSVCRT.LIB"
|
||||
ModuleDefinitionFile=".\P3DActiveX.def"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(OutDir)/P3DActiveX.lib"
|
||||
TargetMachine="1"/>
|
||||
TargetMachine="1"
|
||||
FixedBaseAddress="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
@ -77,15 +80,15 @@
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="1"
|
||||
UseOfMFC="2"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\;..\..\.."
|
||||
AdditionalIncludeDirectories="..\plugin;..\..\..\wintools\sdk\tinyxml"
|
||||
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
|
||||
RuntimeLibrary="0"
|
||||
RuntimeLibrary="2"
|
||||
TreatWChar_tAsBuiltInType="TRUE"
|
||||
UsePrecompiledHeader="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="TRUE"
|
||||
DebugInformationFormat="3"/>
|
||||
@ -93,16 +96,19 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="tinyxml.lib"
|
||||
OutputFile="$(OutDir)/P3DActiveX.ocx"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""
|
||||
AdditionalLibraryDirectories="../../../wintools/built/lib"
|
||||
IgnoreDefaultLibraryNames="LIBCI.LIB MSVCRTD.LIB MSVCRT.LIB"
|
||||
ModuleDefinitionFile=".\P3DActiveX.def"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/P3DActiveX.lib"
|
||||
TargetMachine="1"/>
|
||||
TargetMachine="1"
|
||||
FixedBaseAddress="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "plugin/p3d_plugin.h"
|
||||
#include "p3d_plugin.h"
|
||||
#include <string>
|
||||
|
||||
class PPInterface;
|
||||
|
@ -33,13 +33,11 @@
|
||||
#include "PPBrowserObject.h"
|
||||
#include "PPDownloadRequest.h"
|
||||
|
||||
#include "wintools/sdk/tinyxml/tinyxml.h"
|
||||
#include "p3d_plugin_config.h"
|
||||
#include "tinyxml.h"
|
||||
|
||||
#define P3D_CONTENTS_FILENAME "contents.xml"
|
||||
|
||||
#define P3D_BASE_URL "http://www.ddrose.com/~drose/p3d_7/"
|
||||
//#define P3D_BASE_URL "file:///C:/p3dstage/"
|
||||
|
||||
#define P3D_FILE_BASE_URL "http://www.ddrose.com/~drose/plugin/"
|
||||
//#define P3D_FILE_BASE_URL "file:///C:/temp/"
|
||||
|
||||
@ -171,13 +169,18 @@ int PPInstance::DownloadP3DComponents( std::string& p3dDllFilename, std::string&
|
||||
std::string localContentsFileName( tempFolderName, pathLength );
|
||||
localContentsFileName += P3D_CONTENTS_FILENAME;
|
||||
|
||||
std::string remoteContentsFilename( P3D_BASE_URL );
|
||||
std::string hostUrl( PANDA_PACKAGE_HOST_URL );
|
||||
if (!hostUrl.empty() && hostUrl[hostUrl.size() - 1] != '/') {
|
||||
hostUrl += '/';
|
||||
}
|
||||
|
||||
std::string remoteContentsFilename( hostUrl );
|
||||
remoteContentsFilename += P3D_CONTENTS_FILENAME;
|
||||
|
||||
error = DownloadFile( remoteContentsFilename, localContentsFileName );
|
||||
if ( !error )
|
||||
{
|
||||
std::string p3dRemoteModuleFileName( P3D_BASE_URL );
|
||||
std::string p3dRemoteModuleFileName( hostUrl );
|
||||
error = ReadContents( localContentsFileName, p3dRemoteModuleFileName );
|
||||
if ( !error )
|
||||
{
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <math.h>
|
||||
#include "afxmt.h"
|
||||
|
||||
#include "plugin/p3d_plugin.h"
|
||||
#include "p3d_plugin.h"
|
||||
#include "PPDownloadCallback.h"
|
||||
#include "PPLogger.h"
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "plugin/p3d_plugin.h"
|
||||
#include "p3d_plugin.h"
|
||||
|
||||
class PPInterface
|
||||
{
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "plugin/p3d_plugin.h"
|
||||
#include "p3d_plugin.h"
|
||||
#include "PPInterface.h"
|
||||
|
||||
class PPandaObject : public IDispatch
|
||||
|
Loading…
x
Reference in New Issue
Block a user