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