This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbview-config.h.in
131 lines (109 loc) · 3.15 KB
/
dbview-config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/**
* @file dbview-config.h
* @brief The content of this file is dynamically generated at compile time by CMake.
* @author Nicu Tofan <nicu.tofan@gmail.com>
* @copyright Copyright 2014 piles contributors. All rights reserved.
* This file is released under the
* [MIT License](http://opensource.org/licenses/mit-license.html)
*/
#ifndef GUARD_DBVIEW_CONFIG_H_INCLUDE
#define GUARD_DBVIEW_CONFIG_H_INCLUDE
/**
* @def Qt5Core_FOUND
* @brief When defined indicates that the Qt 5 headers are available
*/
#ifndef Qt5Core_FOUND
#cmakedefine Qt5Core_FOUND
#endif
/**
* @def Qt4_FOUND
* @brief When defined indicates that the Qt 4 headers are available
*/
#ifndef Qt4_FOUND
#cmakedefine Qt4_FOUND
#endif
/**
* @def PILES_HAVE_QT
* @brief When defined indicates that either Qt 4 or Qt 5 headers are available
*/
#if defined(Qt5Core_FOUND) || defined(Qt4_FOUND)
#ifndef PILES_HAVE_QT
#define PILES_HAVE_QT
#endif
#endif
// use Qt definitions when available
#ifdef PILES_HAVE_QT
#include <QtGlobal>
#endif
//! the name of this project
#define DBVIEW_PROJECT_NAME "@DBVIEW_NAME@"
//! major version (ABI not preserved between these)
#define DBVIEW_MAJOR_VERSION (@DBVIEW_MAJOR_VERSION@)
//! minor version; ABI is preserved
#define DBVIEW_MINOR_VERSION (@DBVIEW_MINOR_VERSION@)
//! bug fixes
#define DBVIEW_PATCH_VERSION (@DBVIEW_PATCH_VERSION@)
//! the version as a 32-bit integer
#define DBVIEW_VERSION (\
DBVIEW_MAJOR_VERSION * 0x100000 + \
DBVIEW_MINOR_VERSION * 0x1000 + \
DBVIEW_PATCH_VERSION * 0x1)
//! version as a string
#define DBVIEW_VERSION_STRING "@DBVIEW_VERSION_STRING@"
//! when it was build (UTC)
#define DBVIEW_BUILD_TIME "@DBVIEW_BUILD_TIME@"
/**
* @def DBVIEW_DEBUG
* @brief Indicates whether the debug features should be enabled or disabled
*/
#ifndef DBVIEW_DEBUG
# ifdef DBVIEW_FORCE_DEBUG
# define DBVIEW_DEBUG 1
# else
#cmakedefine DBVIEW_DEBUG
# endif
#endif
/**
* @def DBVIEW_STATIC
* @brief If defined it indicates a static library being build
*/
#cmakedefine DBVIEW_STATIC
/**
* @def DBVIEW_PILE
* @brief If defined it indicates a pile usage
*/
#cmakedefine DBVIEW_PILE
/**
* @def DBVIEW_SHARED
* @brief If defined it indicates a shared library
*
* DBVIEW_SHARED is defined when building the project
* and undefined when a file from another project
* includes the file.
*/
/**
* @def DBVIEW_EXPORT
* @brief makes the sources compatible with all kinds of deployments.
*/
#if defined(DBVIEW_STATIC)
# define DBVIEW_EXPORT
#elif defined(DBVIEW_PILE)
# define DBVIEW_EXPORT @DBVIEW_EXPORT@
#elif defined(DBVIEW_SHARED)
# ifdef PILES_HAVE_QT
# define DBVIEW_EXPORT Q_DECL_EXPORT
# elif defined(_MSC_VER)
# define DBVIEW_EXPORT __declspec(dllexport)
# else
# define DBVIEW_EXPORT __attribute__((visibility("default")))
# endif
#else
# ifdef PILES_HAVE_QT
# define DBVIEW_EXPORT Q_DECL_IMPORT
# elif defined(_MSC_VER)
# define DBVIEW_EXPORT __declspec(dllimport)
# else
# define DBVIEW_EXPORT __attribute__((visibility("default")))
# endif
#endif
#endif // GUARD_DBVIEW_CONFIG_H_INCLUDE