mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00

this is mostly automated change set, a lot to be done later on especially about the definitions in core component. the goal is to make most of the options of the core component available so that they can be utilized in other components and tools without restrictions as shown by some of the changes done to the GUI component in this commit Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
991 lines
42 KiB
CMake
991 lines
42 KiB
CMake
# Editors notes:
|
|
#
|
|
# * To find all FIXME/TODO related to the CMake build system (and those
|
|
# inherited from the QMake build system) execute the following in the
|
|
# top-level directory of the source tree:
|
|
#
|
|
# find -name '*.cmake' -exec grep -E 'TODO|FIXME' {} +
|
|
# find -name CMakeLists.txt -exec grep -E 'TODO|FIXME' {} +
|
|
|
|
cmake_minimum_required(VERSION 2.8.12.2 FATAL_ERROR)
|
|
|
|
if(CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|
message(FATAL_ERROR "\nThe project should not be build in the source directory")
|
|
elseif(CMAKE_CROSSCOMPILING)
|
|
message(FATAL_ERROR "\nThe project does not support cross-compiling")
|
|
endif()
|
|
|
|
project(Katie C CXX)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
|
endif()
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
|
|
set(CMAKE_AUTOMOC FALSE)
|
|
set(CMAKE_AUTOUIC FALSE)
|
|
set(CMAKE_AUTORCC FALSE)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/staticlib")
|
|
set(CMAKE_C_VISIBILITY_PRESET "hidden")
|
|
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
|
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
|
|
set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ toolkit derived from the Qt 4.8 framework")
|
|
set(CPACK_PACKAGE_VENDOR "Katie")
|
|
set(CPACK_PACKAGE_CONTACT "xakepa10@gmail.com")
|
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LGPL_EXCEPTION.txt")
|
|
set(CPACK_PACKAGE_VERSION_MAJOR "4")
|
|
set(CPACK_PACKAGE_VERSION_MINOR "9")
|
|
set(CPACK_PACKAGE_VERSION_PATCH "0")
|
|
set(CPACK_SET_DESTDIR TRUE)
|
|
set(CPACK_SOURCE_IGNORE_FILES "/minsize/;/debug/;/oldmake/;/apidocs/;/.git;${CPACK_SOURCE_IGNORE_FILES}")
|
|
set(CPACK_STRIP_FILES TRUE)
|
|
if(NOT CMAKE_VERSION VERSION_LESS "3.1.0")
|
|
set(CPACK_GENERATOR "TXZ")
|
|
set(CPACK_SOURCE_GENERATOR "TXZ")
|
|
else()
|
|
set(CPACK_GENERATOR "TGZ")
|
|
set(CPACK_SOURCE_GENERATOR "TGZ")
|
|
endif()
|
|
set(CPACK_PACKAGE_FILE_NAME "Katie-4.9.0-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_BUILD_TYPE}")
|
|
include(CPack)
|
|
|
|
# enable symbols visibility preset for all targets
|
|
if(NOT CMAKE_VERSION VERSION_LESS "3.3.0")
|
|
cmake_policy(SET CMP0063 NEW)
|
|
endif()
|
|
|
|
include(CheckIncludeFile)
|
|
include(CheckIncludeFileCXX)
|
|
include(CheckTypeSize)
|
|
include(FeatureSummary)
|
|
include(KatieMacros)
|
|
include(KatieBuildMacros)
|
|
|
|
# mostly relevant to the build process, also stored in the version file for CMake
|
|
set(KATIE_MAJOR "4")
|
|
set(KATIE_MINOR "9")
|
|
set(KATIE_MICRO "0")
|
|
set(KATIE_HEX "0x040900")
|
|
set(KATIE_VERSION "${KATIE_MAJOR}.${KATIE_MINOR}.${KATIE_MICRO}")
|
|
# this one is set via macro later, if possible
|
|
set(KATIE_GIT "unknown")
|
|
|
|
# components and tools that will be build, changed depending on the requirements availability
|
|
# NOTE: excluding DesignerComponents as it was never used as public component, currently only
|
|
# used by the the disigner tool. if it is ever needed for something it can just be added here
|
|
# and that's it - the rest of the build system has everything in place.
|
|
set(KATIE_COMPONENTS "Core Gui Declarative Designer Network Sql Svg Xml Script ScriptTools Test UiTools")
|
|
set(KATIE_TOOLS "moc uic rcc lupdate lrelease lconvert designer qscript qtconfig")
|
|
|
|
# for config.cpp.cmake
|
|
string(TIMESTAMP KATIE_DATE "%Y-%m-%d")
|
|
set(KATIE_LICENSE "Open Source")
|
|
set(KATIE_PRODUCT "AwesomeSauce")
|
|
|
|
include(GNUInstallDirs)
|
|
set(KATIE_PREFIX_FULL "${CMAKE_INSTALL_PREFIX}" CACHE PATH "General installation prefix")
|
|
set(KATIE_HEADERS_FULL "${CMAKE_INSTALL_FULL_INCLUDEDIR}/katie" CACHE PATH "Headers installation path")
|
|
set(KATIE_LIBRARIES_FULL "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "Libraries installation path")
|
|
set(KATIE_BINARIES_FULL "${CMAKE_INSTALL_FULL_BINDIR}" CACHE PATH "Binaries installation path")
|
|
set(KATIE_PLUGINS_FULL "${KATIE_LIBRARIES_FULL}/katie/plugins" CACHE PATH "Plugins installation path")
|
|
set(KATIE_IMPORTS_FULL "${KATIE_LIBRARIES_FULL}/katie/imports" CACHE PATH "Declerative imports installation path")
|
|
set(KATIE_DATA_FULL "${CMAKE_INSTALL_FULL_DATADIR}" CACHE PATH "Generic data installation path")
|
|
set(KATIE_TRANSLATIONS_FULL "${KATIE_DATA_FULL}/translations" CACHE PATH "Translations instllation path")
|
|
set(KATIE_SETTINGS_FULL "${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg" CACHE PATH "Settings runtime path")
|
|
set(KATIE_CMAKE_FULL "${KATIE_DATA_FULL}/cmake/Katie" CACHE PATH "CMake aware modules installation path")
|
|
set(KATIE_LDCONF_FULL "${KATIE_DATA_FULL}/ld.so.conf.d" CACHE PATH "Run-time linker/loader configs installation path")
|
|
set(KATIE_PROFILE_FULL "${KATIE_DATA_FULL}/profile.d" CACHE PATH "Shell profile scripts installation path")
|
|
set(KATIE_MAN_FULL "${CMAKE_INSTALL_FULL_MANDIR}" CACHE PATH "Manual pages installation path")
|
|
set(KATIE_APPLICATIONS_FULL "${KATIE_DATA_FULL}/applications" CACHE PATH "Desktop applications register installation path")
|
|
set(KATIE_PIXMAPS_FULL "${KATIE_DATA_FULL}/pixmaps" CACHE PATH "Desktop applications icon installation path")
|
|
set(KATIE_PKGCONFIG_FULL "${KATIE_LIBRARIES_FULL}/pkgconfig" CACHE PATH "pkg-config installation path")
|
|
set(KATIE_TOOLS_SUFFIX "" CACHE STRING "Tools (moc, uic, rcc, etc.) suffix")
|
|
katie_setup_paths()
|
|
|
|
# optional package
|
|
option(WITH_THREADS "Build threads support" ON)
|
|
add_feature_info(threads WITH_THREADS "build threads support")
|
|
|
|
option(WITH_NIS "Build NIS support" ON)
|
|
add_feature_info(nis WITH_NIS "build NIS support")
|
|
|
|
option(WITH_CUPS "Build CUPS support" ON)
|
|
add_feature_info(cups WITH_CUPS "build CUPS support")
|
|
|
|
option(WITH_PNG "Build PNG support" ON)
|
|
add_feature_info(png WITH_PNG "build PNG support")
|
|
|
|
option(WITH_JPEG "Build JPEG support" ON)
|
|
add_feature_info(jpeg WITH_JPEG "build JPEG support")
|
|
|
|
option(WITH_TIFF "Build TIFF support" ON)
|
|
add_feature_info(tiff WITH_TIFF "build TIFF support")
|
|
|
|
option(WITH_MNG "Build MNG support" ON)
|
|
add_feature_info(mng WITH_MNG "build MNG support")
|
|
|
|
option(WITH_DBUS "Build DBus support" ON)
|
|
add_feature_info(dbus WITH_DBUS "build DBus support")
|
|
|
|
option(WITH_FONTCONFIG "Build Fontconfig support" ON)
|
|
add_feature_info(fontconfig WITH_FONTCONFIG "build Fontconfig support")
|
|
|
|
# TODO: enable when building against external harfbuzz works
|
|
option(WITH_HARFBUZZ "Build Harfbuzz support" OFF)
|
|
add_feature_info(harfbuzz WITH_HARFBUZZ "build Harfbuzz support")
|
|
|
|
option(WITH_ODBC "Build ODBC database plugin" ON)
|
|
add_feature_info(odbc WITH_ODBC "build ODBC support")
|
|
|
|
option(WITH_PSQL "Build PostgreSQL database plugin" ON)
|
|
add_feature_info(postgresql WITH_PSQL "build PostgreSQL support")
|
|
|
|
option(WITH_MYSQL "Build MySQL database plugin" ON)
|
|
add_feature_info(mysql WITH_MYSQL "build MySQL support")
|
|
|
|
option(WITH_SQLITE "Build SQLite database plugin" ON)
|
|
add_feature_info(sqlite WITH_SQLITE "build SQLite support")
|
|
|
|
option(WITH_RESOLV "Build resolv support" ON)
|
|
add_feature_info(resolv WITH_RESOLV "build resolv support")
|
|
|
|
option(WITH_NSL "Build NSL support" ON)
|
|
add_feature_info(nsl WITH_NSL "build NSL support")
|
|
|
|
option(WITH_UNWIND "Build Unwind support" OFF)
|
|
add_feature_info(unwind WITH_UNWIND "build Unwind support")
|
|
|
|
# optional features
|
|
option(KATIE_TESTS "Build automatic tests" OFF)
|
|
add_feature_info(tests KATIE_TESTS "build automatic tests")
|
|
|
|
option(KATIE_BENCHMARKS "Build automatic benchmarks" OFF)
|
|
add_feature_info(benchmarks KATIE_BENCHMARKS "build automatic benchmarks")
|
|
|
|
option(KATIE_UTILS "Build maintainance utilities" OFF)
|
|
add_feature_info(utils KATIE_UTILS "build maintainance utilities")
|
|
|
|
option(KATIE_ALLINONE "Build targets from single source file" OFF)
|
|
add_feature_info(allinone KATIE_ALLINONE "build targets from single source file")
|
|
|
|
option(WITH_ACCESSIBILITY "Build accessibility support" ON)
|
|
add_feature_info(accessibility WITH_ACCESSIBILITY "build accessibility support")
|
|
|
|
include(mkspecs/mkspecs.cmake)
|
|
|
|
# these conditionals are probably going to become default in the future
|
|
add_definitions(
|
|
-DQT_POSIX_IPC
|
|
-DQT_USE_SYSTEM_PROXIES
|
|
# -DQT_STRICT_ITERATORS
|
|
# -DQT_ASCII_CAST_WARNINGS
|
|
# maybe one day, this forces it onto other projects which (most likely)
|
|
# means source code adjustments!
|
|
# -DQT_NO_CAST_FROM_ASCII
|
|
# -DQT_NO_CAST_TO_ASCII
|
|
|
|
# both gui and svg components require harfbuzz
|
|
-DHB_EXPORT=Q_CORE_EXPORT
|
|
-DQT_NO_OPENTYPE
|
|
)
|
|
|
|
# used in qconfig.h
|
|
set(QT_LARGEFILE_SUPPORT 64)
|
|
add_definitions(
|
|
-D_LARGEFILE64_SOURCE
|
|
-D_LARGEFILE_SOURCE
|
|
)
|
|
|
|
# some things just cannot be done right, yet
|
|
if(KATIE_ALLINONE)
|
|
add_definitions(-DQT_ALLINONE)
|
|
endif()
|
|
|
|
# for symbols mangling while unwinding in core component
|
|
check_include_file_cxx(cxxabi.h HAVE_CXXABI)
|
|
|
|
# for 3rd party source used in test component
|
|
check_include_file(sys/time.h HAVE_SYS_TIME_H)
|
|
|
|
# used in qconfig.h
|
|
check_type_size(size_t QT_POINTER_SIZE)
|
|
|
|
if(KATIE_COMPILER MATCHES "(gcc|clang)")
|
|
set(QT_VISIBILITY_AVAILABLE TRUE)
|
|
endif()
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/src/core/global/qconfig.h.cmake
|
|
${CMAKE_BINARY_DIR}/include/QtCore/qconfig.h
|
|
)
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/src/core/global/qconfig.cpp.cmake
|
|
${CMAKE_BINARY_DIR}/include/qconfig.cpp
|
|
)
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/src/core/global/qglobal.h.cmake
|
|
${CMAKE_BINARY_DIR}/include/QtCore/qglobal.h
|
|
)
|
|
|
|
find_package(ZLIB)
|
|
set_package_properties(ZLIB PROPERTIES
|
|
PURPOSE "Required for compression support"
|
|
DESCRIPTION "A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
|
|
URL "https://zlib.net"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
# v4.6+ required for unorm2_getDecomposition()
|
|
find_package(ICU 4.6)
|
|
set_package_properties(ICU PROPERTIES
|
|
PURPOSE "Required for locales support"
|
|
DESCRIPTION "Mature, widely used libraries providing Unicode and Globalization support"
|
|
URL "http://site.icu-project.org/"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
# v0.7.3+ required for ZSTD_getDecompressedSize()
|
|
find_package(ZSTD 0.7.3)
|
|
set_package_properties(ZSTD PROPERTIES
|
|
PURPOSE "Required for compression support"
|
|
DESCRIPTION "Fast real-time compression algorithm"
|
|
URL "https://github.com/facebook/zstd"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
find_package(OpenSSL)
|
|
set_package_properties(OpenSSL PROPERTIES
|
|
PURPOSE "Required for HTTPS support"
|
|
DESCRIPTION "Support for secure network communications (SSL and TLS)"
|
|
URL "https://openssl.org"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
# v7.7+ required for JavaScript compatibility
|
|
find_package(PCRE 7.7)
|
|
set_package_properties(PCRE PROPERTIES
|
|
PURPOSE "Required for regexp support in script component"
|
|
DESCRIPTION "Perl Compatible Regular Expressions"
|
|
URL "https://www.pcre.org/"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
find_package(X11)
|
|
set_package_properties(X11 PROPERTIES
|
|
PURPOSE "Required for X11/X.Org integration support"
|
|
DESCRIPTION "Open source implementation of the X Window System"
|
|
URL "https://www.x.org"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
# v2.1.10+ required for FT_GlyphSlot_Embolden()
|
|
find_package(Freetype 2.1.10)
|
|
set_package_properties(Freetype PROPERTIES
|
|
PURPOSE "Required for fonts configuration support"
|
|
DESCRIPTION "Freely available software library to render fonts"
|
|
URL "https://www.freetype.org"
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
|
find_package(Threads)
|
|
set_package_properties(Threads PROPERTIES
|
|
PURPOSE "Required for threads support"
|
|
DESCRIPTION "Platform dependent threads implementation"
|
|
URL ""
|
|
TYPE REQUIRED
|
|
)
|
|
|
|
find_package(Git)
|
|
set_package_properties(Git PROPERTIES
|
|
PURPOSE "Git checkout stored for the sake of bug reports"
|
|
DESCRIPTION "Free and open source distributed version control system"
|
|
URL "https://git-scm.com/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(NIS)
|
|
set_package_properties(NIS PROPERTIES
|
|
PURPOSE "Required for Network Information Service support"
|
|
DESCRIPTION "Standard C library specific NIS implementation"
|
|
URL ""
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(Resolv)
|
|
set_package_properties(Resolv PROPERTIES
|
|
PURPOSE "Required for domain resolving support"
|
|
DESCRIPTION "Standard C library specific resolv implementation"
|
|
URL ""
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(NSL)
|
|
set_package_properties(NSL PROPERTIES
|
|
PURPOSE "Required for printing information support"
|
|
DESCRIPTION "Standard C library specific NSL implementation"
|
|
URL ""
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(PNG)
|
|
set_package_properties(PNG PROPERTIES
|
|
PURPOSE "PNG format handler"
|
|
DESCRIPTION "A collection of routines used to create PNG format graphics files"
|
|
URL "http://www.libpng.org/pub/png/libpng.html"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(JPEG)
|
|
set_package_properties(JPEG PROPERTIES
|
|
PURPOSE "JPEG format handler"
|
|
DESCRIPTION "JPEG image codec with accelerated baseline compression and decompression"
|
|
URL "https://libjpeg-turbo.virtualgl.org/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(TIFF)
|
|
set_package_properties(TIFF PROPERTIES
|
|
PURPOSE "TIFF format handler"
|
|
DESCRIPTION "Library for manipulation of TIFF images"
|
|
URL "http://www.libtiff.org/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(MNG)
|
|
set_package_properties(MNG PROPERTIES
|
|
PURPOSE "MNG format handler"
|
|
DESCRIPTION "THE reference library for reading, displaying, writing and examining Multiple-Image Network Graphics"
|
|
URL "https://sourceforge.net/projects/libmng/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(Cups)
|
|
set_package_properties(Cups PROPERTIES
|
|
PURPOSE "Required for printing support"
|
|
DESCRIPTION "CUPS is the standards-based, open source printing system"
|
|
URL "https://www.cups.org"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
# v2.4.2+ required for Freetype integration
|
|
find_package(Fontconfig 2.4.2)
|
|
set_package_properties(Fontconfig PROPERTIES
|
|
PURPOSE "Required for fonts configuration support"
|
|
DESCRIPTION "Library for configuring and customizing font access"
|
|
URL "https://www.freedesktop.org/wiki/Software/fontconfig/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
# currently unused
|
|
find_package(HarfBuzz)
|
|
set_package_properties(HarfBuzz PROPERTIES
|
|
PURPOSE "Currently none"
|
|
DESCRIPTION "OpenType text shaping engine"
|
|
URL "https://www.freedesktop.org/wiki/Software/HarfBuzz/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
# v1.2+ required for dbus_watch_get_unix_fd()
|
|
find_package(DBus 1.2)
|
|
set_package_properties(DBus PROPERTIES
|
|
PURPOSE "Required for D-Bus support"
|
|
DESCRIPTION "Message bus system, a simple way for applications to talk to one another"
|
|
URL "https://www.freedesktop.org/wiki/Software/dbus"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
# v3.5.0+ required for sqlite3_open_v2()
|
|
find_package(Sqlite 3.5.0)
|
|
set_package_properties(Sqlite PROPERTIES
|
|
PURPOSE "Required for SQLite database support"
|
|
DESCRIPTION "Software library that implements SQL database engine"
|
|
URL "https://www.sqlite.org/"
|
|
TYPE RECOMMENDED
|
|
)
|
|
|
|
find_package(ODBC)
|
|
set_package_properties(ODBC PROPERTIES
|
|
PURPOSE "Required for ODBC database support"
|
|
DESCRIPTION "The definitive standard for ODBC on non MS Windows platforms"
|
|
URL "http://www.unixodbc.org"
|
|
TYPE OPTIONAL
|
|
)
|
|
|
|
find_package(PostgreSQL)
|
|
set_package_properties(PostgreSQL PROPERTIES
|
|
PURPOSE "Required for PostgreSQL database support"
|
|
DESCRIPTION "The world's most advanced open source database"
|
|
URL "https://www.postgresql.org/"
|
|
TYPE OPTIONAL
|
|
)
|
|
|
|
find_package(MySQL)
|
|
set_package_properties(MySQL PROPERTIES
|
|
PURPOSE "Required for MySQL database support"
|
|
DESCRIPTION "The world's most popular open source database"
|
|
URL "https://www.mysql.com/"
|
|
TYPE OPTIONAL
|
|
)
|
|
|
|
find_package(Unwind)
|
|
set_package_properties(Unwind PROPERTIES
|
|
PURPOSE "Required for stack traces on assert"
|
|
DESCRIPTION "A (mostly) platform-independent unwind API"
|
|
URL "https://www.nongnu.org/libunwind/index.html"
|
|
TYPE OPTIONAL
|
|
)
|
|
|
|
if(KATIE_TESTS OR KATIE_BENCHMARKS)
|
|
message(WARNING
|
|
"\nUnless it is intentionall you should not enable testing, deploying tests builds"
|
|
" is a bad idea."
|
|
)
|
|
enable_testing()
|
|
add_definitions(-DQT_BUILD_INTERNAL)
|
|
endif()
|
|
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/cmake/exec.sh.cmake
|
|
${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/exec.sh
|
|
@ONLY
|
|
)
|
|
file(
|
|
COPY ${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/exec.sh
|
|
DESTINATION ${CMAKE_BINARY_DIR}
|
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
|
)
|
|
|
|
# optional packages
|
|
if(NOT WITH_THREADS OR NOT THREADS_FOUND)
|
|
katie_definition(-DQT_NO_THREAD)
|
|
endif()
|
|
|
|
if(NOT WITH_FONTCONFIG OR NOT FONTCONFIG_FOUND)
|
|
katie_definition(-DQT_NO_FONTCONFIG)
|
|
endif()
|
|
|
|
if(NOT WITH_DBUS OR NOT DBUS_FOUND)
|
|
katie_definition(-DQT_NO_DBUS)
|
|
else()
|
|
set(KATIE_COMPONENTS "${KATIE_COMPONENTS} DBus")
|
|
set(KATIE_TOOLS "${KATIE_TOOLS} qdbusxml2cpp qdbuscpp2xml qdbusviewer")
|
|
endif()
|
|
|
|
if(NOT WITH_CUPS OR NOT CUPS_FOUND)
|
|
katie_definition(-DQT_NO_CUPS -DQT_NO_LPR)
|
|
endif()
|
|
|
|
if(NOT WITH_RESOLV OR NOT RESOLV_FOUND)
|
|
katie_definition(-DQT_NO_RESOLV)
|
|
endif()
|
|
|
|
if(NOT WITH_NSL OR NOT NSL_FOUND)
|
|
katie_definition(-DQT_NO_NSL)
|
|
endif()
|
|
|
|
if(NOT WITH_NIS OR NOT NIS_FOUND)
|
|
katie_definition(-DQT_NO_NIS)
|
|
endif()
|
|
|
|
if(NOT WITH_PNG OR NOT PNG_FOUND)
|
|
katie_definition(-DQT_NO_IMAGEFORMAT_PNG)
|
|
endif()
|
|
|
|
if(NOT WITH_JPEG OR NOT JPEG_FOUND)
|
|
katie_definition(-DQT_NO_IMAGEFORMAT_JPEG)
|
|
endif()
|
|
|
|
if(NOT WITH_MNG OR NOT MNG_FOUND)
|
|
katie_definition(-DQT_NO_IMAGEFORMAT_MNG)
|
|
endif()
|
|
|
|
if(NOT WITH_TIFF OR NOT TIFF_FOUND)
|
|
katie_definition(-DQT_NO_IMAGEFORMAT_TIFF)
|
|
endif()
|
|
|
|
if(NOT WITH_UNWIND OR NOT UNWIND_FOUND OR NOT HAVE_CXXABI)
|
|
katie_definition(-DQT_NO_UNWIND)
|
|
endif()
|
|
|
|
# conditional features
|
|
if(NOT WITH_ACCESSIBILITY)
|
|
katie_definition(-DQT_NO_ACCESSIBILITY)
|
|
endif()
|
|
|
|
# keep in sync with the gui component CMake file, only definitions setup is needed here
|
|
foreach(x11ext Xshape Xinerama Xrandr Xrender Xfixes Xcursor Xinput)
|
|
if(NOT X11_${x11ext}_FOUND)
|
|
message(WARNING "The X11 ${x11ext} extension was not found")
|
|
string(TOUPPER "${x11ext}" upperext)
|
|
katie_definition(-DQT_NO_${upperext})
|
|
endif()
|
|
endforeach()
|
|
if(NOT X11_Xext_FOUND)
|
|
message(WARNING "The X11 Xext extension was not found")
|
|
katie_definition(-DQT_NO_XSYNC -DQT_NO_XSHAPE -DQT_NO_XSHM)
|
|
endif()
|
|
if(NOT X11_SM_FOUND)
|
|
message(WARNING "X11 SM was not found thus disabling session manager support")
|
|
katie_definition(-DQT_NO_SESSIONMANAGER)
|
|
endif()
|
|
|
|
add_subdirectory(src/shared)
|
|
|
|
add_subdirectory(src/core)
|
|
add_subdirectory(src/xml)
|
|
if(WITH_DBUS AND DBUS_FOUND)
|
|
add_subdirectory(src/dbus)
|
|
endif()
|
|
add_subdirectory(src/declarative)
|
|
add_subdirectory(src/designer)
|
|
add_subdirectory(src/gui)
|
|
add_subdirectory(src/imports)
|
|
add_subdirectory(src/network)
|
|
add_subdirectory(src/plugins)
|
|
add_subdirectory(src/script)
|
|
add_subdirectory(src/scripttools)
|
|
add_subdirectory(src/sql)
|
|
add_subdirectory(src/svg)
|
|
add_subdirectory(src/test)
|
|
add_subdirectory(src/uitools)
|
|
|
|
add_subdirectory(src/tools)
|
|
|
|
add_subdirectory(translations)
|
|
|
|
if(KATIE_TESTS OR KATIE_BENCHMARKS)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
if(KATIE_UTILS)
|
|
add_subdirectory(util)
|
|
endif()
|
|
|
|
# the macro calls bellow are generted via the incfsck script
|
|
katie_generate_obsolete(qabstractlistmodel.h QtCore qabstractitemmodel.h)
|
|
katie_generate_obsolete(qabstracttablemodel.h QtCore qabstractitemmodel.h)
|
|
katie_generate_obsolete(qargument.h QtCore qobjectdefs.h)
|
|
katie_generate_obsolete(qatomicint.h QtCore qatomic.h)
|
|
katie_generate_obsolete(qatomicpointer.h QtCore qatomic.h)
|
|
katie_generate_obsolete(qbasicatomicint.h QtCore qbasicatomic.h)
|
|
katie_generate_obsolete(qbitref.h QtCore qbitarray.h)
|
|
katie_generate_obsolete(qbool.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qbyteref.h QtCore qbytearray.h)
|
|
katie_generate_obsolete(qcharref.h QtCore qstring.h)
|
|
katie_generate_obsolete(qchildevent.h QtCore qcoreevent.h)
|
|
katie_generate_obsolete(qdate.h QtCore qdatetime.h)
|
|
katie_generate_obsolete(qdynamicpropertychangeevent.h QtCore qcoreevent.h)
|
|
katie_generate_obsolete(qexplicitlyshareddatapointer.h QtCore qsharedpointer.h)
|
|
katie_generate_obsolete(qfileinfolist.h QtCore qfileinfo.h)
|
|
katie_generate_obsolete(qflag.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qflags.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qgenericargument.h QtCore qobjectdefs.h)
|
|
katie_generate_obsolete(qglobalstatic.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qhashiterator.h QtCore qhash.h)
|
|
katie_generate_obsolete(qjsonparseerror.h QtCore qjsondocument.h)
|
|
katie_generate_obsolete(qlatin1char.h QtCore qchar.h)
|
|
katie_generate_obsolete(qlatin1string.h QtCore qstring.h)
|
|
katie_generate_obsolete(qlinef.h QtCore qline.h)
|
|
katie_generate_obsolete(qlistiterator.h QtCore qlist.h)
|
|
katie_generate_obsolete(qmapiterator.h QtCore qmap.h)
|
|
katie_generate_obsolete(qmetaclassinfo.h QtCore qmetaobject.h)
|
|
katie_generate_obsolete(qmetaenum.h QtCore qmetaobject.h)
|
|
katie_generate_obsolete(qmetamethod.h QtCore qmetaobject.h)
|
|
katie_generate_obsolete(qmetaproperty.h QtCore qmetaobject.h)
|
|
katie_generate_obsolete(qmodelindex.h QtCore qabstractitemmodel.h)
|
|
katie_generate_obsolete(qmodelindexlist.h QtCore qabstractitemmodel.h)
|
|
katie_generate_obsolete(qmultihash.h QtCore qhash.h)
|
|
katie_generate_obsolete(qmultimap.h QtCore qmap.h)
|
|
katie_generate_obsolete(qmutablehashiterator.h QtCore qhash.h)
|
|
katie_generate_obsolete(qmutablelinkedlistiterator.h QtCore qlist.h)
|
|
katie_generate_obsolete(qmutablelistiterator.h QtCore qlist.h)
|
|
katie_generate_obsolete(qmutablemapiterator.h QtCore qmap.h)
|
|
katie_generate_obsolete(qmutablesetiterator.h QtCore qset.h)
|
|
katie_generate_obsolete(qmutablestringlistiterator.h QtCore qstringlist.h)
|
|
katie_generate_obsolete(qmutablevectoriterator.h QtCore qvector.h)
|
|
katie_generate_obsolete(qmutexlocker.h QtCore qmutex.h)
|
|
katie_generate_obsolete(qobjectlist.h QtCore qobject.h)
|
|
katie_generate_obsolete(qpersistentmodelindex.h QtCore qabstractitemmodel.h)
|
|
katie_generate_obsolete(qpointf.h QtCore qpoint.h)
|
|
katie_generate_obsolete(qprocessenvironment.h QtCore qprocess.h)
|
|
katie_generate_obsolete(qreadlocker.h QtCore qreadwritelock.h)
|
|
katie_generate_obsolete(qrectf.h QtCore qrect.h)
|
|
katie_generate_obsolete(qscopedarraypointer.h QtCore qscopedpointer.h)
|
|
katie_generate_obsolete(qshareddatapointer.h QtCore qshareddata.h)
|
|
katie_generate_obsolete(qsizef.h QtCore qsize.h)
|
|
katie_generate_obsolete(qsysinfo.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qtextdecoder.h QtCore qtextcodec.h)
|
|
katie_generate_obsolete(qtime.h QtCore qdatetime.h)
|
|
katie_generate_obsolete(qtimerevent.h QtCore qcoreevent.h)
|
|
katie_generate_obsolete(qvarianthash.h QtCore qvariant.h)
|
|
katie_generate_obsolete(qvariantlist.h QtCore qvariant.h)
|
|
katie_generate_obsolete(qvariantmap.h QtCore qvariant.h)
|
|
katie_generate_obsolete(qweakpointer.h QtCore qsharedpointer.h)
|
|
katie_generate_obsolete(qwritelocker.h QtCore qreadwritelock.h)
|
|
katie_generate_obsolete(q_pid.h QtCore qprocess.h)
|
|
katie_generate_obsolete(qt.h QtCore qnamespace.h)
|
|
katie_generate_obsolete(qtalgorithms.h QtCore qalgorithms.h)
|
|
katie_generate_obsolete(qtdebug.h QtCore qdebug.h)
|
|
katie_generate_obsolete(qtendian.h QtCore qendian.h)
|
|
katie_generate_obsolete(qtglobal.h QtCore qglobal.h)
|
|
katie_generate_obsolete(qtplugin.h QtCore qplugin.h)
|
|
katie_generate_obsolete(qdbusabstractinterfacebase.h QtDBus qdbusabstractinterface.h)
|
|
katie_generate_obsolete(qdbusobjectpath.h QtDBus qdbusextratypes.h)
|
|
katie_generate_obsolete(qdbuspendingcallwatcher.h QtDBus qdbuspendingcall.h)
|
|
katie_generate_obsolete(qdbuspendingreplydata.h QtDBus qdbuspendingreply.h)
|
|
katie_generate_obsolete(qdbussignature.h QtDBus qdbusextratypes.h)
|
|
katie_generate_obsolete(qdbusvariant.h QtDBus qdbusextratypes.h)
|
|
katie_generate_obsolete(qdeclarativelistproperty.h QtDeclarative qdeclarativelist.h)
|
|
katie_generate_obsolete(qabstractformbuilder.h QtDesigner abstractformbuilder.h)
|
|
katie_generate_obsolete(qdesigneractioneditorinterface.h QtDesigner abstractactioneditor.h)
|
|
katie_generate_obsolete(qdesignerbrushmanagerinterface.h QtDesigner abstractbrushmanager.h)
|
|
katie_generate_obsolete(qdesignercomponents.h QtDesigner qdesigner_components.h)
|
|
katie_generate_obsolete(qdesignercontainerextension.h QtDesigner container.h)
|
|
katie_generate_obsolete(qdesignercustomwidgetcollectioninterface.h QtDesigner customwidget.h)
|
|
katie_generate_obsolete(qdesignercustomwidgetinterface.h QtDesigner customwidget.h)
|
|
katie_generate_obsolete(qdesignerdnditeminterface.h QtDesigner abstractdnditem.h)
|
|
katie_generate_obsolete(qdesignerdynamicpropertysheetextension.h QtDesigner dynamicpropertysheet.h)
|
|
katie_generate_obsolete(qdesignerextrainfoextension.h QtDesigner extrainfo.h)
|
|
katie_generate_obsolete(qdesignerformeditorinterface.h QtDesigner abstractformeditor.h)
|
|
katie_generate_obsolete(qdesignerformeditorplugininterface.h QtDesigner abstractformeditorplugin.h)
|
|
katie_generate_obsolete(qdesignerformwindowcursorinterface.h QtDesigner abstractformwindowcursor.h)
|
|
katie_generate_obsolete(qdesignerformwindowinterface.h QtDesigner abstractformwindow.h)
|
|
katie_generate_obsolete(qdesignerformwindowmanagerinterface.h QtDesigner abstractformwindowmanager.h)
|
|
katie_generate_obsolete(qdesignerformwindowtoolinterface.h QtDesigner abstractformwindowtool.h)
|
|
katie_generate_obsolete(qdesignericoncacheinterface.h QtDesigner abstracticoncache.h)
|
|
katie_generate_obsolete(qdesignerintegrationinterface.h QtDesigner abstractintegration.h)
|
|
katie_generate_obsolete(qdesignerlanguageextension.h QtDesigner abstractlanguage.h)
|
|
katie_generate_obsolete(qdesignerlayoutdecorationextension.h QtDesigner layoutdecoration.h)
|
|
katie_generate_obsolete(qdesignermembersheetextension.h QtDesigner membersheet.h)
|
|
katie_generate_obsolete(qdesignermetadatabaseinterface.h QtDesigner abstractmetadatabase.h)
|
|
katie_generate_obsolete(qdesignermetadatabaseiteminterface.h QtDesigner abstractmetadatabase.h)
|
|
katie_generate_obsolete(qdesignerobjectinspectorinterface.h QtDesigner abstractobjectinspector.h)
|
|
katie_generate_obsolete(qdesignerpromotioninterface.h QtDesigner abstractpromotioninterface.h)
|
|
katie_generate_obsolete(qdesignerpropertyeditorinterface.h QtDesigner abstractpropertyeditor.h)
|
|
katie_generate_obsolete(qdesignerpropertysheetextension.h QtDesigner propertysheet.h)
|
|
katie_generate_obsolete(qdesignerresourcebrowserinterface.h QtDesigner abstractresourcebrowser.h)
|
|
katie_generate_obsolete(qdesignertaskmenuextension.h QtDesigner taskmenu.h)
|
|
katie_generate_obsolete(qdesignerwidgetboxinterface.h QtDesigner abstractwidgetbox.h)
|
|
katie_generate_obsolete(qdesignerwidgetdatabaseinterface.h QtDesigner abstractwidgetdatabase.h)
|
|
katie_generate_obsolete(qdesignerwidgetdatabaseiteminterface.h QtDesigner abstractwidgetdatabase.h)
|
|
katie_generate_obsolete(qdesignerwidgetfactoryinterface.h QtDesigner abstractwidgetfactory.h)
|
|
katie_generate_obsolete(qextensionfactory.h QtDesigner default_extensionfactory.h)
|
|
katie_generate_obsolete(qabstractgraphicsshapeitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qabstractundoitem.h QtGui qtextdocument.h)
|
|
katie_generate_obsolete(qaccessible2interface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibleactioninterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibleapplication.h QtGui qaccessibleobject.h)
|
|
katie_generate_obsolete(qaccessiblebridgefactoryinterface.h QtGui qaccessiblebridge.h)
|
|
katie_generate_obsolete(qaccessiblebridgeplugin.h QtGui qaccessiblebridge.h)
|
|
katie_generate_obsolete(qaccessibleeditabletextinterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibleevent.h QtGui qaccessible.h)
|
|
katie_generate_obsolete(qaccessiblefactoryinterface.h QtGui qaccessibleplugin.h)
|
|
katie_generate_obsolete(qaccessibleimageinterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibleinterface.h QtGui qaccessible.h)
|
|
katie_generate_obsolete(qaccessibleinterfaceex.h QtGui qaccessible.h)
|
|
katie_generate_obsolete(qaccessibleobjectex.h QtGui qaccessibleobject.h)
|
|
katie_generate_obsolete(qaccessiblesimpleeditabletextinterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibletable2cellinterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibletable2interface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qaccessibletableinterface.h QtGui qaccessible2.h)
|
|
katie_generate_obsolete(qactionevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qcloseevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qconicalgradient.h QtGui qbrush.h)
|
|
katie_generate_obsolete(qcontextmenuevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qdateedit.h QtGui qdatetimeedit.h)
|
|
katie_generate_obsolete(qdoublespinbox.h QtGui qspinbox.h)
|
|
katie_generate_obsolete(qdoublevalidator.h QtGui qvalidator.h)
|
|
katie_generate_obsolete(qdragenterevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qdragleaveevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qdragmoveevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qdropevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qfileopenevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qfocusevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qfontmetricsf.h QtGui qfontmetrics.h)
|
|
katie_generate_obsolete(qgestureevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qgradient.h QtGui qbrush.h)
|
|
katie_generate_obsolete(qgraphicsdropshadoweffect.h QtGui qgraphicseffect.h)
|
|
katie_generate_obsolete(qgraphicsellipseitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicsitemgroup.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicslineitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicsobject.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicsopacityeffect.h QtGui qgraphicseffect.h)
|
|
katie_generate_obsolete(qgraphicspathitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicspixmapitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicspolygonitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicsrectitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicsrotation.h QtGui qgraphicstransform.h)
|
|
katie_generate_obsolete(qgraphicsscale.h QtGui qgraphicstransform.h)
|
|
katie_generate_obsolete(qgraphicsscenecontextmenuevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenedragdropevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenehelpevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenehoverevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenemouseevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenemoveevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicssceneresizeevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicsscenewheelevent.h QtGui qgraphicssceneevent.h)
|
|
katie_generate_obsolete(qgraphicssimpletextitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qgraphicstextitem.h QtGui qgraphicsitem.h)
|
|
katie_generate_obsolete(qhboxlayout.h QtGui qboxlayout.h)
|
|
katie_generate_obsolete(qhelpevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qhideevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qhoverevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qiconenginefactoryinterface.h QtGui qiconengineplugin.h)
|
|
katie_generate_obsolete(qiconenginefactoryinterfacev2.h QtGui qiconengineplugin.h)
|
|
katie_generate_obsolete(qiconenginepluginv2.h QtGui qiconengineplugin.h)
|
|
katie_generate_obsolete(qiconenginev2.h QtGui qiconengine.h)
|
|
katie_generate_obsolete(qimageiohandlerfactoryinterface.h QtGui qimageiohandler.h)
|
|
katie_generate_obsolete(qimageioplugin.h QtGui qimageiohandler.h)
|
|
katie_generate_obsolete(qinputcontextfactoryinterface.h QtGui qinputcontextplugin.h)
|
|
katie_generate_obsolete(qinputevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qinputmethodevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qintvalidator.h QtGui qvalidator.h)
|
|
katie_generate_obsolete(qitemeditorcreator.h QtGui qitemeditorfactory.h)
|
|
katie_generate_obsolete(qitemeditorcreatorbase.h QtGui qitemeditorfactory.h)
|
|
katie_generate_obsolete(qitemselection.h QtGui qitemselectionmodel.h)
|
|
katie_generate_obsolete(qitemselectionrange.h QtGui qitemselectionmodel.h)
|
|
katie_generate_obsolete(qkeyevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qlineargradient.h QtGui qbrush.h)
|
|
katie_generate_obsolete(qlistwidgetitem.h QtGui qlistwidget.h)
|
|
katie_generate_obsolete(qmouseevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qmoveevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qpaintevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qpainterpathstroker.h QtGui qpainterpath.h)
|
|
katie_generate_obsolete(qpinchgesture.h QtGui qgesture.h)
|
|
katie_generate_obsolete(qplaintextdocumentlayout.h QtGui qplaintextedit.h)
|
|
katie_generate_obsolete(qpolygonf.h QtGui qpolygon.h)
|
|
katie_generate_obsolete(qradialgradient.h QtGui qbrush.h)
|
|
katie_generate_obsolete(qregexpvalidator.h QtGui qvalidator.h)
|
|
katie_generate_obsolete(qresizeevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qshortcutevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qshowevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qspaceritem.h QtGui qlayoutitem.h)
|
|
katie_generate_obsolete(qsplitterhandle.h QtGui qsplitter.h)
|
|
katie_generate_obsolete(qstandarditem.h QtGui qstandarditemmodel.h)
|
|
katie_generate_obsolete(qstylehintreturnmask.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionbutton.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptioncombobox.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptioncomplex.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiondockwidget.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiondockwidgetv2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionfocusrect.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionframe.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionframev2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionframev3.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiongraphicsitem.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiongroupbox.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionheader.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionmenuitem.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionprogressbar.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionprogressbarv2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionrubberband.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionslider.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionspinbox.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontab.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontabbarbase.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontabv2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontabv3.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontabwidgetframe.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontabwidgetframev2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontitlebar.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontoolbar.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptiontoolbutton.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionviewitem.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionviewitemv2.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionviewitemv3.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qstyleoptionviewitemv4.h QtGui qstyleoption.h)
|
|
katie_generate_obsolete(qtablewidgetitem.h QtGui qtablewidget.h)
|
|
katie_generate_obsolete(qtextblock.h QtGui qtextobject.h)
|
|
katie_generate_obsolete(qtextblockformat.h QtGui qtextformat.h)
|
|
katie_generate_obsolete(qtextblockuserdata.h QtGui qtextobject.h)
|
|
katie_generate_obsolete(qtextcharformat.h QtGui qtextformat.h)
|
|
katie_generate_obsolete(qtextframe.h QtGui qtextobject.h)
|
|
katie_generate_obsolete(qtextlength.h QtGui qtextformat.h)
|
|
katie_generate_obsolete(qtextline.h QtGui qtextlayout.h)
|
|
katie_generate_obsolete(qtextlistformat.h QtGui qtextformat.h)
|
|
katie_generate_obsolete(qtexttablecell.h QtGui qtexttable.h)
|
|
katie_generate_obsolete(qtexttableformat.h QtGui qtextformat.h)
|
|
katie_generate_obsolete(qtimeedit.h QtGui qdatetimeedit.h)
|
|
katie_generate_obsolete(qtouchevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qtreewidgetitem.h QtGui qtreewidget.h)
|
|
katie_generate_obsolete(qundocommand.h QtGui qundostack.h)
|
|
katie_generate_obsolete(qvboxlayout.h QtGui qboxlayout.h)
|
|
katie_generate_obsolete(qwheelevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qwidgetitem.h QtGui qlayoutitem.h)
|
|
katie_generate_obsolete(qwidgetlist.h QtGui qwindowdefs.h)
|
|
katie_generate_obsolete(qwindowstatechangeevent.h QtGui qevent.h)
|
|
katie_generate_obsolete(qwizardpage.h QtGui qwizard.h)
|
|
katie_generate_obsolete(qtevents.h QtGui qevent.h)
|
|
katie_generate_obsolete(qhttpheader.h QtNetwork qhttp.h)
|
|
katie_generate_obsolete(qhttppart.h QtNetwork qhttpmultipart.h)
|
|
katie_generate_obsolete(qhttprequestheader.h QtNetwork qhttp.h)
|
|
katie_generate_obsolete(qhttpresponseheader.h QtNetwork qhttp.h)
|
|
katie_generate_obsolete(qnetworkaddressentry.h QtNetwork qnetworkinterface.h)
|
|
katie_generate_obsolete(qnetworkcachemetadata.h QtNetwork qabstractnetworkcache.h)
|
|
katie_generate_obsolete(qnetworkconfigurationmanager.h QtNetwork qnetworkconfigmanager.h)
|
|
katie_generate_obsolete(qnetworkproxyfactory.h QtNetwork qnetworkproxy.h)
|
|
katie_generate_obsolete(qnetworkproxyquery.h QtNetwork qnetworkproxy.h)
|
|
katie_generate_obsolete(qeventsizeofchecker.h QtTest qtestspontaneevent.h)
|
|
katie_generate_obsolete(qspontanekeyevent.h QtTest qtestspontaneevent.h)
|
|
katie_generate_obsolete(qtestaccessibility.h QtTest qtestaccessible.h)
|
|
katie_generate_obsolete(qtestaccessibilityevent.h QtTest qtestaccessible.h)
|
|
katie_generate_obsolete(qtestdelayevent.h QtTest qtestevent.h)
|
|
katie_generate_obsolete(qtesteventlist.h QtTest qtestevent.h)
|
|
katie_generate_obsolete(qtestkeyclicksevent.h QtTest qtestevent.h)
|
|
katie_generate_obsolete(qtestkeyevent.h QtTest qtestevent.h)
|
|
katie_generate_obsolete(qtestmouseevent.h QtTest qtestevent.h)
|
|
katie_generate_obsolete(qttestgui.h QtTest qtest_gui.h)
|
|
katie_generate_obsolete(qdomattr.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomcdatasection.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomcharacterdata.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomcomment.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomdocument.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomdocumentfragment.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomdocumenttype.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomelement.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomentity.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomentityreference.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomimplementation.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomnamednodemap.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomnode.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomnodelist.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomnotation.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomprocessinginstruction.h QtXml qdom.h)
|
|
katie_generate_obsolete(qdomtext.h QtXml qdom.h)
|
|
katie_generate_obsolete(qxmlattributes.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlcontenthandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmldtdhandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmldeclhandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmldefaulthandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlentityresolver.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlerrorhandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlinputsource.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmllexicalhandler.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmllocator.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlnamespacesupport.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlparseexception.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlreader.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlsimplereader.h QtXml qxml.h)
|
|
katie_generate_obsolete(qxmlstreamattribute.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamattributes.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamentitydeclaration.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamentitydeclarations.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamentityresolver.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamnamespacedeclaration.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamnamespacedeclarations.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamnotationdeclaration.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamnotationdeclarations.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamreader.h QtXml qxmlstream.h)
|
|
katie_generate_obsolete(qxmlstreamwriter.h QtXml qxmlstream.h)
|
|
# aliases are not handled by the incfsck script on purpose
|
|
katie_generate_obsolete(qx11info.h QtGui qx11info_x11.h)
|
|
katie_generate_obsolete(qx11embedcontainer.h QtGui qx11embed_x11.h)
|
|
katie_generate_obsolete(qx11embedwidget.h QtGui qx11embed_x11.h)
|
|
# those have shuffled from QtDesigner to QtUiTools
|
|
katie_generate_obsolete(customwidget.h QtDesigner ../QtUiTools/customwidget.h)
|
|
katie_generate_obsolete(qdesignercustomwidgetinterface.h QtDesigner ../QtUiTools/customwidget.h)
|
|
|
|
katie_string_wrap("${KATIE_DEFINITIONS}" KATIE_DEFINITIONS)
|
|
katie_git_checkout("${GIT_EXECUTABLE}" KATIE_GIT)
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/cmake/KatieConfig.cmake
|
|
${CMAKE_BINARY_DIR}/KatieConfig.cmake
|
|
@ONLY
|
|
)
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/cmake/KatieConfigVersion.cmake
|
|
${CMAKE_BINARY_DIR}/KatieConfigVersion.cmake
|
|
@ONLY
|
|
)
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/cmake/ld.so.conf.cmake
|
|
${CMAKE_BINARY_DIR}/katie-${KATIE_ARCHITECTURE}.conf
|
|
@ONLY
|
|
)
|
|
|
|
configure_file(
|
|
${CMAKE_SOURCE_DIR}/cmake/profile.sh.cmake
|
|
${CMAKE_BINARY_DIR}/katie-${KATIE_ARCHITECTURE}.sh
|
|
@ONLY
|
|
)
|
|
|
|
install(
|
|
DIRECTORY mkspecs
|
|
DESTINATION ${KATIE_CMAKE_RELATIVE}
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_BINARY_DIR}/KatieConfig.cmake
|
|
${CMAKE_BINARY_DIR}/KatieConfigVersion.cmake
|
|
${CMAKE_SOURCE_DIR}/cmake/Qt4UseFile.cmake
|
|
${CMAKE_SOURCE_DIR}/cmake/modules/KatieMacros.cmake
|
|
DESTINATION ${KATIE_CMAKE_RELATIVE}
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
EXPORT KatieLibraryTargets
|
|
NAMESPACE Katie::
|
|
DESTINATION ${KATIE_CMAKE_RELATIVE}
|
|
FILE KatieLibraryTargets.cmake
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
EXPORT KatieBinaryTargets
|
|
NAMESPACE Katie::
|
|
DESTINATION ${KATIE_CMAKE_RELATIVE}
|
|
FILE KatieBinaryTargets.cmake
|
|
COMPONENT Devel
|
|
)
|
|
|
|
install(
|
|
FILES ${CMAKE_BINARY_DIR}/katie-${KATIE_ARCHITECTURE}.conf
|
|
DESTINATION ${KATIE_LDCONF_RELATIVE}
|
|
COMPONENT Runtime
|
|
)
|
|
|
|
install(
|
|
FILES ${CMAKE_BINARY_DIR}/katie-${KATIE_ARCHITECTURE}.sh
|
|
DESTINATION ${KATIE_PROFILE_RELATIVE}
|
|
COMPONENT Runtime
|
|
)
|
|
|
|
katie_string_unwrap("${KATIE_COMPONENTS}" KATIE_COMPONENTS "Kt")
|
|
katie_string_unwrap("${KATIE_TOOLS}" KATIE_TOOLS)
|
|
|
|
add_custom_target(install-devel
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=Devel -P cmake_install.cmake
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
)
|
|
|
|
add_custom_target(install-runtime
|
|
DEPENDS ${KATIE_COMPONENTS}
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=Runtime -P cmake_install.cmake
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
)
|
|
|
|
add_custom_target(install-tools
|
|
DEPENDS ${KATIE_TOOLS}
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=Tools -P cmake_install.cmake
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
)
|
|
|
|
add_custom_target(install-doc
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=Doc -P cmake_install.cmake
|
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
)
|
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|