Changeset View
Changeset View
Standalone View
Standalone View
untranslatable_pages/cmake_settings_for_developers.rst
Context not available. | |||||
6 | 6 | | |||
---|---|---|---|---|---|
7 | :authors: - Boudewijn Rempt <boud@valdyas.org> | 7 | :authors: - Boudewijn Rempt <boud@valdyas.org> | ||
8 | :license: GNU free documentation license 1.3 or later. | 8 | :license: GNU free documentation license 1.3 or later. | ||
9 | 9 | | |||
10 | .. _cmake_settings_for_developers: | 10 | .. _cmake_settings_for_developers: | ||
11 | 11 | | |||
12 | ============================= | 12 | ============================= | ||
13 | CMake Settings for Developers | 13 | CMake Settings for Developers | ||
14 | ============================= | 14 | ============================= | ||
15 | 15 | | |||
16 | The `CMake <https://www.cmake.org>`_ build system generators used by Krita is one of the most used build system generatorss in the C++ world. A build system is a system that describes how a an application should be built from source code. CMake generates a build system from the information given in the CMakeLists.txt and *.cmake files. It is a complete but rather unusual language. | 16 | The `CMake <https://www.cmake.org>`_ build system generators used by Krita is one of the most used build system generatorss in the C++ world. A build system is a system that describes how a an application should be built from source code. CMake generates a build system from the information given in the CMakeLists.txt and `*.cmake` files. It is a complete but rather unusual language. | ||
17 | 17 | | |||
18 | If you start working on Krita, you will need knowledge of two things: how to run the cmake generator, and which variables are important there, and how to edit the CMakeLists.txt files. This page tells you how to run the cmake generator. | 18 | If you start working on Krita, you will need knowledge of two things: how to run the cmake generator, and which variables are important there, and how to edit the CMakeLists.txt files. This page tells you how to run the cmake generator. | ||
19 | 19 | | |||
Context not available. | |||||
22 | .. code:: | 22 | .. code:: | ||
23 | 23 | | |||
24 | cmake -DSOME_CMAKE_VARIABLE=SOME_VALUE ../path/to/source | 24 | cmake -DSOME_CMAKE_VARIABLE=SOME_VALUE ../path/to/source | ||
25 | 25 | | |||
26 | That is, every option is prefixed with -D, followed by a usually uppercase variable name, the equal sign and the value. The following variables are important for Krita. | 26 | That is, every option is prefixed with -D, followed by a usually uppercase variable name, the equal sign and the value. The following variables are important for Krita. | ||
27 | 27 | | |||
28 | You cannot build Krita inside the source directory, so you need to give the path to the source directory, where the top-level CMakeLists.txt file is found. | 28 | You cannot build Krita inside the source directory, so you need to give the path to the source directory, where the top-level CMakeLists.txt file is found. | ||
Context not available. | |||||
76 | 76 | | |||
77 | This option enables the experimental lock free hash table. This is ON by default at the moment. | 77 | This option enables the experimental lock free hash table. This is ON by default at the moment. | ||
78 | 78 | | |||
79 | FOUNDATION_BUILD | 79 | FOUNDATION_BUILD | ||
80 | ---------------- | 80 | ---------------- | ||
81 | 81 | | |||
82 | This option is for packaging Krita on systems that do not have the default color themes shipped by KDE Plasma. | 82 | This option is for packaging Krita on systems that do not have the default color themes shipped by KDE Plasma. | ||
Context not available. | |||||
96 | 96 | | |||
97 | Use Python 2 instead of Python 3. Only to be used when integrating Krita in a python2-based VFX pipeline. | 97 | Use Python 2 instead of Python 3. Only to be used when integrating Krita in a python2-based VFX pipeline. | ||
98 | 98 | | |||
99 | BUILD_KRITA_QT_DESIGNER_PLUGINS | 99 | BUILD_KRITA_QT_DESIGNER_PLUGINS | ||
100 | ------------------------------- | 100 | ------------------------------- | ||
101 | 101 | | |||
102 | OFF by default, enable this to build plugins for Qt Designer/Qt Creator so you can add Krita specific widgets to .ui files. | 102 | OFF by default, enable this to build plugins for Qt Designer/Qt Creator so you can add Krita specific widgets to .ui files. | ||
Context not available. |