mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Refactor module definition file selection
Create a `ModuleDefinitionInfo` structure for each configuration of a target to hold corresponding information about the selected module definition file (`.def` source).
This commit is contained in:
@@ -235,7 +235,12 @@ public:
|
||||
cmLocalGenerator* LocalGenerator;
|
||||
cmGlobalGenerator const* GlobalGenerator;
|
||||
|
||||
cmSourceFile const* GetModuleDefinitionFile(const std::string& config) const;
|
||||
struct ModuleDefinitionInfo
|
||||
{
|
||||
std::string DefFile;
|
||||
};
|
||||
ModuleDefinitionInfo const* GetModuleDefinitionInfo(
|
||||
std::string const& config) const;
|
||||
|
||||
/** Return whether or not the target is for a DLL platform. */
|
||||
bool IsDLLPlatform() const;
|
||||
@@ -723,6 +728,12 @@ private:
|
||||
typedef std::map<std::string, OutputInfo> OutputInfoMapType;
|
||||
mutable OutputInfoMapType OutputInfoMap;
|
||||
|
||||
typedef std::map<std::string, ModuleDefinitionInfo>
|
||||
ModuleDefinitionInfoMapType;
|
||||
mutable ModuleDefinitionInfoMapType ModuleDefinitionInfoMap;
|
||||
void ComputeModuleDefinitionInfo(std::string const& config,
|
||||
ModuleDefinitionInfo& info) const;
|
||||
|
||||
typedef std::pair<std::string, bool> OutputNameKey;
|
||||
typedef std::map<OutputNameKey, std::string> OutputNameMapType;
|
||||
mutable OutputNameMapType OutputNameMap;
|
||||
|
||||
Reference in New Issue
Block a user