ソースを参照

Z991239-825 #comment feat:download 实体 首次编译windows版本通过

Signed-Off-By: commit-hook
刘文涛174520 5 年 前
コミット
5b86944e89

+ 42 - 0
Module/mod_download/CMakeLists.txt

@@ -0,0 +1,42 @@
+#实体命名
+define_module("Download")
+
+#整个实体加载的文件
+set(${MODULE_PREFIX}_SRCS
+	mod_download.cpp
+	mod_download.h
+	download.cpp
+	download.h
+	Download_client_g.h
+	Download_def_g.h
+	Download_server_g.h
+	Download_msg_g.h
+	DownloadFSM.cpp
+	DownloadFSM.h
+	Event.h
+	)
+#设置版本
+set(MOD_VERSION_STRING "1.0.0-dev1")
+add_module_libraries(${MODULE_PREFIX} ${MODULE_NAME} ${MOD_VERSION_STRING})
+#附加包含的目录
+target_include_directories(${MODULE_NAME} PRIVATE
+	${RVC_FRAMEWORK_INCLUDES_DIR}
+	${CONAN_INCLUDE_DIRS_SCEW}
+	${CONAN_INCLUDE_DIRS_EXPAT}
+)
+
+target_link_directories(${MODULE_NAME} PRIVATE
+	${CONAN_LIB_DIRS_SCEW}
+	${CONAN_LIB_DIRS_EXPAT}
+)
+
+target_link_directories(${MODULE_NAME} PRIVATE
+	${ThirdPartyLib}
+)
+
+# 添加实体需要依赖的其他共享库(包括系统库):连接器包含的包
+set(${MODULE_PREFIX}_LIBS ${MODULE_BASE_ALL_LIBS} scew expat Advapi32)
+
+target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})  
+
+deploy_module(${MODULE_PREFIX} ${MODULE_NAME})

+ 1 - 1
Module/mod_download/DownloadFSM.cpp

@@ -7,7 +7,7 @@
 #include <fileutil.h>
 #include <strutil.h>
 #include "SpIni.h"
-#include "..\EventCode.h"
+#include "EventCode.h"
 
 
 

+ 1 - 190
Module/mod_download/mod_download.cpp

@@ -1,194 +1,5 @@
-#include "stdafx.h"
-#include "SpBase.h"
-#include "SpIni.h"
+#include "mod_download.h"
 
-#include "strutil.h"
-
-#include <list>
-
-#include "DownloadFSM.h"
-
-#include "Download_server_g.h"
-
-using namespace Download;
-
-class CDownloadEntity;
-
-class DownloadSession : public DownloadService_ServerSessionBase
-{
-public:
-	DownloadSession(CDownloadEntity *pEntity) : m_pEntity(pEntity) {}
-	virtual ~DownloadSession() {}
-	
-	virtual void Handle_DownloadFile(SpReqAnsContext<DownloadService_DownloadFile_Req, DownloadService_DownloadFile_Ans>::Pointer ctx);
-	virtual void Handle_IsDownloading(SpReqAnsContext<DownloadService_IsDownloading_Req, DownloadService_IsDownloading_Ans>::Pointer ctx);
-	virtual void Handle_CancelDownloadFile(SpReqAnsContext<DownloadService_CancelDownloadFile_Req, DownloadService_CancelDownloadFile_Ans>::Pointer ctx);
-	virtual void Handle_QueryDownloadState(SpReqAnsContext<DownloadService_QueryDownloadState_Req, DownloadService_QueryDownloadState_Ans>::Pointer ctx);
-
-
-private:
-	CDownloadEntity *m_pEntity;
-};
-
-class CDownloadEntity : public CEntityBase, public IFSMStateHooker
-{
-public:
-	CDownloadEntity() :m_bSynchronized(false) {}
-	virtual ~CDownloadEntity() {}
-	virtual const char *GetEntityName() const { return "Download"; } // 0x105
-	virtual bool IsService()const { return true; }
-
-	virtual void OnPreStart(CAutoArray<CSimpleStringA> strArgs,CSmartPointer<ITransactionContext> pTransactionContext) 
-	{
-		ErrorCodeEnum Error = Error_Succeed;
-		//初始化:加载状态hooker,初始化状态机
-		m_fsm.AddStateHooker(this);
-		Error = m_fsm.Init(this);
-		
-		pTransactionContext->SendAnswer(Error);
-	}
-
-	virtual void OnPreClose(EntityCloseCauseEnum eCloseCause,CSmartPointer<ITransactionContext> pTransactionContext) 
-	{ 
-		pTransactionContext->SendAnswer(Error_Succeed); 
-	}
-
-	virtual CServerSessionBase *OnNewSession(const char* /*pszRemoteEntityName*/, const char * /*pszClass*/)
-	{
-		LOG_FUNCTION();
-		return new DownloadSession(this);
-	}
-
-	virtual void OnSelfTest(EntityTestEnum eTestType,CSmartPointer<ITransactionContext> pTransactionContext) 
-	{ 
-		if (Test_ShakeHand == eTestType)
-		{
-			pTransactionContext->SendAnswer(Error_Succeed); 
-		}
-	}
-
-	virtual void OnStateTrans(int iSrcState, int iDstState)
-	{
-		if (iDstState == DownloadFSM::SYNC_STATE) { // Enter
-			m_bSynchronized = true;			
-		} else if (iSrcState == DownloadFSM::SYNC_STATE) { // Leave
-			m_bSynchronized = false;
-		}
-	}
-
-	bool IsSynchronized()
-	{
-		return m_bSynchronized;
-	}
-
-	//接收新下载任务
-	ErrorCodeEnum DownloadFile(SpReqAnsContext<DownloadService_DownloadFile_Req, DownloadService_DownloadFile_Ans>::Pointer ctx)
-	{
-		Dbg("DownloadFile req file name is : [%s] , expireTime is [%d]", (const char*)ctx->Req.strFileName,ctx->Req.dwExpireTime);
-		ErrorCodeEnum Error = m_fsm.addDownLoadFileWork(ctx->Req.strFileName,ctx->Req.dwExpireTime);
-		if(Error!=Error_Succeed){
-			Dbg("DownloadFile req fail, file name is : [%s] ", (const char*)ctx->Req.strFileName);
-		}
-		return Error;
-	}
-	//整个流程是否正在下载任务
-	ErrorCodeEnum IsDownloading(bool &bDownloading)
-	{
-		bDownloading = !m_bSynchronized;
-		return Error_Succeed;
-	}
-	//取消下载任务
-	ErrorCodeEnum CancelDownloadFile(SpReqAnsContext<DownloadService_CancelDownloadFile_Req, DownloadService_CancelDownloadFile_Ans>::Pointer ctx)
-	{
-		Dbg("CancelDownloadFile req file name is : [%s]", (const char*)ctx->Req.strFileName);
-
-		//ErrorCodeEnum Error = m_fsm.deleteCurrentDownloadFile(ctx->Req.strFileName);
-
-		ErrorCodeEnum Error = m_fsm.deleteDownLoadFileWork(ctx->Req.strFileName);
-		if(Error!=Error_Succeed){
-			Dbg("CancelDownloadFile req fail, file name is : [%s] ", (const char*)ctx->Req.strFileName);
-		}
-		m_fsm.PostEventFIFO(new FSMEvent(USER_EVT_JMP_DISABLE));//因下载任务发生变化,结束当前下载,重新开始新的一轮下载。
-		return Error;
-	}
-	//查询下载任务状态
-	ErrorCodeEnum QueryDownloadState(SpReqAnsContext<DownloadService_QueryDownloadState_Req, DownloadService_QueryDownloadState_Ans>::Pointer ctx)
-	{
-		//检查文件是否下载完毕,并检查本地文件是否存在
-		
-
-		const char* filename = (const char*)ctx->Req.strFileName;
-		Dbg("QueryDownloadState req file name is : [%s]", filename);
-		//当前正在下载,排队,不存在后则看是否下载完成,不存在
-		//1:正在下载 2:排队中 3:下载完成 4:无下载任务并且没有文件
-		if(strcmp(filename,m_fsm.m_currentFileName.GetData())==0){
-			ctx->Ans.iDownloadState=1;
-			return Error_Succeed;
-		}
-		if(m_fsm.isDownloadTask(filename)){
-			ctx->Ans.iDownloadState=2;
-			return Error_Succeed;
-		}
-
-		CSimpleStringA str;
-		GetFunction()->GetPath("Download", str);
-		char tmp[MAX_PATH];
-		WIN32_FIND_DATAA fd;
-		strcpy(tmp, str.GetData());
-		if (str_has_suffix(str.GetData(), "\\")) {
-			strcat(tmp, filename);
-		} else {
-			strcat(tmp, "\\");
-			strcat(tmp,filename);
-		}
-
-		HANDLE hFind = FindFirstFileA(tmp, &fd);
-
-		if(hFind != INVALID_HANDLE_VALUE){
-			FindClose(hFind);
-			ctx->Ans.iDownloadState=3;
-			return Error_Succeed;
-		}else{
-			FindClose(hFind);
-			ctx->Ans.iDownloadState=4;
-			return Error_Succeed;
-		}
-	}
-
-private:
-	ErrorCodeEnum MakeFileList(std::list<CSimpleStringA> &fileList)
-	{
-		CSimpleStringA str;
-		GetFunction()->GetPath("Download", str);
-		return __MakeFileList(str, fileList);
-	}
-	ErrorCodeEnum __MakeFileList(const char *base_dir, std::list<CSimpleStringA> &fileList)
-	{
-		char tmp[MAX_PATH];
-		WIN32_FIND_DATAA fd;
-		strcpy(tmp, base_dir);
-		if (str_has_suffix(base_dir, "\\")) {
-			strcat(tmp, "*");
-		} else {
-			strcat(tmp, "\\*.*");
-		}
-		HANDLE hFind = FindFirstFileA(tmp, &fd);
-		if (hFind != INVALID_HANDLE_VALUE) {
-			do {
-				if ((fd.dwFileAttributes & FILE_ATTRIBUTE_NORMAL) && !(fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)) {
-					fileList.push_back(CSimpleStringA(fd.cFileName));
-				}
-			} while (FindNextFileA(hFind, &fd));
-			FindClose(hFind);
-		}
-		return Error_Succeed;
-	}
-
-
-private:
-	bool m_bSynchronized;
-	DownloadFSM m_fsm;
-};
 
 void DownloadSession::Handle_DownloadFile(SpReqAnsContext<DownloadService_DownloadFile_Req, DownloadService_DownloadFile_Ans>::Pointer ctx)
 {

+ 208 - 0
Module/mod_download/mod_download.h

@@ -0,0 +1,208 @@
+#ifndef RVC_MOD_DOWNLOAD_H_
+#define RVC_MOD_DOWNLOAD_H_
+#include "stdafx.h"
+#include "SpBase.h"
+#include "SpIni.h"
+
+#include "SpTest.h"
+#include "modVer.h"
+
+#include "strutil.h"
+
+#include <list>
+
+#include "DownloadFSM.h"
+
+#include "Download_server_g.h"
+
+using namespace Download;
+
+class CDownloadEntity;
+
+class DownloadSession : public DownloadService_ServerSessionBase
+{
+public:
+	DownloadSession(CDownloadEntity* pEntity) : m_pEntity(pEntity) {}
+	virtual ~DownloadSession() {}
+
+	virtual void Handle_DownloadFile(SpReqAnsContext<DownloadService_DownloadFile_Req, DownloadService_DownloadFile_Ans>::Pointer ctx);
+	virtual void Handle_IsDownloading(SpReqAnsContext<DownloadService_IsDownloading_Req, DownloadService_IsDownloading_Ans>::Pointer ctx);
+	virtual void Handle_CancelDownloadFile(SpReqAnsContext<DownloadService_CancelDownloadFile_Req, DownloadService_CancelDownloadFile_Ans>::Pointer ctx);
+	virtual void Handle_QueryDownloadState(SpReqAnsContext<DownloadService_QueryDownloadState_Req, DownloadService_QueryDownloadState_Ans>::Pointer ctx);
+
+
+private:
+	CDownloadEntity* m_pEntity;
+};
+
+class CDownloadEntity : public CEntityBase, public IFSMStateHooker
+{
+public:
+	CDownloadEntity() :m_bSynchronized(false) {}
+	virtual ~CDownloadEntity() {}
+	virtual const char* GetEntityName() const { return "Download"; } // 0x105
+	virtual bool IsService()const { return true; }
+
+	const char* GetEntityVersion() const override
+	{
+		return MODULE_VERSION_FULL;
+	}
+
+	ON_ENTITYT_TEST();
+
+	virtual void OnPreStart(CAutoArray<CSimpleStringA> strArgs, CSmartPointer<ITransactionContext> pTransactionContext)
+	{
+		ErrorCodeEnum Error = Error_Succeed;
+		//初始化:加载状态hooker,初始化状态机
+		m_fsm.AddStateHooker(this);
+		Error = m_fsm.Init(this);
+
+		pTransactionContext->SendAnswer(Error);
+	}
+
+	virtual void OnPreClose(EntityCloseCauseEnum eCloseCause, CSmartPointer<ITransactionContext> pTransactionContext)
+	{
+		pTransactionContext->SendAnswer(Error_Succeed);
+	}
+
+	virtual CServerSessionBase* OnNewSession(const char* /*pszRemoteEntityName*/, const char* /*pszClass*/)
+	{
+		LOG_FUNCTION();
+		return new DownloadSession(this);
+	}
+
+	virtual void OnSelfTest(EntityTestEnum eTestType, CSmartPointer<ITransactionContext> pTransactionContext)
+	{
+		if (Test_ShakeHand == eTestType)
+		{
+			pTransactionContext->SendAnswer(Error_Succeed);
+		}
+	}
+
+	virtual void OnStateTrans(int iSrcState, int iDstState)
+	{
+		if (iDstState == DownloadFSM::SYNC_STATE) { // Enter
+			m_bSynchronized = true;
+		}
+		else if (iSrcState == DownloadFSM::SYNC_STATE) { // Leave
+			m_bSynchronized = false;
+		}
+	}
+
+	bool IsSynchronized()
+	{
+		return m_bSynchronized;
+	}
+
+	//接收新下载任务
+	ErrorCodeEnum DownloadFile(SpReqAnsContext<DownloadService_DownloadFile_Req, DownloadService_DownloadFile_Ans>::Pointer ctx)
+	{
+		Dbg("DownloadFile req file name is : [%s] , expireTime is [%d]", (const char*)ctx->Req.strFileName, ctx->Req.dwExpireTime);
+		ErrorCodeEnum Error = m_fsm.addDownLoadFileWork(ctx->Req.strFileName, ctx->Req.dwExpireTime);
+		if (Error != Error_Succeed) {
+			Dbg("DownloadFile req fail, file name is : [%s] ", (const char*)ctx->Req.strFileName);
+		}
+		return Error;
+	}
+	//整个流程是否正在下载任务
+	ErrorCodeEnum IsDownloading(bool& bDownloading)
+	{
+		bDownloading = !m_bSynchronized;
+		return Error_Succeed;
+	}
+	//取消下载任务
+	ErrorCodeEnum CancelDownloadFile(SpReqAnsContext<DownloadService_CancelDownloadFile_Req, DownloadService_CancelDownloadFile_Ans>::Pointer ctx)
+	{
+		Dbg("CancelDownloadFile req file name is : [%s]", (const char*)ctx->Req.strFileName);
+
+		//ErrorCodeEnum Error = m_fsm.deleteCurrentDownloadFile(ctx->Req.strFileName);
+
+		ErrorCodeEnum Error = m_fsm.deleteDownLoadFileWork(ctx->Req.strFileName);
+		if (Error != Error_Succeed) {
+			Dbg("CancelDownloadFile req fail, file name is : [%s] ", (const char*)ctx->Req.strFileName);
+		}
+		m_fsm.PostEventFIFO(new FSMEvent(USER_EVT_JMP_DISABLE));//因下载任务发生变化,结束当前下载,重新开始新的一轮下载。
+		return Error;
+	}
+	//查询下载任务状态
+	ErrorCodeEnum QueryDownloadState(SpReqAnsContext<DownloadService_QueryDownloadState_Req, DownloadService_QueryDownloadState_Ans>::Pointer ctx)
+	{
+		//检查文件是否下载完毕,并检查本地文件是否存在
+
+
+		const char* filename = (const char*)ctx->Req.strFileName;
+		Dbg("QueryDownloadState req file name is : [%s]", filename);
+		//当前正在下载,排队,不存在后则看是否下载完成,不存在
+		//1:正在下载 2:排队中 3:下载完成 4:无下载任务并且没有文件
+		if (strcmp(filename, m_fsm.m_currentFileName.GetData()) == 0) {
+			ctx->Ans.iDownloadState = 1;
+			return Error_Succeed;
+		}
+		if (m_fsm.isDownloadTask(filename)) {
+			ctx->Ans.iDownloadState = 2;
+			return Error_Succeed;
+		}
+
+		CSimpleStringA str;
+		GetFunction()->GetPath("Download", str);
+		char tmp[MAX_PATH];
+		WIN32_FIND_DATAA fd;
+		strcpy(tmp, str.GetData());
+		if (str_has_suffix(str.GetData(), "\\")) {
+			strcat(tmp, filename);
+		}
+		else {
+			strcat(tmp, "\\");
+			strcat(tmp, filename);
+		}
+
+		HANDLE hFind = FindFirstFileA(tmp, &fd);
+
+		if (hFind != INVALID_HANDLE_VALUE) {
+			FindClose(hFind);
+			ctx->Ans.iDownloadState = 3;
+			return Error_Succeed;
+		}
+		else {
+			FindClose(hFind);
+			ctx->Ans.iDownloadState = 4;
+			return Error_Succeed;
+		}
+	}
+
+private:
+	ErrorCodeEnum MakeFileList(std::list<CSimpleStringA>& fileList)
+	{
+		CSimpleStringA str;
+		GetFunction()->GetPath("Download", str);
+		return __MakeFileList(str, fileList);
+	}
+	ErrorCodeEnum __MakeFileList(const char* base_dir, std::list<CSimpleStringA>& fileList)
+	{
+		char tmp[MAX_PATH];
+		WIN32_FIND_DATAA fd;
+		strcpy(tmp, base_dir);
+		if (str_has_suffix(base_dir, "\\")) {
+			strcat(tmp, "*");
+		}
+		else {
+			strcat(tmp, "\\*.*");
+		}
+		HANDLE hFind = FindFirstFileA(tmp, &fd);
+		if (hFind != INVALID_HANDLE_VALUE) {
+			do {
+				if ((fd.dwFileAttributes & FILE_ATTRIBUTE_NORMAL) && !(fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)) {
+					fileList.push_back(CSimpleStringA(fd.cFileName));
+				}
+			} while (FindNextFileA(hFind, &fd));
+			FindClose(hFind);
+		}
+		return Error_Succeed;
+	}
+
+
+private:
+	bool m_bSynchronized;
+	DownloadFSM m_fsm;
+};
+#endif

+ 0 - 110
Module/mod_download/mod_download.vcxproj

@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{04ED1C6F-434C-43A0-B7DC-2D1A4AB80EA8}</ProjectGuid>
-    <Keyword>Win32Proj</Keyword>
-    <RootNamespace>mod_download</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>true</UseDebugLibraries>
-    <CharacterSet>MultiByte</CharacterSet>
-    <PlatformToolset>Windows7.1SDK</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <UseDebugLibraries>false</UseDebugLibraries>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-    <CharacterSet>MultiByte</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <Import Project="..\modmake.setting" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <LinkIncremental>true</LinkIncremental>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <LinkIncremental>false</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <WarningLevel>Level3</WarningLevel>
-      <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_DOWNLOAD_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(FrameworkHeadRoot)\Common;$(FrameworkHeadRoot)\libtoolkit;$(ThirdPartyHeadRoot)\scew-1.1.3\scew;$(ThirdPartyHeadRoot)\Expat-2.1.0\Source\lib;;$(ThirdPartyHeadRoot)\KMC</AdditionalIncludeDirectories>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <AdditionalDependencies>$(FrameworkLib)\SpBase.lib;$(FrameworkLib)\RVCComm.lib;$(ThirdPartyLib)\RVCCrypt.lib;$(FrameworkLib)\libtoolkit.lib;$(ThirdPartyLib)\libscew.lib;$(ThirdPartyLib)\libexpat.lib;Advapi32.lib</AdditionalDependencies>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <Optimization>MaxSpeed</Optimization>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_DOWNLOAD_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(FrameworkHeadRoot)\Common;$(FrameworkHeadRoot)\libtoolkit;$(ThirdPartyHeadRoot)\scew-1.1.3\scew;$(ThirdPartyHeadRoot)\Expat-2.1.0\Source\lib;;$(ThirdPartyHeadRoot)\KMC</AdditionalIncludeDirectories>
-    </ClCompile>
-    <Link>
-      <SubSystem>Windows</SubSystem>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
-      <OptimizeReferences>true</OptimizeReferences>
-      <AdditionalDependencies>$(FrameworkLib)\SpBase.lib;$(FrameworkLib)\RVCComm.lib;$(ThirdPartyLib)\RVCCrypt.lib;$(FrameworkLib)\libtoolkit.lib;$(ThirdPartyLib)\libscew.lib;$(ThirdPartyLib)\libexpat.lib;Advapi32.lib</AdditionalDependencies>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClInclude Include="$(FrameworkHeadRoot)\Common\stdafx.h" />
-    <ClInclude Include="download.h" />
-    <ClInclude Include="DownloadFSM.h" />
-    <ClInclude Include="Download_client_g.h" />
-    <ClInclude Include="Download_def_g.h" />
-    <ClInclude Include="Download_msg_g.h" />
-    <ClInclude Include="Download_server_g.h" />
-    <ClInclude Include="Event.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\Version.rc" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="$(FrameworkHeadRoot)\Common\stdafx.cpp" />
-    <ClCompile Include="download.cpp" />
-    <ClCompile Include="DownloadFSM.cpp" />
-    <ClCompile Include="mod_download.cpp" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="DownloadService.xml">
-      <SubType>Designer</SubType>
-    </None>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>

+ 0 - 57
Module/mod_download/mod_download.vcxproj.filters

@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
-      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
-      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\Framework\Common\stdafx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="DownloadFSM.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="download.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="Event.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="Download_client_g.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="Download_def_g.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="Download_server_g.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\Framework\Common\stdafx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="mod_download.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="DownloadFSM.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="download.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="DownloadService.xml" />
-  </ItemGroup>
-</Project>