/*
* Copyright (C) 2014 Team XBMC
* http://xbmc.org
*
* 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 2, 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 XBMC; see the file COPYING. If not, see
* .
*
*/
#include "CompileInfo.h"
#include
#if defined(TARGET_WINDOWS) && !defined(_DEBUG)
#include "../git_revision.h" // generated file
#endif
int CCompileInfo::GetMajor()
{
return @APP_VERSION_MAJOR@;
}
int CCompileInfo::GetMinor()
{
return @APP_VERSION_MINOR@;
}
const char* CCompileInfo::GetSuffix()
{
return "@APP_VERSION_TAG@";
}
const char* CCompileInfo::GetSCMID()
{
#if defined(TARGET_WINDOWS)
#ifdef GIT_REV
return GIT_REV;
#else
return "Unknown";
#endif
#endif
return "@APP_SCMID@";
}