Commit Graph

69 Commits (master)

Author SHA1 Message Date
Unknown 6aa19317a3 Set CMake_BUILD_TYPE to Release if not specified 2019-02-17 07:51:33 +01:00
adrido 153ae78ab5 Replace getopt with ketopt 2018-12-28 01:28:53 +01:00
adrido 4aaa8b166b Update buildsystem 2018-10-29 16:49:18 +01:00
Unknown cbe326a798 Add more info to versioninfo 2018-05-27 07:17:10 +02:00
Unknown cc65df91ee Refactor CmakeLists.txt 2018-05-06 09:44:25 +02:00
Unknown 6f4445a596 Get version from Git 2018-05-06 09:44:08 +02:00
Unknown cc3ef4cbca Add RC file for Windows 2018-04-27 04:02:41 +02:00
Unknown b195c126d2 Get postgresql working 2018-04-24 17:47:05 +02:00
Unknown 84ba5d9948 Add support for leveldb 2018-03-26 09:25:19 +02:00
Unknown 903bafe4d3 Allow CPack to generate a package 2018-03-24 07:49:21 +01:00
Unknown 2c978345c9 Redo CMake structure to be usable with VisualStudio+vcpkg 2018-03-23 12:34:52 +01:00
adrido 6b941202b8 Abstracting PaintEngine 2017-10-16 12:05:17 +02:00
Rogier cbfb7e6979 Make cpack fail if the current git commit id does not match the one at cmake time.
cpack would happily build a package with an incorrect version.
2016-08-03 11:05:12 +02:00
Rogier 9a9b83e638 Detect libstdc++ ABI incompatibility to allow compiling using clang again.
Currently, this is only relevant when using LevelDB, and a newer version
of libstdc++, which uses a different C++ ABI which clang does not yet support.

A symptom of the problem are unexpected linking failures, caused by undefined
symbols, while other symbols from the same library do not cause errors.

The solution is a workaround, that avoids using the offending symbols, at the
cost of reduced functionality. As this currently only affects the text of an
error message, the impact is minor.
2016-06-28 11:44:09 +02:00
Rogier ee0903ea78 Move empty.cpp to the cmake directory
It is only needed for a compilation test by cmake.
2016-06-28 11:43:46 +02:00
Rogier 8436a92c57 Include targeted installation location in .tar.gz archive file name 2016-06-28 11:43:39 +02:00
Rogier 8e70740c7e Fix building on non-rpm systems when rpm is not installed 2016-06-25 09:41:04 +02:00
Rogier fade10aa1b Improve rpm detection and rpm package naming
Also don't build rpm packages on debian, even if rpm is installed.
2016-06-18 11:27:33 +02:00
Rogier a35ebed4ab Allow setting packaging version
I.e. the extra version number that gets appended to the software
version number, and that should be incremented if a newer package
is built from the same software version, and installed or distributed.
2016-06-18 10:06:54 +02:00
Rogier 38c0ee9962 Add date of generation and generator to build_config.h
In preparation for MSVC compilation support
2016-05-31 21:37:58 +02:00
Rogier 82ba727a2d Rename cmake_config.h to build_config.h, and don't make it optional
In preparation for MSVC compilation support
2016-05-31 21:37:58 +02:00
Rogier 984a4e3a97 Rename the file 'version' to 'base-version'
This better reflects its purpose

Also removed a redundant check for existence of the file in CMakeLists.txt

In preparation for MSVC compilation support
2016-05-31 21:37:58 +02:00
Rogier 570ed84fd2 Convert text drawn on the map to ISO8859-2 (which is what libgd uses)
Using non-ISO8859-2 encoded text (e.g. utf-8), or anything else,
may result in garbage characters.
2016-01-17 10:37:52 +01:00
Rogier 919595c614 Add postgresql support
Supports both ShadowNinja's implementation:
  https://github.com/ShadowNinja/minetest/tree/PostgreSQL
and johnnyjoy's implementation:
  https://forum.minetest.net/viewtopic.php?f=3&t=12851
  4d537fe53a
2015-12-16 15:40:45 +01:00
Rogier c08b218f71 Add Settings class for reading config files 2015-12-16 15:17:54 +01:00
Rogier 0288064164 Generate HTML documentation (some improvements and documentation) 2015-11-26 17:43:34 +01:00
Rogier 47dd510384 Generate HTML documentation 2015-11-26 16:20:31 +01:00
Rogier 4de7e173bc Improve scripts & documentation for generating colors.txt files a bit. 2015-11-25 11:02:09 +01:00
Rogier 5e7f7c74c0 Fix building when some database libraries are not installed. 2015-10-24 17:06:11 +02:00
Rogier 46c070070a Implement an iterator for BlockPos 2015-03-10 17:47:29 +01:00
Rogier 7d3e780724 Include documentation in packages as well 2015-03-10 12:01:55 +01:00
Rogier 045540e8f9 Add rainbow colors configuration file for heightmap 2015-02-20 13:10:09 +01:00
Rogier 4476de429d Allow reading heightmap colors from file, and use separate option for nodes file 2015-02-20 13:10:09 +01:00
Rogier 3812e31fc9 Add options to generate a height map of the world.
--heightmap: generate the height map, in colors
--heightmap-grey: use shades of grey instead of colors
--sealevel <n>: define the sea level (below sea level is drawn in blue)
--heightmap-scale <f>: scale the heights by f (for the purpose of
  color selection)

When generating a heightmap, a special colors file is needed,
that defines just the blocks that should be considered part
of the ground. That means that normally, any plants, special
nodes and water should not be included.
2015-02-20 13:10:09 +01:00
Rogier 743d657bef Improve the colors of water (esp. for --drawalpha) & make lava transparent.
As the best color for water depends on the rendering parameters
(i.e. the --drawalpha mode: none, average or cumulative), two
additional colors files are provided for these alternatives.
2014-06-19 13:31:53 +02:00
Rogier 5b9d51daa1 Improve installation and package generation; add deb and rpm
Minetestmapper can now be installed into a proper directory hierarchy
(instead of all files being dumped into /usr/local/. for instance.)

Non-hierarchical installation (or creation of a non-hierarchical archive)
is also still supported, and remains the default, for backwards compatibility.

Packaging on windows remains unchanged, due to lack of infrastructure :-)
2014-06-18 10:03:20 +02:00
Rogier f6adec1bf9 Configure a better version number (partly or fully auto-computed) 2014-05-26 21:31:29 +02:00
Rogier 8d3117e8d3 Fixes to CMakeLists.txt
- Continue processing if libraries are not found (so that all missing
  libraries are reported)
- Set compiler flags correctly if CMAKE_BUILD_TYPE is not set (fixes bug #0)
- Make CMAKE_BUILD_TYPE=Release the default
- Increase optimisation level for Release
2014-05-26 21:31:29 +02:00
Rogier 2fabf991ab Make sqlite backend optional (enabled by default) 2014-05-22 10:41:48 +02:00
Rogier d707b882e8 Add redis database backend (port of sfan5's patches)
Patches included/ported:
	2553e44e8dec75d99408b56f469ff4be61c84336
	79d338a90c1a99fce9334bea5d4c296f190373fc
2014-05-22 10:41:48 +02:00
Rogier 0aee764203 Use C++11 if possible
This allows the use of more efficient (i.e. faster) data structures
like unordered_map.
2014-05-22 10:41:12 +02:00
Rogier 5e4ee45575 Move color string parsing to constructor of class Color & add a constructor using an integer
Added formats for Color constructor:
- plain interger (2^24 * alpha + 2^16 * red + 2^8 * green + blue)
- Color string consisting of:
  - '#'
  - 3, 4, 6 or 8 hex digits
2014-05-12 09:26:17 +02:00
Sfan5 56efa78cd3 Revert "Fix compiling with clang"
This problem was caused by my incorrect configuration.
2014-04-16 15:13:04 +02:00
ShadowNinja dc10bd20b1 Remove embedding of colors.txt in executable 2014-04-09 10:49:46 +02:00
ShadowNinja 251664e9c9 Fix typo in project name 2014-04-09 10:40:23 +02:00
Sfan5 90677ec67d Add package generation 2014-04-09 10:39:44 +02:00
Sfan5 82bc207697 Fix compiling with clang 2014-04-09 10:39:37 +02:00
Sfan5 0ff8f026ba Actually use the xxd binary that was found 2014-03-14 22:50:27 +01:00
Sfan5 46023f77f5 Make it (almost) compile for windows 2014-03-09 12:32:13 +01:00
Sfan5 b2896331cd Allow selecting include dir & library for zlib 2014-03-09 12:27:19 +01:00