2022-04-18 18:53:28 +00:00
|
|
|
:github_url: https://github.com/SunshineStream/Sunshine/tree/nightly/docs/source/building/build.rst
|
|
|
|
|
|
|
|
Build
|
|
|
|
=====
|
|
|
|
Sunshine binaries are built using `CMake <https://cmake.org/>`_. Cross compilation is not
|
|
|
|
supported. That means the binaries must be built on the target operating system and architecture.
|
|
|
|
|
|
|
|
Building Locally
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Clone
|
|
|
|
^^^^^
|
|
|
|
Ensure `git <https://git-scm.com/>`_ is installed and run the following:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
git clone https://github.com/sunshinestream/sunshine.git --recurse-submodules
|
|
|
|
cd sunshine && mkdir build && cd build
|
|
|
|
|
2022-04-18 19:26:53 +00:00
|
|
|
Compile
|
|
|
|
^^^^^^^
|
2022-04-18 18:53:28 +00:00
|
|
|
See the section specific to your OS.
|
|
|
|
|
2022-04-18 19:26:53 +00:00
|
|
|
- :ref:`Linux <building/linux:linux>`
|
|
|
|
- :ref:`MacOS <building/macos:macos>`
|
|
|
|
- :ref:`Windows <building/windows:windows>`
|
|
|
|
|
2022-04-18 18:53:28 +00:00
|
|
|
Remote Build
|
|
|
|
------------
|
|
|
|
It may be beneficial to build remotely in some cases. This will enable easier building on different operating systems.
|
|
|
|
|
|
|
|
#. Fork the project
|
|
|
|
#. Activate workflows
|
|
|
|
#. Trigger the `CI` workflow manually
|
|
|
|
#. Download the artifacts/binaries from the workflow run summary
|