Home
·
Classes
·
Annotated Classes
·
Modules
·
Members
·
Namespaces
·
Related Pages
OpenMS
config.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// ==========================================================================
5
//
6
// IMPORTANT:
7
// This is config.h / config.h.in
8
// Please do ONLY change config.h.in, as config.h is automagically
9
// created by CMAKE from config.h.in
10
//
11
// Use appropriate options to configure instead of changing config.h.
12
// Changes made in config.h will be lost as soon as you call CMAKE again.
13
//
14
// --------------------------------------------------------------------------
15
// OpenMS -- Open-Source Mass Spectrometry
16
// --------------------------------------------------------------------------
17
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
18
// ETH Zurich, and Freie Universitaet Berlin 2002-2012.
19
//
20
// This software is released under a three-clause BSD license:
21
// * Redistributions of source code must retain the above copyright
22
// notice, this list of conditions and the following disclaimer.
23
// * Redistributions in binary form must reproduce the above copyright
24
// notice, this list of conditions and the following disclaimer in the
25
// documentation and/or other materials provided with the distribution.
26
// * Neither the name of any author or any participating institution
27
// may be used to endorse or promote products derived from this software
28
// without specific prior written permission.
29
// For a full list of authors, refer to the file AUTHORS.
30
// --------------------------------------------------------------------------
31
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
32
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34
// ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
35
// INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
36
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
37
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
38
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
41
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
//
43
// --------------------------------------------------------------------------
44
// $Maintainer: Chris Bielow $
45
// $Authors: $
46
// --------------------------------------------------------------------------
47
48
#ifndef OPENMS_CONFIG_H
49
#define OPENMS_CONFIG_H
50
51
// include OPENMS_DLLAPI macros
52
#include <
OpenMS/OpenMSConfig.h
>
53
54
// Here are some global configuration flags for OpenMS
55
56
// Define compiler specifics (used in VERY few places only)
57
// Microsoft Visual Studio .NET, 2005, 2008
58
/* #undef OPENMS_COMPILER_MSVC */
59
// GNU g++
60
#define OPENMS_COMPILER_GXX
61
62
// __PRETTY_FUNCTION__ is a GNU G++ extension. It is used in exceptions to indicate their origin.
63
#ifndef OPENMS_COMPILER_GXX
64
#define __PRETTY_FUNCTION__ "<unknown>"
65
#endif
66
67
68
// OPENMS_ASSERTIONS enables some debugging methods within some OpenMS classes
69
#ifdef OPENMS_COMPILER_MSVC
70
// we define this using NDEBUG on MSVC as there are multiple build types simultaneously in the Solution file,
71
// thus setting one value will not fit them all
72
# ifndef NDEBUG // hopefully defined automatically by MS-compiler in Debug Mode
73
# define OPENMS_ASSERTIONS
74
# endif
75
#else // linux & Co (only one build type at a time)
76
# if (0)
77
# define OPENMS_ASSERTIONS
78
# endif
79
#endif
80
81
82
// let Cmake decide if we are using Windows (i.e. if windows.h is available).
83
// GCC and MSVC have pre-defined macros for this as well but using -ansi in GCC will disable those, thus asking the compiler is fragile
84
#ifndef WIN32 //avoid warning of redefinition
85
/* #undef WIN32 */
86
#endif
87
88
#ifdef WIN32 //should be true on: MinGW (32bit + 64bit) & MSVS compiler
89
#define OPENMS_WINDOWSPLATFORM 1
90
#endif
91
92
// are we building a shared lib?
93
#define BUILD_SHARED_LIBS
94
95
/* #undef OPENMS_BIG_ENDIAN */
96
97
// Define on 64 bit architectures
98
#define OPENMS_64BIT_ARCHITECTURE
99
100
#define OPENMS_INT32_TYPE int32_t
101
#define OPENMS_INT64_TYPE int64_t
102
#define OPENMS_BYTE_TYPE uint8_t
103
#define OPENMS_UINT64_TYPE uint64_t
104
//#define OPENMS_SIZE_T_SIGNED
105
106
// if you ever want to do abs() or floor() on this type in VC then use _abs64() and include <stdlib.h> (no kidding!)
107
#define PointerSizeInt int64_t
108
#define PointerSizeUInt uint64_t
109
110
#define OPENMS_HAS_UNISTD_H
111
/* #undef OPENMS_HAS_PROCESS_H */
112
#define OPENMS_HAS_STDINT_H
113
114
#define OPENMS_HAS_TIME_H
115
#define OPENMS_HAS_SYS_TYPES_H
116
#define OPENMS_HAS_SYS_TIMES_H
117
#define OPENMS_HAS_SYS_TIME_H
118
119
#define OPENMS_HAS_KILL
120
#define OPENMS_HAS_SYSCONF
121
122
// is libc++ or has stream bug
123
/* #undef OPENMS_HAS_STREAM_EXTRACTION_BUG */
124
125
// library versions
126
#define OPENMS_LIBSVM_VERSION 3.2.0
127
#define OPENMS_LIBSVM_VERSION_MAJOR 3
128
#define OPENMS_LIBSVM_VERSION_MINOR 2
129
130
#define OPENMS_BOOST_VERSION_MAJOR 1
131
#define OPENMS_BOOST_VERSION_MINOR 55
132
#define OPENMS_BOOST_VERSION_SUBMINOR 0
133
#define OPENMS_BOOST_VERSION 105500
134
135
#define COINOR_SOLVER 0
136
137
#define OPENMS_GLPK_VERSION 4.53
138
#define OPENMS_GLPK_VERSION_MAJOR 4
139
#define OPENMS_GLPK_VERSION_MINOR 53
140
141
// class & TOPP tests
142
143
#ifdef _OPENMP
144
#define IF_MASTERTHREAD if (omp_get_thread_num() ==0)
145
#else
146
#define IF_MASTERTHREAD
147
#endif
148
149
/* #undef WITH_CRAWDAD */
150
151
// NOTE: This is a temporary hack. The aim is that OpenMS should not care
152
// but currently we need this information for the ToolHandler.
153
#define WITH_GUI 1
154
155
#endif // OPENMS_CONFIG_H
OpenMSConfig.h
OpenMS / TOPP release 2.0.0
Documentation generated on Fri May 29 2015 17:20:22 using doxygen 1.8.9.1