From ab873d8d0b9c67eeb29ab17e40e0e9d5a94286a2 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 4 Aug 2012 20:59:14 +0200 Subject: [PATCH] Added: #1440 Base for PackageBNP plugin --HG-- branch : build_pipeline_v3 --- .../plugin_nel/pipeline_plugin_nel.cpp | 3 + .../plugin_nel/process_package_bnp.cpp | 60 ++++++++++++++ .../pipeline/plugin_nel/process_package_bnp.h | 81 +++++++++++++++++++ .../pipeline/plugin_nel/process_texture_dds.h | 6 +- .../packages/interfaces.pipeline_package | 5 +- 5 files changed, 150 insertions(+), 5 deletions(-) create mode 100644 code/nel/tools/pipeline/plugin_nel/process_package_bnp.cpp create mode 100644 code/nel/tools/pipeline/plugin_nel/process_package_bnp.h diff --git a/code/nel/tools/pipeline/plugin_nel/pipeline_plugin_nel.cpp b/code/nel/tools/pipeline/plugin_nel/pipeline_plugin_nel.cpp index 61a0ae5d5..908f33174 100644 --- a/code/nel/tools/pipeline/plugin_nel/pipeline_plugin_nel.cpp +++ b/code/nel/tools/pipeline/plugin_nel/pipeline_plugin_nel.cpp @@ -41,6 +41,7 @@ #include "../plugin_library/pipeline_interface.h" #include "process_interface.h" #include "process_texture_dds.h" +#include "process_package_bnp.h" using namespace std; // using namespace NLMISC; @@ -58,6 +59,8 @@ class CPipelinePluginNeLNelLibrary : public NLMISC::INelLibrary PIPELINE_REGISTER_CLASS(CProcessInterfaceInfo); PIPELINE_REGISTER_CLASS(CProcessTextureDDS); PIPELINE_REGISTER_CLASS(CProcessTextureDDSInfo); + PIPELINE_REGISTER_CLASS(CProcessPackageBNP); + PIPELINE_REGISTER_CLASS(CProcessPackageBNPInfo); } void onLibraryUnloaded(bool /* lastTime */) { diff --git a/code/nel/tools/pipeline/plugin_nel/process_package_bnp.cpp b/code/nel/tools/pipeline/plugin_nel/process_package_bnp.cpp new file mode 100644 index 000000000..3f0ca8f74 --- /dev/null +++ b/code/nel/tools/pipeline/plugin_nel/process_package_bnp.cpp @@ -0,0 +1,60 @@ +/** + * \file process_package_bnp.cpp + * \brief CProcessPackageBNP + * \date 2012-08-04 18:54GMT + * \author Jan Boon (Kaetemi) + * CProcessPackageBNP + */ + +/* + * Copyright (C) 2012 by authors + * + * This file is part of RYZOM CORE PIPELINE. + * RYZOM CORE PIPELINE is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * RYZOM CORE PIPELINE 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public + * License along with RYZOM CORE PIPELINE. If not, see + * . + */ + +#include +#include "process_package_bnp.h" + +// STL includes + +// NeL includes +#include + +// Project includes + +// using namespace std; +// using namespace NLMISC; + +namespace PIPELINE { + +void CProcessPackageBNP::build() +{ + nldebug("Build process plugin: CProcessPackageBNP"); +} + +void CProcessPackageBNPInfo::getDependentDirectories(std::vector &resultAppend) +{ + +} + +void CProcessPackageBNPInfo::getDependentFiles(std::vector &resultAppend) +{ + +} + +} /* namespace PIPELINE */ + +/* end of file */ diff --git a/code/nel/tools/pipeline/plugin_nel/process_package_bnp.h b/code/nel/tools/pipeline/plugin_nel/process_package_bnp.h new file mode 100644 index 000000000..03a19273c --- /dev/null +++ b/code/nel/tools/pipeline/plugin_nel/process_package_bnp.h @@ -0,0 +1,81 @@ +/** + * \file process_package_bnp.h + * \brief CProcessPackageBNP + * \date 2012-08-04 18:54GMT + * \author Jan Boon (Kaetemi) + * CProcessPackageBNP + */ + +/* + * Copyright (C) 2012 by authors + * + * This file is part of RYZOM CORE PIPELINE. + * RYZOM CORE PIPELINE is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * RYZOM CORE PIPELINE 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public + * License along with RYZOM CORE PIPELINE. If not, see + * . + */ + +#ifndef PIPELINE_PROCESS_PACKAGE_BNP_H +#define PIPELINE_PROCESS_PACKAGE_BNP_H +#include + +// STL includes + +// NeL includes + +// Project includes +#include "../plugin_library/process_handler.h" +#include "../plugin_library/process_info.h" + +namespace PIPELINE { + +/** + * \brief CProcessPackageBNP + * \date 2012-08-04 18:54GMT + * \author Jan Boon (Kaetemi) + * CProcessPackageBNP + */ +class CProcessPackageBNP : public IProcessHandler +{ +public: + CProcessPackageBNP() { } + virtual ~CProcessPackageBNP() { } + + virtual void build(); + + NLMISC_DECLARE_CLASS(CProcessPackageBNP) +}; /* class CProcessPackageBNP */ + +/** + * \brief CProcessPackageBNPInfo + * \date 2012-08-04 18:54GMT + * \author Jan Boon (Kaetemi) + * CProcessPackageBNPInfo + */ +class CProcessPackageBNPInfo : public IProcessInfo +{ +public: + CProcessPackageBNPInfo() { } + virtual ~CProcessPackageBNPInfo() { } + + virtual void getDependentDirectories(std::vector &resultAppend); + virtual void getDependentFiles(std::vector &resultAppend); + + NLMISC_DECLARE_CLASS(CProcessPackageBNPInfo) +}; /* class CProcessPackageBNPInfo */ + +} /* namespace PIPELINE */ + +#endif /* #ifndef PIPELINE_PROCESS_PACKAGE_BNP_H */ + +/* end of file */ diff --git a/code/nel/tools/pipeline/plugin_nel/process_texture_dds.h b/code/nel/tools/pipeline/plugin_nel/process_texture_dds.h index dc9d8fe94..bddc58f11 100644 --- a/code/nel/tools/pipeline/plugin_nel/process_texture_dds.h +++ b/code/nel/tools/pipeline/plugin_nel/process_texture_dds.h @@ -59,10 +59,10 @@ public: }; /* class CProcessTextureDDS */ /** - * \brief CProcessTextureDDS + * \brief CProcessTextureDDSInfo * \date 2012-08-04 12:50GMT * \author Jan Boon (Kaetemi) - * CProcessTextureDDS + * CProcessTextureDDSInfo */ class CProcessTextureDDSInfo : public IProcessInfo { @@ -74,7 +74,7 @@ public: virtual void getDependentFiles(std::vector &resultAppend); NLMISC_DECLARE_CLASS(CProcessTextureDDSInfo) -}; /* class CProcessTextureDDS */ +}; /* class CProcessTextureDDSInfo */ } /* namespace PIPELINE */ diff --git a/code/ryzom/common/data_leveldesign/leveldesign/pipeline/packages/interfaces.pipeline_package b/code/ryzom/common/data_leveldesign/leveldesign/pipeline/packages/interfaces.pipeline_package index 5b04582f4..98f4cbcfe 100644 --- a/code/ryzom/common/data_leveldesign/leveldesign/pipeline/packages/interfaces.pipeline_package +++ b/code/ryzom/common/data_leveldesign/leveldesign/pipeline/packages/interfaces.pipeline_package @@ -18,7 +18,7 @@ - + @@ -33,5 +33,6 @@ Sat Aug 04 20:16:14 2012 (kaetemi) formName Resized = 6 Sat Aug 04 20:19:53 2012 (kaetemi) .DependentProjects[0] = common_interface.pipeline_project Sat Aug 04 20:19:53 2012 (kaetemi) formName Resized = 1 Sat Aug 04 20:20:13 2012 (kaetemi) .Processes[0] = PackageBNP -Sat Aug 04 20:20:13 2012 (kaetemi) formName Resized = 1 +Sat Aug 04 20:20:13 2012 (kaetemi) formName Resized = 1 +Sat Aug 04 20:34:00 2012 (kaetemi) .Package.BNP.DstFile = [$PackageDirectory]/interfaces.bnp