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 pathrefcnt-config.h.in
132 lines (109 loc) · 3.15 KB
/
refcnt-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
132
/**
* @file refcnt-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_REFCNT_CONFIG_H_INCLUDE
#define GUARD_REFCNT_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 REFCNT_PROJECT_NAME "@REFCNT_NAME@"
//! major version (ABI not preserved between these)
#define REFCNT_MAJOR_VERSION (@REFCNT_MAJOR_VERSION@)
//! minor version; ABI is preserved
#define REFCNT_MINOR_VERSION (@REFCNT_MINOR_VERSION@)
//! bug fixes
#define REFCNT_PATCH_VERSION (@REFCNT_PATCH_VERSION@)
//! the version as a 32-bit integer
#define REFCNT_VERSION (\
REFCNT_MAJOR_VERSION * 0x100000 + \
REFCNT_MINOR_VERSION * 0x1000 + \
REFCNT_PATCH_VERSION * 0x1)
//! version as a string
#define REFCNT_VERSION_STRING "@REFCNT_VERSION_STRING@"
//! when it was build (UTC)
#define REFCNT_BUILD_TIME "@REFCNT_BUILD_TIME@"
/**
* @def REFCNT_DEBUG
* @brief Indicates whether the debug features should be enabled or disabled
*/
#ifndef REFCNT_DEBUG
# ifdef REFCNT_FORCE_DEBUG
# define REFCNT_DEBUG 1
# else
#cmakedefine REFCNT_DEBUG
# endif
#endif
/**
* @def REFCNT_STATIC
* @brief If defined it indicates a static library being build
*/
#cmakedefine REFCNT_STATIC
/**
* @def REFCNT_PILE
* @brief If defined it indicates a pile usage
*/
#cmakedefine REFCNT_PILE
/**
* @def REFCNT_SHARED
* @brief If defined it indicates a shared library
*
* REFCNT_SHARED is defined when building the project
* and undefined when a file from another project
* includes the file.
*/
/**
* @def REFCNT_EXPORT
* @brief makes the sources compatible with all kinds of deployments.
*/
#if defined(REFCNT_STATIC)
# define REFCNT_EXPORT
#elif defined(REFCNT_PILE)
# define REFCNT_EXPORT @REFCNT_EXPORT@
#elif defined(REFCNT_SHARED)
# ifdef PILES_HAVE_QT
# define REFCNT_EXPORT Q_DECL_EXPORT
# elif defined(_MSC_VER)
# define REFCNT_EXPORT __declspec(dllexport)
# else
# define REFCNT_EXPORT __attribute__((visibility("default")))
# endif
#else
# ifdef PILES_HAVE_QT
# define REFCNT_EXPORT Q_DECL_IMPORT
# elif defined(_MSC_VER)
# define REFCNT_EXPORT __declspec(dllimport)
# else
# define REFCNT_EXPORT __attribute__((visibility("default")))
# endif
#endif
#endif // GUARD_REFCNT_CONFIG_H_INCLUDE