[win32] cmake: make use of ADDONS_TO_BUILD in make-addons.bat
[vuplus_xbmc] / xbmc / CompileInfo.cpp.in
1 /*
2  *      Copyright (C) 2014 Team XBMC
3  *      http://xbmc.org
4  *
5  *  This Program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This Program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with XBMC; see the file COPYING.  If not, see
17  *  <http://www.gnu.org/licenses/>.
18  *
19  */
20
21 #include "CompileInfo.h"
22 #include <cstddef>
23
24 #if defined(TARGET_WINDOWS) && !defined(_DEBUG)
25 #include "../git_revision.h" // generated file
26 #endif
27
28
29 int CCompileInfo::GetMajor()
30 {
31   return @APP_VERSION_MAJOR@;
32 }
33
34 int CCompileInfo::GetMinor()
35 {
36   return @APP_VERSION_MINOR@;
37 }
38
39 const char* CCompileInfo::GetSuffix()
40 {
41   return "@APP_VERSION_TAG@";
42 }
43
44 const char* CCompileInfo::GetSCMID()
45 {
46 #if defined(TARGET_WINDOWS)
47 #ifdef GIT_REV
48   return GIT_REV;
49 #else
50   return "Unknown";
51 #endif
52 #endif
53   return "@APP_SCMID@";
54 }