cmake/Source/cmMakefileLibraryTargetGenerator.h

46 lines
1.5 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <string>
2021-09-14 00:13:48 +02:00
#include <vector>
2016-10-30 18:24:19 +01:00
2020-02-01 23:06:01 +01:00
#include "cmMakefileTargetGenerator.h"
2016-10-30 18:24:19 +01:00
class cmGeneratorTarget;
2016-07-09 11:21:54 +02:00
class cmMakefileLibraryTargetGenerator : public cmMakefileTargetGenerator
{
public:
2014-08-03 19:52:23 +02:00
cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
2018-01-26 17:06:56 +01:00
~cmMakefileLibraryTargetGenerator() override;
/* the main entry point for this class. Writes the Makefiles associated
with this target */
2018-01-26 17:06:56 +01:00
void WriteRuleFiles() override;
2012-08-04 10:26:08 +03:00
protected:
2012-04-19 19:04:21 +03:00
void WriteObjectLibraryRules();
void WriteStaticLibraryRules();
void WriteSharedLibraryRules(bool relink);
void WriteModuleLibraryRules(bool relink);
2017-04-14 19:02:05 +02:00
2018-10-28 12:09:07 +01:00
void WriteDeviceLibraryRules(const std::string& linkRule, bool relink);
2021-09-14 00:13:48 +02:00
void WriteNvidiaDeviceLibraryRules(const std::string& linkRuleVar,
bool relink,
std::vector<std::string>& commands,
const std::string& targetOutput);
2015-04-27 22:25:09 +02:00
void WriteLibraryRules(const std::string& linkRule,
2016-07-09 11:21:54 +02:00
const std::string& extraFlags, bool relink);
// MacOSX Framework support methods
void WriteFrameworkRules(bool relink);
// Store the computd framework version for OS X Frameworks.
std::string FrameworkVersion;
2017-04-14 19:02:05 +02:00
private:
std::string DeviceLinkObject;
};