cmGlobalVisualStudio8Generator.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmGlobalVisualStudio8Generator_h
  4. #define cmGlobalVisualStudio8Generator_h
  5. #include "cmGlobalVisualStudio71Generator.h"
  6. /** \class cmGlobalVisualStudio8Generator
  7. * \brief Write a Unix makefiles.
  8. *
  9. * cmGlobalVisualStudio8Generator manages UNIX build process for a tree
  10. */
  11. class cmGlobalVisualStudio8Generator : public cmGlobalVisualStudio71Generator
  12. {
  13. public:
  14. cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
  15. const std::string& platformName);
  16. ///! Get the name for the generator.
  17. std::string GetName() const override { return this->Name; }
  18. /** Get the name of the main stamp list file. */
  19. static std::string GetGenerateStampList();
  20. void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
  21. bool optional) override;
  22. virtual void AddPlatformDefinitions(cmMakefile* mf);
  23. bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override;
  24. /**
  25. * Override Configure and Generate to add the build-system check
  26. * target.
  27. */
  28. void Configure() override;
  29. /** Return true if the target project file should have the option
  30. LinkLibraryDependencies and link to .sln dependencies. */
  31. bool NeedLinkLibraryDependencies(cmGeneratorTarget* target) override;
  32. /** Return true if building for Windows CE */
  33. bool TargetsWindowsCE() const override
  34. {
  35. return !this->WindowsCEVersion.empty();
  36. }
  37. /** Is the installed VS an Express edition? */
  38. bool IsExpressEdition() const { return this->ExpressEdition; }
  39. protected:
  40. void AddExtraIDETargets() override;
  41. std::string FindDevEnvCommand() override;
  42. bool VSLinksDependencies() const override { return false; }
  43. bool AddCheckTarget();
  44. /** Return true if the configuration needs to be deployed */
  45. virtual bool NeedsDeploy(cmStateEnums::TargetType type) const;
  46. static cmIDEFlagTable const* GetExtraFlagTableVS8();
  47. void WriteSolutionConfigurations(
  48. std::ostream& fout, std::vector<std::string> const& configs) override;
  49. void WriteProjectConfigurations(
  50. std::ostream& fout, const std::string& name,
  51. cmGeneratorTarget const& target, std::vector<std::string> const& configs,
  52. const std::set<std::string>& configsPartOfDefaultBuild,
  53. const std::string& platformMapping = "") override;
  54. bool ComputeTargetDepends() override;
  55. void WriteProjectDepends(std::ostream& fout, const std::string& name,
  56. const char* path,
  57. const cmGeneratorTarget* t) override;
  58. bool UseFolderProperty() const override;
  59. std::string Name;
  60. std::string WindowsCEVersion;
  61. bool ExpressEdition;
  62. };
  63. #endif