poppler-config.h.cmake 4.5 KB
Newer Older
1 2 3 4
//================================================= -*- mode: c++ -*- ====
//
// poppler-config.h
//
5
// Copyright 1996-2011 Glyph & Cog, LLC
6 7 8
//
//========================================================================

9 10 11 12 13 14 15 16
//========================================================================
//
// Modified under the Poppler project - http://poppler.freedesktop.org
//
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
// Copyright (C) 2014 Bogdan Cristea <cristeab@gmail.com>
17
// Copyright (C) 2014 Hib Eris <hib@hiberis.nl>
18
// Copyright (C) 2016 Tor Lillqvist <tml@collabora.com>
19
// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
20
// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
21 22 23 24 25 26
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
//
//========================================================================

27 28 29 30 31 32 33 34
#ifndef POPPLER_CONFIG_H
#define POPPLER_CONFIG_H

// We duplicate some of the config.h #define's here since they are
// used in some of the header files we install.  The #ifndef/#endif
// around #undef look odd, but it's to silence warnings about
// redefining those symbols.

35
/* Defines the poppler version. */
36
#ifndef POPPLER_VERSION
37
#define POPPLER_VERSION "${POPPLER_VERSION}"
38 39
#endif

40 41 42 43 44 45 46 47 48 49
/* Enable multithreading support. */
#ifndef MULTITHREADED
#cmakedefine MULTITHREADED 1
#endif

/* Use fixedpoint. */
#ifndef USE_FIXEDPOINT
#cmakedefine USE_FIXEDPOINT 1
#endif

50 51 52 53 54
/* Use single precision arithmetic in the Splash backend */
#ifndef USE_FLOAT
#cmakedefine USE_FLOAT 1
#endif

55 56 57 58 59 60 61 62 63 64
/* Include support for OPI comments. */
#ifndef OPI_SUPPORT
#cmakedefine OPI_SUPPORT 1
#endif

/* Enable word list support. */
#ifndef TEXTOUT_WORD_LIST
#cmakedefine TEXTOUT_WORD_LIST 1
#endif

65 66 67 68 69
/* Support for curl is compiled in. */
#ifndef POPPLER_HAS_CURL_SUPPORT
#cmakedefine POPPLER_HAS_CURL_SUPPORT 1
#endif

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
/* Use libjpeg instead of builtin jpeg decoder. */
#ifndef ENABLE_LIBJPEG
#cmakedefine ENABLE_LIBJPEG 1
#endif

/* Build against libtiff. */
#ifndef ENABLE_LIBTIFF
#cmakedefine ENABLE_LIBTIFF 1
#endif

/* Build against libpng. */
#ifndef ENABLE_LIBPNG
#cmakedefine ENABLE_LIBPNG 1
#endif

/* Use zlib instead of builtin zlib decoder. */
#ifndef ENABLE_ZLIB
#cmakedefine ENABLE_ZLIB 1
#endif

/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
   */
#ifndef HAVE_DIRENT_H
#cmakedefine HAVE_DIRENT_H 1
#endif

/* Defines if gettimeofday is available on your system */
#ifndef HAVE_GETTIMEOFDAY
#cmakedefine HAVE_GETTIMEOFDAY 1
#endif

/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#ifndef HAVE_NDIR_H
#cmakedefine HAVE_NDIR_H 1
#endif

/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
   */
#ifndef HAVE_SYS_DIR_H
#cmakedefine HAVE_SYS_DIR_H 1
#endif

/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
   */
#ifndef HAVE_SYS_NDIR_H
#cmakedefine HAVE_SYS_NDIR_H 1
#endif

/* Defines if use cms */
#ifndef USE_CMS
#cmakedefine USE_CMS 1
#endif

123 124
// Also, there are preprocessor symbols in the header files
// that are used but never defined when building poppler using configure
125
// or cmake: DISABLE_OUTLINE, ENABLE_PLUGINS, DEBUG_FORMS
126 127 128 129 130 131

//------------------------------------------------------------------------
// version
//------------------------------------------------------------------------

// copyright notice
Albert Astals Cid's avatar
Albert Astals Cid committed
132
#define popplerCopyright "Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org"
133
#define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC"
134 135 136 137 138

//------------------------------------------------------------------------
// Win32 stuff
//------------------------------------------------------------------------

139
#if defined(_WIN32) && !defined(_MSC_VER)
Hib Eris's avatar
Hib Eris committed
140
#include <windef.h>
141 142 143 144 145 146 147 148 149
#else
#define CDECL
#endif

//------------------------------------------------------------------------
// Compiler
//------------------------------------------------------------------------

#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
Adrian Johnson's avatar
Adrian Johnson committed
150
#include <stdio.h> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
151
#ifdef __MINGW_PRINTF_FORMAT
152
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
153
	__attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index)))
154
#else
155 156
#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
	__attribute__((__format__(__printf__, fmt_index, va_index)))
Albert Astals Cid's avatar
Albert Astals Cid committed
157
#endif
158 159 160 161 162
#else
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
#endif

#endif /* POPPLER_CONFIG_H */