cmNinjaNormalTargetGenerator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 <cmConfigure.h>
  14. #include "cmNinjaTargetGenerator.h"
  15. #include <string>
  16. #include <vector>
  17. class cmGeneratorTarget;
  18. class cmNinjaNormalTargetGenerator : public cmNinjaTargetGenerator
  19. {
  20. public:
  21. cmNinjaNormalTargetGenerator(cmGeneratorTarget* target);
  22. ~cmNinjaNormalTargetGenerator() CM_OVERRIDE;
  23. void Generate() CM_OVERRIDE;
  24. private:
  25. std::string LanguageLinkerRule() const;
  26. const char* GetVisibleTypeName() const;
  27. void WriteLanguagesRules();
  28. void WriteLinkRule(bool useResponseFile);
  29. void WriteLinkStatement();
  30. void WriteObjectLibStatement();
  31. std::vector<std::string> ComputeLinkCmd();
  32. private:
  33. // Target name info.
  34. std::string TargetNameOut;
  35. std::string TargetNameSO;
  36. std::string TargetNameReal;
  37. std::string TargetNameImport;
  38. std::string TargetNamePDB;
  39. std::string TargetLinkLanguage;
  40. };
  41. #endif // ! cmNinjaNormalTargetGenerator_h