2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2005-03-01 20:21:34 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2005-03-01 20:21:34 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2005-03-01 20:21:34 +03:00
|
|
|
#include "cmDependsJava.h"
|
|
|
|
|
|
|
|
#include "cmDependsJavaParserHelper.h"
|
|
|
|
#include "cmSystemTools.h"
|
|
|
|
|
2005-07-27 17:49:37 +04:00
|
|
|
cmDependsJava::cmDependsJava()
|
2005-03-01 20:21:34 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
cmDependsJava::~cmDependsJava()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-09-30 19:53:01 +04:00
|
|
|
bool cmDependsJava::WriteDependencies(const std::set<std::string>& sources,
|
2016-08-17 02:49:57 +03:00
|
|
|
const std::string& /*obj*/,
|
|
|
|
std::ostream& /*makeDepends*/,
|
|
|
|
std::ostream& /*internalDepends*/)
|
2005-03-01 20:21:34 +03:00
|
|
|
{
|
|
|
|
// Make sure this is a scanning instance.
|
2016-05-16 17:34:04 +03:00
|
|
|
if (sources.empty() || sources.begin()->empty()) {
|
2005-03-01 20:21:34 +03:00
|
|
|
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
|
|
|
return false;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2005-03-01 20:21:34 +03:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-08-17 02:49:57 +03:00
|
|
|
bool cmDependsJava::CheckDependencies(
|
|
|
|
std::istream& /*internalDepends*/, const char* /*internalDependsFileName*/,
|
|
|
|
std::map<std::string, DependencyVector>& /*validDeps*/)
|
2005-03-01 20:21:34 +03:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|