@@ -19,7 +19,7 @@ The are several good IDEs available, including:
1919
2020===== Compiler
2121
22- You need `msvc` or `gcc`.
22+ You need `msvc` or `gcc`.
2323
2424In case you installed MS Visual Studio, then the MSVC compiler is already installed.
2525
@@ -57,7 +57,7 @@ You have the choice of building the dependencies from source or fetching pre-bui
5757The pre-build binaries are build on-the-fly, when building Fifengine on Appveyor.
5858You find MSVC 14 builds here: https://ci.appveyor.com/project/LinuxDonald/fifengine
5959
60- These builds are also included in our pre-packaged Windows development kit,
60+ These builds are also included in our pre-packaged Windows development kit,
6161the https://ci.appveyor.com/project/LinuxDonald/fife-windows-sdk/branch/master/artifacts[Fife-SDK].
6262
6363The default install location is `fifengine-dependencies` next to your `fifengine` source folder.
@@ -68,15 +68,15 @@ When you're using an alternative location, please set the library and include di
6868You can build the dependencies for Windows using MSVC.
6969
7070The CMake config file for the dependencies is `fifengine\dependencies\CMakeLists.txt`.
71- It includes the individual scripts for fetching and building dependencies.
71+ It includes the individual scripts for fetching and building dependencies.
7272They are located in the main CMake scripts folder: `fifengine\cmake\get-*.cmake`.
7373
7474Let's configure the dependencies project and then build all dependencies:
7575
7676[source,bash]
7777----
7878cmake dependencies -G "Visual Studio 14" -B../fifengine-dependencies/build
79- cmake --build ../fifengine-dependencies/build --target ALL_BUILD --config Release
79+ cmake --build ../fifengine-dependencies/build --target ALL_BUILD --config Release
8080----
8181
8282You'll now find the dependencies the `fifengine-dependencies` folder:
@@ -86,6 +86,50 @@ You'll now find the dependencies the `fifengine-dependencies` folder:
8686dir ..\fifengine-dependencies
8787dir ..\fifengine-dependencies\downloads
8888dir ..\fifengine-dependencies\includes /s
89+
90+ ==== Building Fifechan
91+
92+ Fifechan is a C++ GUI library that is required as an optional dependency for FIFE.
93+ You need to build it from source before building FIFE.
94+
95+ ===== Install Dependencies
96+
97+ Download and install the following dependencies:
98+
99+ * https://cmake.org/download/[CMake] - version 3.25 or higher
100+ * https://www.libsdl.org/download-2.0.php[SDL2] - Development libraries
101+ * https://www.libsdl.org/projects/SDL_image/[SDL2_image]
102+ * https://www.libsdl.org/projects/SDL_mixer/[SDL2_mixer]
103+ * https://www.libsdl.org/projects/SDL_ttf/[SDL2_ttf]
104+ * https://www.freetype.org/download.html[FreeType]
105+ * https://github.com/catchorg/Catch2/releases[catch2] (optional, for tests)
106+
107+ ===== Clone and Build
108+
109+ Open the Developer Command Prompt for Visual Studio, then:
110+
111+ [source,bash]
112+ ----
113+ git clone https://github.com/fifengine/fifechan.git
114+ cd fifechan
115+ mkdir _build
116+ cd _build
117+ cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=C:\fifechan ..
118+ cmake --build . --config Release
119+ cmake --install . --config Release
120+ ----
121+
122+ For Debug builds, replace `Release` with `Debug`.
123+
124+ ===== Using CMake Presets
125+
126+ Fifechan includes CMake presets. To use them:
127+
128+ [source,bash]
129+ ----
130+ cmake --preset vc17-x64-windows-rel
131+ cmake --build --preset vc17-x64-windows-rel
132+ cmake --install --preset vc17-x64-windows-rel
89133----
90134
91135==== Building Fifengine
0 commit comments