Skip to content

Build: Build

Lars Toenning edited this page May 26, 2024 · 5 revisions

⚠️ Building swift is currently not possible. We are working on a solution ⚠️

swift uses CMake as a buildfile generator and can be built on Windows, macOS and Linux.

The following pages provide instructions on setting up a swift development environment. Of course, you can also use your preferred setup if it works with CMake projects.

Configuring the build process

The build process can be configured with CMake options. These can be used, for example, to disable the building of sample applications or a specific simulator plugin. For a list of all options, see the top-level CMakeLists.txt.

These options can be changed by passing them to the CMake process at configuration time, like

cmake .. -DSWIFT_BUILD_XPLANE_PLUGIN=OFF

if invoking CMake from the terminal or through options in your IDE.

Copy xswiftbus to X-Plane plugin folder

  • Build the CMake install target. This installs (copies) all built swift files into the CMAKE_INSTALL_PREFIX directory. This path is set to some system default path by default. You can change this path by passing it as an option to CMake or by setting this option in your IDE.
  • Copy the CMAKE_INSTALL_PREFIX/xswiftbus folder to your X-Plane plugin directory.

xswiftbusbuild2

Content of the xswiftbus folder

Clone this wiki locally