\class cmGlobalXCodeGenerator * \brief Write a Unix makefiles. * * cmGlobalXCodeGenerator manages Xcode build process for a tree */
| 36 | * cmGlobalXCodeGenerator manages Xcode build process for a tree |
| 37 | */ |
| 38 | class cmGlobalXCodeGenerator : public cmGlobalGenerator |
| 39 | { |
| 40 | public: |
| 41 | cmGlobalXCodeGenerator(cmake* cm, std::string const& version_string, |
| 42 | unsigned int version_number); |
| 43 | static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory(); |
| 44 | |
| 45 | cmGlobalXCodeGenerator(cmGlobalXCodeGenerator const&) = delete; |
| 46 | cmGlobalXCodeGenerator const& operator=(cmGlobalXCodeGenerator const&) = |
| 47 | delete; |
| 48 | |
| 49 | //! Get the name for the generator. |
| 50 | std::string GetName() const override |
| 51 | { |
| 52 | return cmGlobalXCodeGenerator::GetActualName(); |
| 53 | } |
| 54 | static std::string GetActualName() { return "Xcode"; } |
| 55 | |
| 56 | /** Get the documentation entry for this generator. */ |
| 57 | static cmDocumentationEntry GetDocumentation(); |
| 58 | |
| 59 | //! Create a local generator appropriate to this Global Generator |
| 60 | std::unique_ptr<cmLocalGenerator> CreateLocalGenerator( |
| 61 | cmMakefile* mf) override; |
| 62 | |
| 63 | /** |
| 64 | * Try to determine system information such as shared library |
| 65 | * extension, pthreads, byte order etc. |
| 66 | */ |
| 67 | void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*, |
| 68 | bool optional) override; |
| 69 | |
| 70 | /** |
| 71 | * Open a generated IDE project given the following information. |
| 72 | */ |
| 73 | bool Open(std::string const& bindir, std::string const& projectName, |
| 74 | bool dryRun) override; |
| 75 | |
| 76 | /** |
| 77 | * Try running cmake and building a file. This is used for dynalically |
| 78 | * loaded commands, not as part of the usual build process. |
| 79 | */ |
| 80 | std::vector<GeneratedMakeCommand> GenerateBuildCommand( |
| 81 | std::string const& makeProgram, std::string const& projectName, |
| 82 | std::string const& projectDir, std::vector<std::string> const& targetNames, |
| 83 | std::string const& config, int jobs, bool verbose, |
| 84 | cmBuildOptions buildOptions = cmBuildOptions(), |
| 85 | std::vector<std::string> const& makeOptions = std::vector<std::string>(), |
| 86 | BuildTryCompile isInTryCompile = BuildTryCompile::No) override; |
| 87 | |
| 88 | /** Append the subdirectory for the given configuration. */ |
| 89 | void AppendDirectoryForConfig(std::string const& prefix, |
| 90 | std::string const& config, |
| 91 | std::string const& suffix, |
| 92 | std::string& dir) override; |
| 93 | |
| 94 | bool FindMakeProgram(cmMakefile*) override; |
| 95 |
nothing calls this directly
no test coverage detected
searching dependent graphs…