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