cmGlobalJOMMakefileGenerator.h 1.88 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4 5 6 7
#ifndef cmGlobalJOMMakefileGenerator_h
#define cmGlobalJOMMakefileGenerator_h

#include "cmGlobalUnixMakefileGenerator3.h"

8 9
#include <iosfwd>

10 11 12 13 14 15 16 17
/** \class cmGlobalJOMMakefileGenerator
 * \brief Write a JOM makefiles.
 *
 * cmGlobalJOMMakefileGenerator manages nmake build process for a tree
 */
class cmGlobalJOMMakefileGenerator : public cmGlobalUnixMakefileGenerator3
{
public:
18
  cmGlobalJOMMakefileGenerator(cmake* cm);
19 20 21 22
  static cmGlobalGeneratorFactory* NewFactory()
  {
    return new cmGlobalGeneratorSimpleFactory<cmGlobalJOMMakefileGenerator>();
  }
23
  //! Get the name for the generator.
24
  std::string GetName() const override
25 26 27
  {
    return cmGlobalJOMMakefileGenerator::GetActualName();
  }
28 29
  // use NMake Makefiles in the name so that scripts/tests that depend on the
  // name NMake Makefiles will work
30
  static std::string GetActualName() { return "NMake Makefiles JOM"; }
31 32

  /** Get the documentation entry for this generator.  */
33
  static void GetDocumentation(cmDocumentationEntry& entry);
34

35
  /**
36
   * Try to determine system information such as shared library
37
   * extension, pthreads, byte order etc.
38
   */
39 40 41 42
  void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
                      bool optional) override;

protected:
43 44 45 46 47 48
  std::vector<GeneratedMakeCommand> GenerateBuildCommand(
    const std::string& makeProgram, const std::string& projectName,
    const std::string& projectDir, std::vector<std::string> const& targetNames,
    const std::string& config, bool fast, int jobs, bool verbose,
    std::vector<std::string> const& makeOptions =
      std::vector<std::string>()) override;
49

50 51
private:
  void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
52
                           const char* envVar) const override;
53 54 55
};

#endif