mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
exports: Move cmTargetExport to a dedicated header file
This commit is contained in:
parent
ae4ab62569
commit
81c66c8b88
@ -251,6 +251,7 @@ set(SRCS
|
|||||||
cmSystemTools.h
|
cmSystemTools.h
|
||||||
cmTarget.cxx
|
cmTarget.cxx
|
||||||
cmTarget.h
|
cmTarget.h
|
||||||
|
cmTargetExport.h
|
||||||
cmTest.cxx
|
cmTest.cxx
|
||||||
cmTest.h
|
cmTest.h
|
||||||
cmTestGenerator.cxx
|
cmTestGenerator.cxx
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
#include "cmInstallExportGenerator.h"
|
#include "cmInstallExportGenerator.h"
|
||||||
#include "cmInstallTargetGenerator.h"
|
#include "cmInstallTargetGenerator.h"
|
||||||
|
#include "cmTargetExport.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmExportInstallFileGenerator
|
cmExportInstallFileGenerator
|
||||||
|
@ -91,34 +91,4 @@ protected:
|
|||||||
std::map<cmStdString, cmStdString> ConfigImportFiles;
|
std::map<cmStdString, cmStdString> ConfigImportFiles;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
cmTargetExport is used in cmGlobalGenerator to collect the install
|
|
||||||
generators for targets associated with an export.
|
|
||||||
*/
|
|
||||||
class cmTargetExport
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
cmTargetExport(cmTarget* tgt,
|
|
||||||
cmInstallTargetGenerator* archive,
|
|
||||||
cmInstallTargetGenerator* runtime,
|
|
||||||
cmInstallTargetGenerator* library,
|
|
||||||
cmInstallTargetGenerator* framework,
|
|
||||||
cmInstallTargetGenerator* bundle,
|
|
||||||
cmInstallFilesGenerator* headers
|
|
||||||
) : Target(tgt), ArchiveGenerator(archive),
|
|
||||||
RuntimeGenerator(runtime), LibraryGenerator(library),
|
|
||||||
FrameworkGenerator(framework), BundleGenerator(bundle),
|
|
||||||
HeaderGenerator(headers) {}
|
|
||||||
|
|
||||||
cmTarget* Target;
|
|
||||||
cmInstallTargetGenerator* ArchiveGenerator;
|
|
||||||
cmInstallTargetGenerator* RuntimeGenerator;
|
|
||||||
cmInstallTargetGenerator* LibraryGenerator;
|
|
||||||
cmInstallTargetGenerator* FrameworkGenerator;
|
|
||||||
cmInstallTargetGenerator* BundleGenerator;
|
|
||||||
cmInstallFilesGenerator* HeaderGenerator;
|
|
||||||
private:
|
|
||||||
cmTargetExport();
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "cmQtAutomoc.h"
|
#include "cmQtAutomoc.h"
|
||||||
#include "cmSourceFile.h"
|
#include "cmSourceFile.h"
|
||||||
#include "cmVersion.h"
|
#include "cmVersion.h"
|
||||||
#include "cmExportInstallFileGenerator.h"
|
#include "cmTargetExport.h"
|
||||||
#include "cmComputeTargetDepends.h"
|
#include "cmComputeTargetDepends.h"
|
||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
#include "cmGeneratorTarget.h"
|
#include "cmGeneratorTarget.h"
|
||||||
|
51
Source/cmTargetExport.h
Normal file
51
Source/cmTargetExport.h
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
/*============================================================================
|
||||||
|
CMake - Cross Platform Makefile Generator
|
||||||
|
Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
|
||||||
|
|
||||||
|
Distributed under the OSI-approved BSD License (the "License");
|
||||||
|
see accompanying file Copyright.txt for details.
|
||||||
|
|
||||||
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||||
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
See the License for more information.
|
||||||
|
============================================================================*/
|
||||||
|
#ifndef cmTargetExport_h
|
||||||
|
#define cmTargetExport_h
|
||||||
|
|
||||||
|
class cmTarget;
|
||||||
|
class cmInstallTargetGenerator;
|
||||||
|
class cmInstallFilesGenerator;
|
||||||
|
|
||||||
|
/** \brief A member of an ExportSet
|
||||||
|
*
|
||||||
|
* This struct holds pointers to target and all relevant generators.
|
||||||
|
*/
|
||||||
|
class cmTargetExport
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
cmTargetExport(cmTarget* tgt,
|
||||||
|
cmInstallTargetGenerator* archive,
|
||||||
|
cmInstallTargetGenerator* runtime,
|
||||||
|
cmInstallTargetGenerator* library,
|
||||||
|
cmInstallTargetGenerator* framework,
|
||||||
|
cmInstallTargetGenerator* bundle,
|
||||||
|
cmInstallFilesGenerator* headers
|
||||||
|
) : Target(tgt), ArchiveGenerator(archive),
|
||||||
|
RuntimeGenerator(runtime), LibraryGenerator(library),
|
||||||
|
FrameworkGenerator(framework), BundleGenerator(bundle),
|
||||||
|
HeaderGenerator(headers) {}
|
||||||
|
|
||||||
|
cmTarget* Target; ///< The target
|
||||||
|
|
||||||
|
///@name Generators
|
||||||
|
///@{
|
||||||
|
cmInstallTargetGenerator* ArchiveGenerator;
|
||||||
|
cmInstallTargetGenerator* RuntimeGenerator;
|
||||||
|
cmInstallTargetGenerator* LibraryGenerator;
|
||||||
|
cmInstallTargetGenerator* FrameworkGenerator;
|
||||||
|
cmInstallTargetGenerator* BundleGenerator;
|
||||||
|
cmInstallFilesGenerator* HeaderGenerator;
|
||||||
|
///@}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user