1
0

cmDependsJava.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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 cmDependsJava_h
  11. #define cmDependsJava_h
  12. #include <cmConfigure.h>
  13. #include "cmDepends.h"
  14. #include <iosfwd>
  15. #include <map>
  16. #include <set>
  17. #include <string>
  18. /** \class cmDependsJava
  19. * \brief Dependency scanner for Java class files.
  20. */
  21. class cmDependsJava : public cmDepends
  22. {
  23. public:
  24. /** Checking instances need to know the build directory name and the
  25. relative path from the build directory to the target file. */
  26. cmDependsJava();
  27. /** Virtual destructor to cleanup subclasses properly. */
  28. ~cmDependsJava() CM_OVERRIDE;
  29. protected:
  30. // Implement writing/checking methods required by superclass.
  31. bool WriteDependencies(const std::set<std::string>& sources,
  32. const std::string& file, std::ostream& makeDepends,
  33. std::ostream& internalDepends) CM_OVERRIDE;
  34. bool CheckDependencies(
  35. std::istream& internalDepends, const char* internalDependsFileName,
  36. std::map<std::string, DependencyVector>& validDeps) CM_OVERRIDE;
  37. private:
  38. cmDependsJava(cmDependsJava const&); // Purposely not implemented.
  39. void operator=(cmDependsJava const&); // Purposely not implemented.
  40. };
  41. #endif