You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,23 +81,23 @@ DDNet requires additional libraries, some of which are bundled for the most comm
81
81
The following is a non-exhaustive list of build arguments that can be passed to the `cmake` command-line tool in order to enable or disable options in build time:
An optional CMake variable for setting the build type. If not set, defaults to "Release" if `-DDEV=ON` is **not** used, and "Debug" if `-DDEV=ON` is used. See `CMAKE_BUILD_TYPE` in CMake Documentation for more information.
84
+
An optional CMake variable for setting the build type. If not set, defaults to "Release" if `-DDEV=ON` is **not** used, and "Debug" if `-DDEV=ON` is used. See `CMAKE_BUILD_TYPE` in CMake Documentation for more information.
85
85
86
86
***-DPREFER_BUNDLED_LIBS=[ON|OFF]** <br>
87
-
Whether to prefer bundled libraries over system libraries. Setting to ON will make DDNet use third party libraries available in the `ddnet-libs` folder, which is the git-submodule target of the [ddnet-libs](https://github.com/ddnet/ddnet-libs) repository mentioned above -- Useful if you do not have those libraries installed and want to avoid building them. If set to OFF, will only use bundled libraries when system libraries are not found. Default value is OFF.
87
+
Whether to prefer bundled libraries over system libraries. Setting to ON will make DDNet use third party libraries available in the `ddnet-libs` folder, which is the git-submodule target of the [ddnet-libs](https://github.com/ddnet/ddnet-libs) repository mentioned above -- Useful if you do not have those libraries installed and want to avoid building them. If set to OFF, will only use bundled libraries when system libraries are not found. Default value is OFF.
88
88
89
89
***-DWEBSOCKETS=[ON|OFF]** <br>
90
-
Whether to enable WebSocket support for server. Setting to ON requires the `libwebsockets-dev` library installed. Default value is OFF.
90
+
Whether to enable WebSocket support for server. Setting to ON requires the `libwebsockets-dev` library installed. Default value is OFF.
91
91
92
92
***-DMYSQL=[ON|OFF]** <br>
93
-
Whether to enable MySQL/MariaDB support for server. Requires at least MySQL 8.0 or MariaDB 10.2. Setting to ON requires the `libmariadbclient-dev` library installed, which are also provided as bundled libraries for the common platforms. Default value is OFF.
93
+
Whether to enable MySQL/MariaDB support for server. Requires at least MySQL 8.0 or MariaDB 10.2. Setting to ON requires the `libmariadbclient-dev` library installed, which are also provided as bundled libraries for the common platforms. Default value is OFF.
94
94
95
-
Note that the bundled MySQL libraries might not work properly on your system. If you run into connection problems with the MySQL server, for example that it connects as root while you chose another user, make sure to install your system libraries for the MySQL client. Make sure that the CMake configuration summary says that it found MySQL libs that were not bundled (no "using bundled libs").
95
+
Note that the bundled MySQL libraries might not work properly on your system. If you run into connection problems with the MySQL server, for example that it connects as root while you chose another user, make sure to install your system libraries for the MySQL client. Make sure that the CMake configuration summary says that it found MySQL libs that were not bundled (no "using bundled libs").
96
96
97
97
***-DTEST_MYSQL=[ON|OFF]** <br>
98
-
Whether to test MySQL/MariaDB support in GTest based tests. Default value is OFF.
98
+
Whether to test MySQL/MariaDB support in GTest based tests. Default value is OFF.
99
99
100
-
Note that this requires a running MySQL/MariaDB database on localhost with this setup:
100
+
Note that this requires a running MySQL/MariaDB database on localhost with this setup:
101
101
102
102
```
103
103
CREATE DATABASE ddnet;
@@ -107,47 +107,47 @@ FLUSH PRIVILEGES;
107
107
```
108
108
109
109
***-DAUTOUPDATE=[ON|OFF]** <br>
110
-
Whether to enable the autoupdater. Packagers may want to disable this for their packages. Default value is ON for Windows and Linux.
110
+
Whether to enable the autoupdater. Packagers may want to disable this for their packages. Default value is ON for Windows and Linux.
111
111
112
112
***-DCLIENT=[ON|OFF]** <br>
113
-
Whether to enable client compilation. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON.
113
+
Whether to enable client compilation. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON.
114
114
115
115
***-DVIDEORECORDER=[ON|OFF]** <br>
116
-
Whether to add video recording support using FFmpeg to the client. Default value is ON.
116
+
Whether to add video recording support using FFmpeg to the client. Default value is ON.
117
117
118
118
***-DDOWNLOAD_GTEST=[ON|OFF]** <br>
119
-
Whether to download and compile GTest. Useful if GTest is not installed and, for Linux users, there is no suitable package providing it. Default value is OFF.
119
+
Whether to download and compile GTest. Useful if GTest is not installed and, for Linux users, there is no suitable package providing it. Default value is OFF.
120
120
121
121
***-DDEV=[ON|OFF]** <br>
122
-
Whether to optimize for development, speeding up the compilation process a little. If enabled, don't generate stuff necessary for packaging. Setting to ON will set CMAKE\_BUILD\_TYPE to Debug by default. Default value is OFF.
122
+
Whether to optimize for development, speeding up the compilation process a little. If enabled, don't generate stuff necessary for packaging. Setting to ON will set CMAKE\_BUILD\_TYPE to Debug by default. Default value is OFF.
123
123
124
124
***-DUPNP=[ON|OFF]** <br>
125
-
Whether to enable UPnP support for the server.
126
-
You need to install `libminiupnpc-dev` on Debian, `miniupnpc` on Arch Linux.
127
-
Default value is OFF.
125
+
Whether to enable UPnP support for the server.
126
+
You need to install `libminiupnpc-dev` on Debian, `miniupnpc` on Arch Linux.
127
+
Default value is OFF.
128
128
129
129
***-DVULKAN=[ON|OFF]** <br>
130
-
Whether to enable the vulkan backend.
131
-
On Windows you need to install the Vulkan SDK and set the `VULKAN_SDK` environment flag accordingly.
132
-
Default value is ON for Windows x86\_64 and Linux, and OFF for Windows x86 and macOS.
130
+
Whether to enable the vulkan backend.
131
+
On Windows you need to install the Vulkan SDK and set the `VULKAN_SDK` environment flag accordingly.
132
+
Default value is ON for Windows x86\_64 and Linux, and OFF for Windows x86 and macOS.
133
133
134
134
***-GNinja** <br>
135
-
Use the Ninja build system instead of Make. This automatically parallelizes the build and is generally faster. Compile with `ninja` instead of `make`. Install Ninja with `sudo apt install ninja-build` on Debian, `sudo pacman -S --needed ninja` on Arch Linux.
135
+
Use the Ninja build system instead of Make. This automatically parallelizes the build and is generally faster. Compile with `ninja` instead of `make`. Install Ninja with `sudo apt install ninja-build` on Debian, `sudo pacman -S --needed ninja` on Arch Linux.
136
136
137
137
***-DCMAKE_CXX_LINK_FLAGS=[FLAGS]** <br>
138
-
Custom flags to set for compiler when linking.
138
+
Custom flags to set for compiler when linking.
139
139
140
140
***-DEXCEPTION_HANDLING=[ON|OFF]** <br>
141
-
Enable exception handling (only works with Windows as of now, uses DrMingw there). Default value is OFF.
141
+
Enable exception handling (only works with Windows as of now, uses DrMingw there). Default value is OFF.
142
142
143
143
***-DIPO=[ON|OFF]** <br>
144
-
Enable interprocedural optimizations, also known as Link Time Optimization (LTO). Default value is OFF.
144
+
Enable interprocedural optimizations, also known as Link Time Optimization (LTO). Default value is OFF.
145
145
146
146
***-DFUSE_LD=[OFF|LINKER]** <br>
147
-
Linker to use. Default value is OFF to try mold, lld, gold.
147
+
Linker to use. Default value is OFF to try mold, lld, gold.
148
148
149
149
***-DSECURITY_COMPILER_FLAGS=[ON|OFF]** <br>
150
-
Whether to set security-relevant compiler flags like `-D_FORTIFY_SOURCE=2` and `-fstack-protector-all`. Default Value is ON.
150
+
Whether to set security-relevant compiler flags like `-D_FORTIFY_SOURCE=2` and `-fstack-protector-all`. Default Value is ON.
0 commit comments