//---------------------------------------------------------------------------
/*
QmakeWatcher, tool to watch qmake's .pro to Makefile conversion
Copyright (C) 2010-2015 Richel Bilderbeek
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.If not, see <http://www.gnu.org/licenses/>.
*/
//---------------------------------------------------------------------------
//From http://www.richelbilderbeek.nl/ToolQmakeWatcher.htm
//---------------------------------------------------------------------------
#include "qmakewatchermenudialog.h"
#include <iostream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#include "richelbilderbeekprogram.h"
#include "testtimer.h"
#include "trace.h"
#pragma GCC diagnostic pop
int ribi::QmakeWatcherMenuDialog::ExecuteSpecific(const std::vector<std::string>& argv) noexcept
{
#ifndef NDEBUG
Test();
#endif
const int argc = static_cast<int>(argv.size());
if (argc == 1)
{
std::cout << GetHelp() << '\n';
return 1;
}
assert(!"TODO");
return 1;
}
ribi::About ribi::QmakeWatcherMenuDialog::GetAbout() const noexcept
{
ribi::About a {
"Richel Bilderbeek",
"QmakeWatcher",
"tool to watch qmake's .pro to Makefile conversion",
"the 20th of September 2013",
"2010-2015",
"http://www.richelbilderbeek.nl/ToolQmakeWatcher.htm",
GetVersion(),
GetVersionHistory()
};
a.AddLibrary("TestTimer version: " + TestTimer::GetVersion());
a.AddLibrary("Trace version: " + Trace::GetVersion());
return a;
}
ribi::Help ribi::QmakeWatcherMenuDialog::GetHelp() const noexcept
{
return Help(
this->GetAbout().GetFileTitle(),
this->GetAbout().GetFileDescription(),
{
},
{
}
);
}
boost::shared_ptr<const ribi::Program> ribi::QmakeWatcherMenuDialog::GetProgram() const noexcept
{
const boost::shared_ptr<const Program> p {
new ProgramQmakeWatcher
};
assert(p);
return p;
}
std::string ribi::QmakeWatcherMenuDialog::GetVersion() const noexcept
{
return "1.0";
}
std::vector<std::string> ribi::QmakeWatcherMenuDialog::GetVersionHistory() const noexcept
{
return {
"2013-09-20: version 1.0: initial version, conformized for ProjectRichelBilderbeek"
"2013-11-04: version 1.1: conformized for ProjectRichelBilderbeekConsole"
};
}
#ifndef NDEBUG
void ribi::QmakeWatcherMenuDialog::Test() noexcept
{
{
static bool is_tested{false};
if (is_tested) return;
is_tested = true;
}
const TestTimer test_timer(__func__,__FILE__,1.0);
}
#endif
|