cmGeneratorTarget.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGeneratorTarget_h
  11. #define cmGeneratorTarget_h
  12. #include "cmStandardIncludes.h"
  13. class cmCustomCommand;
  14. class cmGlobalGenerator;
  15. class cmLocalGenerator;
  16. class cmMakefile;
  17. class cmSourceFile;
  18. class cmTarget;
  19. class cmGeneratorTarget
  20. {
  21. public:
  22. cmGeneratorTarget(cmTarget*);
  23. cmTarget* Target;
  24. cmMakefile* Makefile;
  25. cmLocalGenerator* LocalGenerator;
  26. cmGlobalGenerator* GlobalGenerator;
  27. /** Sources classified by purpose. */
  28. std::vector<cmSourceFile*> CustomCommands;
  29. std::vector<cmSourceFile*> ExtraSources;
  30. std::vector<cmSourceFile*> HeaderSources;
  31. std::vector<cmSourceFile*> ObjectSources;
  32. std::vector<cmSourceFile*> ExternalObjects;
  33. std::vector<cmSourceFile*> OSXContent;
  34. std::string ModuleDefinitionFile;
  35. std::map<cmSourceFile const*, std::string> Objects;
  36. std::set<cmSourceFile const*> ExplicitObjectName;
  37. /** Full path with trailing slash to the top-level directory
  38. holding object files for this target. Includes the build
  39. time config name placeholder if needed for the generator. */
  40. std::string ObjectDirectory;
  41. std::vector<cmTarget*> ObjectLibraries;
  42. void UseObjectLibraries(std::vector<std::string>& objs);
  43. private:
  44. void ClassifySources();
  45. void LookupObjectLibraries();
  46. cmGeneratorTarget(cmGeneratorTarget const&);
  47. void operator=(cmGeneratorTarget const&);
  48. };
  49. #endif