summaryrefslogtreecommitdiff
path: root/cairommconfig.h.meson
blob: 2988edc019bf088fa4bf046d943042267e90dcc3 (plain)
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
#ifndef _CAIROMM_CONFIG_H
#define _CAIROMM_CONFIG_H

/* This file is part of cairomm. */

/* Define to omit deprecated API from the library. */
#mesondefine CAIROMM_DISABLE_DEPRECATED

/* Defined when the -Dbuild-exceptions-api=true configure argument was given */
#mesondefine CAIROMM_EXCEPTIONS_ENABLED

/* Major version number of cairomm. */
#mesondefine CAIROMM_MAJOR_VERSION

/* Minor version number of cairomm. */
#mesondefine CAIROMM_MINOR_VERSION

/* Micro version number of cairomm. */
#mesondefine CAIROMM_MICRO_VERSION

/* Enable DLL-specific stuff only when not building a static library */
#if !defined(__CYGWIN__) && \
    (defined(__MINGW32__) || defined (_MSC_VER)) && \
    !defined(CAIROMM_STATIC_LIB)
# define CAIROMM_DLL 1
#endif

#ifdef CAIROMM_DLL
# if defined(CAIROMM_BUILD)
#  define CAIROMM_API __declspec(dllexport)
# elif !defined (__GNUC__)
#  define CAIROMM_API __declspec(dllimport)
# else /* don't dllimport classes/methods on GCC/MinGW */
#  define CAIROMM_API
# endif
/* Build a static or non-native-Windows library */
#else
# define CAIROMM_API
#endif /* CAIROMM_DLL */

#endif /* _CAIROMM_CONFIG_H */