![]() Default value is OFF to try mold, lld, gold. Default value is OFF.Įnable interprocedural optimizations, also known as Link Time Optimization (LTO). Install Ninja with sudo apt install ninja-build on Debian, sudo pacman -S -needed ninja on Arch Linux.Ĭustom flags to set for compiler when linking.Įnable exception handling (only works with Windows as of now, uses DrMingw there). This automatically parallelizes the build and is generally faster. Use the Ninja build system instead of Make. On Windows you need to install the Vulkan SDK and set the VULKAN_SDK environment flag accordingly.ĭefault value is ON for Windows x86_64 and Linux, and OFF for Windows x86 and macOS. You need to install libminiupnpc-dev on Debian, miniupnpc on Arch Linux. Whether to enable UPnP support for the server. Setting to ON will set CMAKE_BUILD_TYPE to Debug by default. If enabled, don't generate stuff necessary for packaging. Whether to optimize for development, speeding up the compilation process a little. Useful if GTest is not installed and, for Linux users, there is no suitable package providing it. Whether to add video recording support using FFmpeg to the client. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON for Windows and Linux. Packagers may want to disable this for their packages. GRANT ALL PRIVILEGES ON ddnet.* TO PRIVILEGES Note that this requires a running MySQL/MariaDB database on localhost with this setup:ĬREATE USER IDENTIFIED BY 'thebestpassword' Whether to test MySQL/MariaDB support in GTest based tests. Make sure that the CMake configuration summary says that it found MySQL libs that were not bundled (no "using bundled libs"). 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. Note that the bundled MySQL libraries might not work properly on your system. Setting to ON requires the libmariadbclient-dev library installed, which are also provided as bundled libraries for the common platforms. Requires at least MySQL 8.0 or MariaDB 10.2. Whether to enable MySQL/MariaDB support for server. Setting to ON requires the libwebsockets-dev library installed. Whether to enable WebSocket support for server. If set to OFF, will only use bundled libraries when system libraries are not found. 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 repository mentioned above - Useful if you do not have those libraries installed and want to avoid building them. Whether to prefer bundled libraries over system libraries. See CMAKE_BUILD_TYPE in CMake Documentation for more information. If not set, defaults to "Release" if -DDEV=ON is not used, and "Debug" if -DDEV=ON is used. DCMAKE_BUILD_TYPE=Īn optional CMake variable for setting the build type. 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: Alternatively see the following build arguments for how to disable some features and their dependencies ( -DVULKAN=OFF won't require Vulkan for example). See the previous section for how to get the dependencies. Note that when you build and develop locally, you should ideally use your system's package manager to install the dependencies, instead of relying on ddnet-libs submodule, which does not contain all dependencies anyway (e.g. The bundled libraries for official builds are now in the ddnet-libs submodule. $(nproc) in this case returns the number of processing units.ĭDNet requires additional libraries, some of which are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86_64) for convenience and the official builds. Pass the number of threads for compilation to make -j.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |