KoConfig.h.cmake 1.52 KB
Newer Older
1
// Check windows
2
#ifdef Q_OS_WIN
Boudewijn Rempt's avatar
Boudewijn Rempt committed
3
   #ifdef _WIN64
4 5 6 7 8 9 10 11
     #define ENV64BIT
  #else
    #define ENV32BIT
  #endif
#endif

// Check GCC
#if __GNUC__
12
  #if defined (__x86_64__) || defined (__ppc64__)
13 14 15 16 17 18
    #define ENV64BIT
  #else
    #define ENV32BIT
  #endif
#endif

19 20 21 22 23 24 25 26 27 28 29 30
#ifdef __APPLE__
# ifdef __BIG_ENDIAN__
#  define WORDS_BIGENDIAN 1
# else
#  undef WORDS_BIGENDIAN
# endif
#else
/* Define to 1 if your processor stores words with the most significant byte
   first (like Motorola and SPARC, unlike Intel and VAX). */
#cmakedefine WORDS_BIGENDIAN ${CMAKE_WORDS_BIGENDIAN}
#endif

31 32 33
/* Defines if the Dr. Mingw crash handler should be used */
#cmakedefine USE_DRMINGW 1

34 35 36 37 38 39 40 41 42 43 44 45
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64

/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */

/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */

/* Defines if your system has the OpenEXR library */
#cmakedefine HAVE_OPENEXR 1

46 47
/* Defines if we use lcms2 */
#cmakedefine HAVE_LCMS2 1
48

49 50
/* Defines if we use lcms2.4 */
#cmakedefine HAVE_LCMS24 1
51

52 53 54
/* Defines if DBUS is present */
#cmakedefine HAVE_DBUS 1

55 56 57
/* Defines if KCrash is present */
#cmakedefine HAVE_KCRASH 1

58 59
/* This variable contains the path to the current build directory */
#define KRITA_BUILD_DIR "${CMAKE_BINARY_DIR}"
60 61

/* This variable contains the path to the data install dir */
62
#define KRITA_EXTRA_RESOURCE_DIRS "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}:${CMAKE_SOURCE_DIR}/krita/data"