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 pathnsispackage-config.h.in
131 lines (109 loc) · 3.36 KB
/
nsispackage-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 nsispackage-config.h
* @brief The content of this file is dynamically generated at compile time by CMake.
* @author Nicu Tofan <[email protected]>
* @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_NSISPACKAGE_CONFIG_H_INCLUDE
#define GUARD_NSISPACKAGE_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 NSISPACKAGE_PROJECT_NAME "@NSISPACKAGE_NAME@"
//! major version (ABI not preserved between these)
#define NSISPACKAGE_MAJOR_VERSION (@NSISPACKAGE_MAJOR_VERSION@)
//! minor version; ABI is preserved
#define NSISPACKAGE_MINOR_VERSION (@NSISPACKAGE_MINOR_VERSION@)
//! bug fixes
#define NSISPACKAGE_PATCH_VERSION (@NSISPACKAGE_PATCH_VERSION@)
//! the version as a 32-bit integer
#define NSISPACKAGE_VERSION (\
NSISPACKAGE_MAJOR_VERSION * 0x100000 + \
NSISPACKAGE_MINOR_VERSION * 0x1000 + \
NSISPACKAGE_PATCH_VERSION * 0x1)
//! version as a string
#define NSISPACKAGE_VERSION_STRING "@NSISPACKAGE_VERSION_STRING@"
//! when it was build (UTC)
#define NSISPACKAGE_BUILD_TIME "@NSISPACKAGE_BUILD_TIME@"
/**
* @def NSISPACKAGE_DEBUG
* @brief Indicates whether the debug features should be enabled or disabled
*/
#ifndef NSISPACKAGE_DEBUG
# ifdef NSISPACKAGE_FORCE_DEBUG
# define NSISPACKAGE_DEBUG 1
# else
#cmakedefine NSISPACKAGE_DEBUG
# endif
#endif
/**
* @def NSISPACKAGE_STATIC
* @brief If defined it indicates a static library being build
*/
#cmakedefine NSISPACKAGE_STATIC
/**
* @def NSISPACKAGE_PILE
* @brief If defined it indicates a pile usage
*/
#cmakedefine NSISPACKAGE_PILE
/**
* @def NSISPACKAGE_SHARED
* @brief If defined it indicates a shared library
*
* NSISPACKAGE_SHARED is defined when building the project
* and undefined when a file from another project
* includes the file.
*/
/**
* @def NSISPACKAGE_EXPORT
* @brief makes the sources compatible with all kinds of deployments.
*/
#if defined(NSISPACKAGE_STATIC)
# define NSISPACKAGE_EXPORT
#elif defined(NSISPACKAGE_PILE)
# define NSISPACKAGE_EXPORT @NSISPACKAGE_EXPORT@
#elif defined(NSISPACKAGE_SHARED)
# ifdef PILES_HAVE_QT
# define NSISPACKAGE_EXPORT Q_DECL_EXPORT
# elif defined(_MSC_VER)
# define NSISPACKAGE_EXPORT __declspec(dllexport)
# else
# define NSISPACKAGE_EXPORT __attribute__((visibility("default")))
# endif
#else
# ifdef PILES_HAVE_QT
# define NSISPACKAGE_EXPORT Q_DECL_IMPORT
# elif defined(_MSC_VER)
# define NSISPACKAGE_EXPORT __declspec(dllimport)
# else
# define NSISPACKAGE_EXPORT __attribute__((visibility("default")))
# endif
#endif
#endif // GUARD_NSISPACKAGE_CONFIG_H_INCLUDE