FASTBuild.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. FASTBuild
  2. =========
  3. Generates a ``fbuild.bff`` file, which can be used to build the project with
  4. `FASTBuild <https://www.fastbuild.org/docs/home.html>`_.
  5. Usage
  6. -----
  7. Specify the generator when invoking :manual:`cmake(1)`:
  8. .. code-block:: shell
  9. cmake [<options>] -G FASTBuild -B <path-to-build> [-S <path-to-source>]
  10. This writes a FASTBuild configuration file named ``fbuild.bff`` into
  11. ``<path-to-build>``.
  12. .. note::
  13. This generator also produces IDE project files for Visual Studio and Xcode,
  14. which are placed under:
  15. * ``<path-to-build>/VisualStudio`` – Visual Studio solution and projects
  16. * ``<path-to-build>/XCode`` – Xcode workspace and projects
  17. These IDE files can be generated by building ``xcode`` or ``solution`` targets
  18. and will build using FASTBuild as the backend.
  19. Configuration Variables
  20. -----------------------
  21. The following variables can be used to configure this generator:
  22. * :variable:`CMAKE_FASTBUILD_CACHE_PATH`
  23. * :variable:`CMAKE_FASTBUILD_CAPTURE_SYSTEM_ENV`
  24. * :variable:`CMAKE_FASTBUILD_COMPILER_EXTRA_FILES`
  25. * :variable:`CMAKE_FASTBUILD_ENV_OVERRIDES`
  26. * :variable:`CMAKE_FASTBUILD_TRACK_BYPRODUCTS_AS_OUTPUT`
  27. * :variable:`CMAKE_FASTBUILD_USE_LIGHTCACHE`
  28. * :variable:`CMAKE_FASTBUILD_VERBOSE_GENERATOR`
  29. Notes
  30. -----
  31. * This generator does not support directories as outputs of custom commands.
  32. If you do specify a directory as an output, it should be marked with the
  33. ``SYMBOLIC`` property to avoid incorrect behavior.
  34. * It is highly advised to use custom commands with only one output.
  35. If multiple outputs are specified, the generator will emit an additional
  36. rule to check the outputs at build time. This adds overhead and is necessary
  37. because FASTBuild natively supports only a single output per custom step.
  38. Example
  39. -------
  40. .. code-block:: shell
  41. cmake [<options>] -G FASTBuild -B <path-to-build> -DCMAKE_BUILD_TYPE=Release
  42. cmake --build <path-to-build> --target my_app
  43. This generates ``fbuild.bff`` in ``<path-to-build>`` and uses FASTBuild
  44. to build the ``my_app`` target.
  45. See Also
  46. --------
  47. * :manual:`cmake-generators(7)`
  48. * `FASTBuild Documentation <https://www.fastbuild.org/docs/documentation.html>`_