From debddf658571cd2a653c6ffe82bc39f245a51ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Nov 2019 18:29:47 +0100 Subject: [PATCH] doc: update UWP / Windows RT build instructions. --- doc/building.dox | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/doc/building.dox b/doc/building.dox index b2de463cf..932b6d61d 100644 --- a/doc/building.dox +++ b/doc/building.dox @@ -810,14 +810,14 @@ make it able to find the dependencies. @m_class{m-block m-primary} @par Native build of corrade-rc - You also need to have *both* target and native version of Corrade - installed, because Corrade needs to run `corrade-rc` utility on the host - system as part of the build process. If native version of `corrade-rc` is - not found on the system, cross-compilation will fail. If `corrade-rc` is - not in `PATH`, point CMake to it using - `-DCORRADE_RC_EXECUTABLE=/path/to/corrade-rc`. + For all cross-compilation except the UWP / Windows RT build, you need to + have a native version of Corrade installed, because Corrade needs to run + the `corrade-rc` utility on the host system as part of the build process. + If native version of `corrade-rc` is not found on the system, + cross-compilation will fail. If `corrade-rc` is not in `PATH`, point CMake + to it using `-DCORRADE_RC_EXECUTABLE=/path/to/corrade-rc`. -@subsection building-cross-winrt Cross-compiling for Windows RT +@subsection building-cross-winrt Cross-compiling for UWP / Windows RT As said above, you need a native build of the `corrade-rc` executable and @ref building-corrade-cross-winrt "Corrade built for Windows RT". The below @@ -833,16 +833,13 @@ SDL has support for WinRT applications --- download the source from https://www.libsdl.org/download-2.0.php and use project files from the `VisualC-WinRT` directory. Because WinRT applications run in a sandbox, it's recommended to build the library as static so you don't have to bundle all the -DLLs. Example is below, you can omit specifying `CORRADE_RC_EXECUTABLE` if -@ref building-cross-corrade-rc "natively-built corrade-rc" is accessible -through `PATH`. +DLLs. Example is below: @code{.bat} mkdir build-winrt && cd build-winrt cmake .. ^ -DCMAKE_SYSTEM_NAME=WindowsStore ^ -DCMAKE_SYSTEM_VERSION=10 ^ - -DCORRADE_RC_EXECUTABLE="C:/Sys/bin/corrade-rc.exe" ^ -DCMAKE_INSTALL_PREFIX="C:/Sys-winrt" ^ -DBUILD_STATIC=ON ^ -DWITH_SDL2APPLICATION=ON ^