mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 23:12:31 +00:00
d7e2ca377f
Since the platform is selected at run time (e.g. xcb vs. Wayland), it is not a good idea to decide at compile time what code is run. Another example is on macOS, where having xcb libraries available will lead to lauching the Xquartz whenever LyX is running. With this patch, things are separated: - the code is run when run-time platform is "xcb". - the support code is compiled in when xcb header and libraries are available. The cmake code is courtesy of Kornel Benko. Fixes ticket #13086. (cherry picked from commit18c310a8cf
) (cherry picked from commitf1fddd86ef
) (cherry picked from commit3bc4554e57
) (cherry picked from commit8c14748e78
)
140 lines
2.9 KiB
CMake
140 lines
2.9 KiB
CMake
/*
|
|
* \file config.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* This is the compilation configuration file for LyX.
|
|
* It was generated by cmake.
|
|
* You might want to change some of the defaults if something goes wrong
|
|
* during the compilation.
|
|
*/
|
|
|
|
#ifndef _CONFIG_H
|
|
#define _CONFIG_H
|
|
|
|
// obligatory flags
|
|
#define QT_NO_STL 1
|
|
#define QT_NO_KEYWORDS 1
|
|
#define HAVE_ICONV 1
|
|
|
|
#include "configCompiler.h"
|
|
|
|
#ifdef LYX_ENABLE_PCH
|
|
#include "pcheaders.h"
|
|
#endif
|
|
|
|
|
|
#cmakedefine PACKAGE "${PACKAGE}"
|
|
#cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}"
|
|
#define PACKAGE_STRING "LyX ${PACKAGE_VERSION}"
|
|
#cmakedefine PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}"
|
|
#cmakedefine VERSION_INFO "${VERSION_INFO}"
|
|
#cmakedefine LYX_DIR_VER "${LYX_DIR_VER}"
|
|
#cmakedefine LYX_USERDIR_VER "${LYX_USERDIR_VER}"
|
|
#define LYX_MAJOR_VERSION ${LYX_MAJOR_VERSION}
|
|
#define LYX_MINOR_VERSION ${LYX_MINOR_VERSION}
|
|
#define LYX_RELEASE_LEVEL ${LYX_RELEASE_LEVEL}
|
|
#define LYX_RELEASE_PATCH ${LYX_RELEASE_PATCH}
|
|
|
|
#define PROGRAM_SUFFIX "${PROGRAM_SUFFIX}"
|
|
#define LYX_ABS_INSTALLED_DATADIR "${LYX_ABS_INSTALLED_DATADIR}"
|
|
#define LYX_ABS_INSTALLED_LOCALEDIR "${LYX_ABS_INSTALLED_LOCALEDIR}"
|
|
#define LYX_ABS_TOP_SRCDIR "${TOP_SRC_DIR}"
|
|
|
|
#cmakedefine USE_POSIX_PACKAGING 1
|
|
#cmakedefine USE_WINDOWS_PACKAGING 1
|
|
#cmakedefine USE_MACOSX_PACKAGING 1
|
|
#cmakedefine HAVE_DEF_PATH_MAX 1
|
|
|
|
#cmakedefine WORDS_BIGENDIAN 1
|
|
|
|
#cmakedefine LYX_MERGE_FILES 1
|
|
|
|
// Define if callstack can be printed
|
|
#cmakedefine LYX_CALLSTACK_PRINTING 1
|
|
|
|
// Define if std::string uses copy-on-write
|
|
#cmakedefine STD_STRING_USES_COW 1
|
|
|
|
// use libc++ provided by llvm instead of GNU libstdc++
|
|
#cmakedefine USE_LLVM_LIBCPP 1
|
|
|
|
// use GNU libstdc++ with C++11 ABI
|
|
#cmakedefine USE_GLIBCXX_CXX11_ABI 1
|
|
|
|
#cmakedefine Z_PREFIX 1
|
|
|
|
// Define if you have the Qt5X11Extras module
|
|
#cmakedefine HAVE_QT5_X11_EXTRAS 1
|
|
|
|
${Include_used_spellchecker}
|
|
|
|
#cmakedefine AIKSAURUSLIB_FOUND 1
|
|
#ifdef AIKSAURUSLIB_FOUND
|
|
#define HAVE_LIBAIKSAURUS 1
|
|
#define AIKSAURUS_H_LOCATION "${AIKSAURUSLIB_H}"
|
|
#endif
|
|
|
|
#cmakedefine LYX_NLS 1
|
|
#ifdef LYX_NLS
|
|
#define ENABLE_NLS 1
|
|
#endif
|
|
|
|
#cmakedefine HAVE_DEF_MAKE_UNIQUE 1
|
|
|
|
// Define to 1 if std::call_once is supported by the compiler
|
|
#cmakedefine LYX_USE_STD_CALL_ONCE 1
|
|
|
|
// Define to 1 if enchant is version 2.x at least
|
|
#cmakedefine HAVE_ENCHANT2 1
|
|
|
|
// Define to 1 if have xcb library
|
|
#cmakedefine HAVE_LIBXCB ${HAVE_LIBXCB}
|
|
|
|
#define MYTHES_H_LOCATION <${MYTHES_DIR}/mythes.hxx>
|
|
|
|
#endif // config.h guard
|
|
|
|
// Unguarded cleanup of global namespace:
|
|
|
|
#ifdef ColorMode
|
|
#undef ColorMode
|
|
#endif
|
|
|
|
#ifdef FocusOut
|
|
#undef FocusOut
|
|
#endif
|
|
|
|
#ifdef FocusIn
|
|
#undef FocusIn
|
|
#endif
|
|
|
|
#ifdef KeyRelease
|
|
#undef KeyRelease
|
|
#endif
|
|
|
|
#ifdef CursorShape
|
|
#undef CursorShape
|
|
#endif
|
|
|
|
#ifdef IGNORE
|
|
#undef IGNORE
|
|
#endif
|
|
|
|
#ifdef GrayScale
|
|
#undef GrayScale
|
|
#endif
|
|
|
|
#ifdef Status
|
|
#undef Status
|
|
#endif
|
|
|
|
#ifdef IN
|
|
#undef IN
|
|
#endif
|
|
|
|
#ifdef KeyPress
|
|
#undef KeyPress
|
|
#endif
|
|
|