-
Notifications
You must be signed in to change notification settings - Fork 33
Build: Configure
Lars Toenning edited this page Jul 19, 2025
·
2 revisions
The build configuration can be modified by inheriting from the dev-debug profile within a CMakeUserPresets.json.
- Create a CMakeUserPresets.json within the project directory.
- Add the following template
{
"version": 6,
"configurePresets": [
{
"name": "dev-build-own",
"generator": "Ninja",
"inherits": "dev-debug",
"cacheVariables": {
}
}
]
}- Change the
generatorif you use a different generator. - Add entries to
cacheVariablesto change the configuration. A list of possible entries is described below. Example:
"cacheVariables": {
"SWIFT_BUILD_UNIT_TESTS": "ON",
}- Within your IDE (or command line) select and use the new profile (here
dev-build-own)
The following configuration options are available (only options relevant for developers are listed):
-
CMAKE_BUILD_TYPE: Default CMake variable. Defaults toDebug. Can for example be set toReleaseorRelWithDebInfo -
CMAKE_INSTALL_PREFIX: Default CMake variable. Path to where swift should be installed. Only required for deployment. -
SWIFT_BUILD_UNIT_TESTS: Should unittests be built?ON/OFF -
SWIFT_BUILD_SAMPLES: Should samples be built?ONorOFF -
SWIFT_BUILD_DOCUMENTATION: Should documentation be built?ONorOFF -
SWIFT_VATSIM_SUPPORT: Build with VATSIM support. Requires thatVATSIM_AUTH_PATHis set. -
SWIFT_DEV_X_PLANE_PLUGINS_DIR: X-Plane plugin directory that is used by thecopy_xswiftbustarget to automatically copy xswiftbus to X-Plane. Should point to the X-Plane directory, e.g.../X-Plane 11/Resources/plugins
-
SWIFT_BUILD_P3D_PLUGIN: Should the P3D plugin be built?ONorOFF. Only available on Windows. This option is currently not available for the public. -
SWIFT_BUILD_MSFS_PLUGIN: Should the MSFS plugin be built?ONorOFF. Only available on Windows. This option is currently not available for the public. -
SWIFT_BUILD_MSFS2024_PLUGIN: Should the MSFS 2024 plugin be built?ONorOFF. Only available on Windows. This option is currently not available for the public. -
SWIFT_BUILD_XPLANE_PLUGIN: Should the X-Plane plugin be built?ONorOFF -
SWIFT_BUILD_XSWIFTBUS: Should xswiftbus be built?ONorOFF. Requires thatXP_SDK_PATHis set -
SWIFT_BUILD_FLIGHTGEAR_PLUGIN: Should the FlightGear plugin be built?ONorOFF -
SWIFT_BUILD_EMULATED_PLUGIN: Should the Emulated plugin be built?ONorOFF
-
VATSIM_AUTH_PATH: Path to the VATSIM Auth main directory (currently not available to the public! For internal developers: should point to the main folder of theexternalsrepository) -
XP_SDK_PATH: Path to the X-Plane SDK available for download here. Currently, version 3.0.1 is used. This variable should point to the folder that includes theCHeaders,DelphiandLibrariesdirectory.
- Home
- API documentation (Doxygen generated)
- Future of swift
- Style and Coding Standard
- Release Checklist
- Build swift
- Run swift as a developer
- Knowledgebase
- External resources
- Open Research Questions
- Aviation
- Programming
- Simulation
- Architecture