cmGlobalVisualStudio8Generator.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. ///! Get the name for the generator.
  15. std::string GetName() const override { return this->Name; }
  16. /** Get the name of the main stamp list file. */
  17. static std::string GetGenerateStampList();
  18. void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
  19. bool optional) override;
  20. virtual void AddPlatformDefinitions(cmMakefile* mf);
  21. bool SetGeneratorPlatform(std::string const& p, cmMakefile* mf) override;
  22. /**
  23. * Override Configure and Generate to add the build-system check
  24. * target.
  25. */
  26. void Configure() override;
  27. /** Return true if the target project file should have the option
  28. LinkLibraryDependencies and link to .sln dependencies. */
  29. bool NeedLinkLibraryDependencies(cmGeneratorTarget* target) override;
  30. /** Return true if building for Windows CE */
  31. bool TargetsWindowsCE() const override
  32. {
  33. return !this->WindowsCEVersion.empty();
  34. }
  35. protected:
  36. cmGlobalVisualStudio8Generator(cmake* cm, const std::string& name,
  37. std::string const& platformInGeneratorName);
  38. void AddExtraIDETargets() override;
  39. std::string FindDevEnvCommand() override;
  40. bool VSLinksDependencies() const override { return false; }
  41. bool AddCheckTarget();
  42. /** Return true if the configuration needs to be deployed */
  43. virtual bool NeedsDeploy(cmStateEnums::TargetType type) const;
  44. static cmIDEFlagTable const* GetExtraFlagTableVS8();
  45. void WriteSolutionConfigurations(
  46. std::ostream& fout, std::vector<std::string> const& configs) override;
  47. void WriteProjectConfigurations(
  48. std::ostream& fout, const std::string& name,
  49. cmGeneratorTarget const& target, std::vector<std::string> const& configs,
  50. const std::set<std::string>& configsPartOfDefaultBuild,
  51. const std::string& platformMapping = "") override;
  52. bool ComputeTargetDepends() override;
  53. void WriteProjectDepends(std::ostream& fout, const std::string& name,
  54. const char* path,
  55. const cmGeneratorTarget* t) override;
  56. bool UseFolderProperty() const override;
  57. std::string Name;
  58. std::string WindowsCEVersion;
  59. };
  60. #endif