Code::Blocks  SVN r11506
appglobals.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  *
5  * $Revision: 9484 $
6  * $Id: appglobals.cpp 9484 2013-12-03 20:34:13Z mortenmacfly $
7  * $HeadURL: https://svn.code.sf.net/p/codeblocks/code/trunk/src/src/appglobals.cpp $
8  */
9 
10 #include <sdk.h>
11 #ifndef CB_PRECOMP
12  #include <wx/utils.h>
13  #include <wx/intl.h>
14  #include "cbplugin.h"
15  #include "configmanager.h"
16 #endif
17 #include "appglobals.h"
18 
19 namespace appglobals
20 {
21  const wxString AppVendor = _T("Code::Blocks");
22  const wxString AppName = _T("Code::Blocks");
23 
24 #if SVN_BUILD
25  const wxString AppVersion = _T("svn build");
26  const wxString AppActualVersionVerb = _T("svn build rev ") + ConfigManager::GetRevisionString();
27  const wxString AppActualVersion = _T("svn-r") + ConfigManager::GetRevisionString();
28 #else
29  const wxString AppVersion = _T(RELEASE);
30  const wxString AppActualVersionVerb = _T("Release " RELEASE " rev ") + ConfigManager::GetRevisionString();
31  const wxString AppActualVersion = _T(RELEASE "-r") + ConfigManager::GetRevisionString();
32 #endif
33 
34  const wxString AppSDKVersion = wxString::Format(wxT("%d.%d.%d"),
35  static_cast<int>(PLUGIN_SDK_VERSION_MAJOR),
36  static_cast<int>(PLUGIN_SDK_VERSION_MINOR),
37  static_cast<int>(PLUGIN_SDK_VERSION_RELEASE));
38 
39  const wxString AppUrl = _T("http://www.codeblocks.org");
40  const wxString AppContactEmail = _T("info@codeblocks.org");
41 
42 #if defined(__WXMSW__)
43  const wxString AppPlatform = _T("Windows");
44 #elif defined(__WXOS2__)
45  const wxString AppPlatform = _T("OS/2");
46 #elif defined(__WXMAC__) || defined(__WXCOCOA__)
47  const wxString AppPlatform = _T("Mac OS X");
48 #elif defined(__APPLE__)
49  const wxString AppPlatform = _T("Darwin");
50 #elif defined(__FreeBSD__)
51  const wxString AppPlatform = _T("FreeBSD");
52 #elif defined(__UNIX__)
53  const wxString AppPlatform = _T("Linux");
54 #else
55  const wxString AppPlatform = _T("Unknown");
56 #endif
57 
58  const wxString AppWXAnsiUnicode = platform::unicode ? wxT("unicode") : wxT("ANSI");
59 
60 #if defined(_LP64) || defined(_WIN64)
61  const wxString bit_type = wxT(" - 64 bit");
62 #else
63  const wxString bit_type = wxT(" - 32 bit");
64 #endif
65 
66  const wxString AppBuildTimestamp = ( wxString(wxT(__DATE__)) + wxT(", ")
67  + wxT(__TIME__) + wxT(" - wx")
68  + wxString(wxT(wxVERSION_NUM_DOT_STRING))
69  + wxT(" (") + AppPlatform + wxT(", ")
70  + AppWXAnsiUnicode + wxT(")") + bit_type );
71 
72  const wxString DefaultBatchBuildArgs = _T("-na -nd -ns --batch-build-notify");
73 }
#define PLUGIN_SDK_VERSION_MINOR
Definition: cbplugin.h:40
const wxString bit_type
Definition: appglobals.cpp:63
#define PLUGIN_SDK_VERSION_MAJOR
Definition: cbplugin.h:39
#define _T(string)
static wxString GetRevisionString()
#define PLUGIN_SDK_VERSION_RELEASE
Definition: cbplugin.h:41
const wxString DefaultBatchBuildArgs
Definition: appglobals.cpp:72
static wxString Format(const wxString &format,...)
#define RELEASE
Definition: appglobals.h:15