aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2022-10-13Defer searching for libintl to CMakesfan5
resolves #12800
2022-05-23Formally drop support for building with upstream Irrlichtsfan5
It stopped working with (at least) the last commit.
2022-04-08Spacing fixesShadowNinja
2022-03-09Remove direct OpenGL(ES) dependencysfan5
IrrlichtMt now provides this for us (see last commit) fixes #12041
2021-09-01Check for required libzstd APIs in cmakesfan5
It's very unlikely that anyone uses a zstd version this old, but if they do fail early.
2021-08-31Switch MapBlock compression to zstd (#10788)lhofhansl
* Add zstd support. * Rearrange serialization order * Compress entire mapblock Co-authored-by: sfan5 <sfan5@live.de>
2021-07-27Take advantage of IrrlichtMt CMake target (#11287)JosiahWI
With the CMake changes to IrrlichtMt, it's now possible to use a target for IrrlichtMt. Besides greatly improving the ease of setting up IrrlichtMt for users building the client, it removes the need for Minetest's CMake to include transitive dependencies such as image libraries, cleaning it up a tiny bit. The PR works by finding the IrrlichtMt package and linking to the target it provides. If the package isn't found and it isn't building the client, it will still fall back to using just the headers of old Irrlicht or IrrlichtMt.
2021-06-05Fix check that given IRRLICHT_LIBRARY existssfan5
2021-05-30Remove unused version detection from FindLuaJIT.cmakesfan5
2021-04-28Add helpful error messages if Irrlicht library / include dir are set ↵sfan5
incorrectly (#11232)
2021-04-16Fix ignored OpenGLES2 include path and cmake warningsfan5
2021-03-26Adjust build config for Irrlicht changes (again)sfan5
2021-03-12Clean up cmake DLL installation and other minor thingssfan5
2021-03-09Switch Irrlicht dependency to our own forksfan5
-> https://github.com/minetest/irrlicht
2021-03-07Set ENABLE_SYSTEM_JSONCPP to TRUE by defaultsfan5
2020-04-28cmake: Silence warnings. (#9750)orbea
Fixes https://github.com/minetest/minetest/issues/9734
2019-11-17Fix find_path for newer jsoncpp installationsWilliam Breathitt Gray
The upstream JsonCpp project has renamed the `json/features.h` file to `json/json_features.h`. This patch fixes the JsonCpp installation search by looking for `json/allocator.h` which has not been renamed on newer versions of JsonCpp. Fixes: https://github.com/minetest/minetest/issues/9119
2019-08-18Find LuaJIT headers on vcpkgUnknown
luajit headers were moved into a subdirectory to avoid conflicts with plain lua
2019-08-04Clean up FindOpenGLES2.cmakesfan5
2019-06-10Add compatibility to vcpkg buildsystem (#8317)adrido
2019-02-03DragonFly BSD is somewhat identical to FreeBSD (#8159)Leonid Bobrov
2018-06-26Fix libgmp detection (#7488)Leonid Bobrov
2018-05-08Fix luajit include not being foundrubenwardy
2017-10-30Initial Haiku support (#6568)miqlas
* Iitial Haiku support
2017-04-07Fix cmake library default build problem since moving to lib/Loic Blot
Also make Lua library check a cmake module
2017-04-02Update embedded jsoncpp from unk version to 0.10.6 + move libs to lib/ ↵Loïc Blot
instead of src/ (#5473) * Update embedded jsoncpp from unk version to 0.10.6 0.10.6 is last release without c++11 * Make jsoncpp more compliant with its amalgamate Jsoncpp cpp file should be upper, make the library like it does in amalgamate * Reorganization: move minetest embedded libs outside of source tree to /lib * Fix a dead grep in LINT
2016-08-10Fixes for compiling with a newer (system) jsoncpp (#4429)Rogier-5
* Move included json code to jsoncpp subdirectory This is needed to avoid having to specify the minetest src directory as a system include when fixing the json includes. * Fix json includes They used "", so that the compiler searches the project's directory first. The result was that when compiling with a system jsoncpp, the project's own version of json.h was still included, instead of the system version. The includes now use <>, so a system location, or one specified with '-Ilocation' is searched only. * Fix for jsoncpp deprecated function warning When compiling with a newer version of jsoncpp (and ENABLE_SYSTEM_JSONCPP=true), jsoncpp emits a warning about a deprecated function that minetest uses.
2016-05-16Really fix ncurses lookup on Arch Linuxsfan5
Commit 27ee8d8943080a5dd735c9faa47c726604bafdff forgot to add the paths without ncursesw/ to the find_path() call
2016-04-08Fix ncurses lookup on Arch LinuxDavid Knapp
Arch Linux doesn't put it's ncursesw includes inside an ncursesw directory. This script ends up setting USE_CURSES as true, but doesn't pick up any of the headers. https://bugs.archlinux.org/task/13994
2015-12-05Improve LuaJIT detectionFerdinand Thiessen
On openSUSE luajit is not detected correctly. This is because openSUSE is using a lua version suffix, like other Linux distributions do it also. So the include directory is: include/luajit-5_1-2.0
2015-11-06Add server side ncurses terminalest31
This adds a chat console the server owner can use for administration or to talk with players. It runs in its own thread, which makes the user interface immune to the server's lag, behaving just like a client, except timeout. As it uses the same console code as the f10 console, things like nick completion or a scroll buffer basically come for free. The terminal itself is written in a general way so that adding a client version later on is just about implementing an interface. Fatal errors are printed after the console exists and the ncurses terminal buffer gets cleaned up with endwin(), so that the error still remains visible. The server owner can chose their username their entered text will have in chat and where players can send PMs to. Once the username is secured with a password to prevent anybody to take over the server, the owner can execute admin tasks over the console. This change includes a contribution by @kahrl who has improved ncurses library detection.
2015-09-26FindJson: use PATH_SUFFIXES jsoncpp to find incdirIgor Gnatenko
For example, on Fedora systems jsoncpp headers is installed in `/usr/include/jsoncpp`.
2015-05-11Add LibGMPest31
Uses system provided libgmp if found, if not it falls back to mini-gmp.
2015-05-05Make Git version detection use VERSION_STRING instead of tagsShadowNinja
This fixes the problem where 0.4.12-dev versions were erroneously shown as 0.4.11-dev because the tag was added on a separate branch. It also fixes a similar issue when builders didn't fetch new tags when updating. This also removes the number-of-commits-since-tag field, since it's incompatible with this. Said field doesn't seem to be useful anyway if you have the commit hash.
2015-05-03Better version detection for shallow clonesest31
2015-03-27Fix typo in OpenGL ES 2 CMake fileShadowNinja
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
2015-03-23Fix cmake po detection bugest31
Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.
2015-02-21Improve FindIrrlicht.cmake moduleMarkus Koschany
Linux distributions prefer to link against a shared version of the Irrlicht engine instead of using embedded code copies of the same. Search for this shared version first and use that but fall back to the static version if it does not exist. This also fixes https://github.com/minetest/minetest/issues/2163
2015-01-08Remove included SQLite3ShadowNinja
2014-06-29OS X compatibility fixesMartin Doege
2013-11-17Add CURL_DLL search to show up CURL_DLL in cmake gui and don't silently ↵sapier
ignore missing CURL_DLL
2013-09-28Show git hash in version string at top left corner of windowKahrl
2013-09-15Always use builtin JThread librarykwolekr
2013-03-16build with ogles2 driverproller
2013-03-05fix link if system json lib existsproller
2013-02-22new auto masterserverproller
2012-12-21Prefer shared cURL library instead of the static one.Ilya Zhuravlev
2012-12-18Tweak CMake files for cURLsfan5
2012-12-16Added ability to fetch media from remote server (using cURL library)Ilya Zhuravlev