2009-09-28 15:43:28 +00:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2005-03-01 17:21:34 +00:00
|
|
|
|
2009-09-28 15:43:28 +00:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2005-03-01 17:21:34 +00:00
|
|
|
|
2009-09-28 15:43:28 +00: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 17:21:34 +00:00
|
|
|
#include "cmDependsJava.h"
|
|
|
|
|
|
|
|
#include "cmDependsJavaParserHelper.h"
|
|
|
|
#include "cmSystemTools.h"
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2005-07-27 13:49:37 +00:00
|
|
|
cmDependsJava::cmDependsJava()
|
2005-03-01 17:21:34 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
cmDependsJava::~cmDependsJava()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2012-09-30 15:53:01 +00:00
|
|
|
bool cmDependsJava::WriteDependencies(const std::set<std::string>& sources,
|
|
|
|
const std::string&, std::ostream&, std::ostream&)
|
2005-03-01 17:21:34 +00:00
|
|
|
{
|
|
|
|
// Make sure this is a scanning instance.
|
2012-09-30 15:53:01 +00:00
|
|
|
if(sources.empty() || sources.begin()->empty())
|
2005-03-01 17:21:34 +00:00
|
|
|
{
|
|
|
|
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-08-20 19:37:26 +00:00
|
|
|
bool cmDependsJava::CheckDependencies(std::istream&, const char*,
|
2009-09-23 18:02:05 +00:00
|
|
|
std::map<std::string, DependencyVector >&)
|
2005-03-01 17:21:34 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|