cmake/Source/cmDependsJava.h

41 lines
1.2 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmDependsJava_h
#define cmDependsJava_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include "cmDepends.h"
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <map>
#include <set>
#include <string>
/** \class cmDependsJava
* \brief Dependency scanner for Java class files.
*/
2016-07-09 11:21:54 +02:00
class cmDependsJava : public cmDepends
{
2017-07-20 19:35:53 +02:00
CM_DISABLE_COPY(cmDependsJava)
public:
/** Checking instances need to know the build directory name and the
relative path from the build directory to the target file. */
cmDependsJava();
/** Virtual destructor to cleanup subclasses properly. */
2018-01-26 17:06:56 +01:00
~cmDependsJava() override;
protected:
// Implement writing/checking methods required by superclass.
2016-10-30 18:24:19 +01:00
bool WriteDependencies(const std::set<std::string>& sources,
const std::string& file, std::ostream& makeDepends,
2018-01-26 17:06:56 +01:00
std::ostream& internalDepends) override;
2016-10-30 18:24:19 +01:00
bool CheckDependencies(
2016-07-09 11:21:54 +02:00
std::istream& internalDepends, const char* internalDependsFileName,
2018-01-26 17:06:56 +01:00
std::map<std::string, DependencyVector>& validDeps) override;
};
#endif