cmNinjaNormalTargetGenerator.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2011 Peter Collingbourne <[email protected]>
  4. Copyright 2011 Nicolas Despres <[email protected]>
  5. Distributed under the OSI-approved BSD License (the "License");
  6. see accompanying file Copyright.txt for details.
  7. This software is distributed WITHOUT ANY WARRANTY; without even the
  8. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. See the License for more information.
  10. ============================================================================*/
  11. #ifndef cmNinjaNormalTargetGenerator_h
  12. # define cmNinjaNormalTargetGenerator_h
  13. # include "cmNinjaTargetGenerator.h"
  14. # include "cmNinjaTypes.h"
  15. class cmSourceFile;
  16. class cmNinjaNormalTargetGenerator : public cmNinjaTargetGenerator
  17. {
  18. public:
  19. cmNinjaNormalTargetGenerator(cmTarget* target);
  20. ~cmNinjaNormalTargetGenerator();
  21. void Generate();
  22. private:
  23. std::string LanguageLinkerRule() const;
  24. const char* GetVisibleTypeName() const;
  25. void WriteLanguagesRules();
  26. void WriteLinkRule(bool useResponseFile);
  27. void WriteLinkStatement();
  28. void WriteObjectLibStatement();
  29. std::vector<std::string> ComputeLinkCmd();
  30. private:
  31. // Target name info.
  32. std::string TargetNameOut;
  33. std::string TargetNameSO;
  34. std::string TargetNameReal;
  35. std::string TargetNameImport;
  36. std::string TargetNamePDB;
  37. const char *TargetLinkLanguage;
  38. };
  39. #endif // ! cmNinjaNormalTargetGenerator_h