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. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-10-30 18:24:19 +01:00
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
#include "cmDepends.h"
|
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
/** \class cmDependsJava
|
|
|
|
* \brief Dependency scanner for Java class files.
|
|
|
|
*/
|
2016-07-09 11:21:54 +02:00
|
|
|
class cmDependsJava : public cmDepends
|
2008-10-12 18:41:06 +02:00
|
|
|
{
|
|
|
|
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;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
cmDependsJava(cmDependsJava const&) = delete;
|
|
|
|
cmDependsJava& operator=(cmDependsJava const&) = delete;
|
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
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;
|
2019-11-11 23:01:05 +01:00
|
|
|
bool CheckDependencies(std::istream& internalDepends,
|
|
|
|
const std::string& internalDependsFileName,
|
|
|
|
DependencyMap& validDeps) override;
|
2008-10-12 18:41:06 +02:00
|
|
|
};
|