cmake/Source/cmGlobalWatcomWMakeGenerator.h

68 lines
2.2 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
2018-08-09 18:06:22 +02:00
#include <iosfwd>
2020-08-30 11:54:41 +02:00
#include <memory>
2016-10-30 18:24:19 +01:00
#include <string>
#include <vector>
2022-03-29 21:10:50 +02:00
#include "cmBuildOptions.h"
2020-02-01 23:06:01 +01:00
#include "cmGlobalGeneratorFactory.h"
#include "cmGlobalUnixMakefileGenerator3.h"
2016-10-30 18:24:19 +01:00
class cmMakefile;
class cmake;
struct cmDocumentationEntry;
/** \class cmGlobalWatcomWMakeGenerator
* \brief Write a NMake makefiles.
*
* cmGlobalWatcomWMakeGenerator manages nmake build process for a tree
*/
class cmGlobalWatcomWMakeGenerator : public cmGlobalUnixMakefileGenerator3
{
public:
2015-08-17 11:37:30 +02:00
cmGlobalWatcomWMakeGenerator(cmake* cm);
2020-08-30 11:54:41 +02:00
static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
2016-07-09 11:21:54 +02:00
{
2020-08-30 11:54:41 +02:00
return std::unique_ptr<cmGlobalGeneratorFactory>(
new cmGlobalGeneratorSimpleFactory<cmGlobalWatcomWMakeGenerator>());
2016-07-09 11:21:54 +02:00
}
2019-11-11 23:01:05 +01:00
//! Get the name for the generator.
2018-01-26 17:06:56 +01:00
std::string GetName() const override
2016-07-09 11:21:54 +02:00
{
return cmGlobalWatcomWMakeGenerator::GetActualName();
}
static std::string GetActualName() { return "Watcom WMake"; }
/** Get the documentation entry for this generator. */
2013-03-16 19:13:01 +02:00
static void GetDocumentation(cmDocumentationEntry& entry);
2020-08-30 11:54:41 +02:00
/** Tell the generator about the target system. */
bool SetSystemName(std::string const& s, cmMakefile* mf) override;
/**
2015-04-27 22:25:09 +02:00
* Try to determine system information such as shared library
2013-03-16 19:13:01 +02:00
* extension, pthreads, byte order etc.
*/
2016-10-30 18:24:19 +01:00
void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
2018-01-26 17:06:56 +01:00
bool optional) override;
2014-08-03 19:52:23 +02:00
2018-01-26 17:06:56 +01:00
bool AllowNotParallel() const override { return false; }
bool AllowDeleteOnError() const override { return false; }
2018-08-09 18:06:22 +02:00
protected:
2019-11-11 23:01:05 +01:00
std::vector<GeneratedMakeCommand> GenerateBuildCommand(
const std::string& makeProgram, const std::string& projectName,
const std::string& projectDir, std::vector<std::string> const& targetNames,
2022-03-29 21:10:50 +02:00
const std::string& config, int jobs, bool verbose,
const cmBuildOptions& buildOptions = cmBuildOptions(),
2019-11-11 23:01:05 +01:00
std::vector<std::string> const& makeOptions =
std::vector<std::string>()) override;
2018-08-09 18:06:22 +02:00
void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
};