]> git.saurik.com Git - wxWidgets.git/blame - include/wx/build.h
moved some more stuff from .cpp files to here
[wxWidgets.git] / include / wx / build.h
CommitLineData
090a6d7a
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/build.h
3// Purpose: wxBuildOptions class declaration
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 07.05.02
7// RCS-ID: $Id$
8// Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
371a5b4e 9// Licence: wxWindows licence
090a6d7a
VZ
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUILD_H_
13#define _WX_BUILD_H_
14
15#include "wx/version.h"
16
bddd7a8d 17class WXDLLIMPEXP_BASE wxAppConsole;
e2478fde 18
090a6d7a
VZ
19// ----------------------------------------------------------------------------
20// wxBuildOptions
21// ----------------------------------------------------------------------------
22
23class wxBuildOptions
24{
25public:
26 // the ctor must be inline to get the compilation settings of the code
27 // which included this header
28 wxBuildOptions()
29 {
30 // debug/release
31#ifdef __WXDEBUG__
32 m_isDebug = TRUE;
33#else
34 m_isDebug = FALSE;
35#endif
36
37 // version: we don't test the micro version as hopefully changes
38 // between 2 micro versions don't result in fatal compatibility
39 // problems
40 m_verMaj = wxMAJOR_VERSION;
41 m_verMin = wxMINOR_VERSION;
42 }
43
44private:
45 // the version
46 int m_verMaj,
47 m_verMin;
48
49 // compiled with __WXDEBUG__?
50 bool m_isDebug;
51
52 // actually only CheckBuildOptions() should be our friend but well...
e2478fde 53 friend class wxAppConsole;
090a6d7a
VZ
54};
55
56#endif // _WX_BUILD_H_
57