366 Commits

Author SHA1 Message Date
Unknown
72d29f21f0 Fix access to uninitialized variable 2018-04-15 12:59:47 +02:00
Unknown
456189fd16 Refactor porting 2018-04-15 12:31:41 +02:00
Unknown
b5b3d29fa3 Tidy up Color 2018-04-14 12:37:28 +02:00
Unknown
b0eb0675d7 Refactor DataFileParser out of TileGenerator 2018-04-14 09:07:45 +02:00
Unknown
685b136563 Modernize db-sqlite3 2018-04-11 19:16:55 +02:00
Unknown
467e7cea54 Always use unordered map/set 2018-04-08 07:55:19 +02:00
Unknown
0292669a5e Use vector instead of ustring 2018-04-08 07:27:35 +02:00
Unknown
fb21462e8d strcasecmp might already defined in libgd header 2018-04-08 05:31:16 +02:00
Unknown
3e30542fe1 Implement time messurement 2018-04-08 05:30:29 +02:00
Unknown
de634f68c9 Leveldb fix 2018-03-27 10:14:07 +02:00
Unknown
c9219874e3 Refactor mapper class 2018-03-27 10:04:12 +02:00
Unknown
10aa0d2112 Add appveyor.yml for Appveyor builds 2018-03-26 09:49:01 +02:00
Unknown
84ba5d9948 Add support for leveldb 2018-03-26 09:25:19 +02:00
adrido
9d55309f01
Add travis and linux build support 2018-03-25 05:46:46 +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
8d24dc454f Merge branch 'abstract-paintengine' 2017-10-16 12:21:02 +02:00
adrido
6b941202b8 Abstracting PaintEngine 2017-10-16 12:05:17 +02:00
adrido
020eafd7c6 Support for >=27 Mapblocks 2017-02-27 06:53:22 +01:00
Rogier
a270c6077b Add an option to prevent keeping sqlite3 database locked for too long
While prescanning a large database, minetestmapper may keep the database
locked for too long, causing minetest to complain, and even bail out
sometimes. Minetest will print warnings like:

	SQLite3 database has been locked for <duration>

The new option --sqlite3-limit-prescan-query-size limits the number
of records queried from the database in a single query, thus limiting
the duration of the lock.

If minetest kept the database locked for 1 second or more, *and* if
the database was modified in that time, minetestmapper will issue a warning,
and suggest using --sqlite3-limit-prescan-query-size.
2016-08-03 12:14:42 +02:00
Rogier
aa4d16ec96 Fix name of a variable in db-sqlite3.*
m_BlockPosList -> m_blockPosList
2016-08-03 11:31:38 +02:00
Rogier
2f4a917bb1 Add a function to obtain relative millisecond-timestamps
'Relative' in the sense that they can only sensibly compared to
another time value obtained using the same function during the
same program invocation.
2016-08-03 11:31:38 +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
1ea50597a9 Fix compilation failure on FreeBSD using gcc4.x
(clang & gcc5 worked fine...)
2016-07-18 10:17:54 +02:00
Rogier
5629ac22df Remove some old debug code
Which also happened to cause compilation failure on FreeBSD + gcc
2016-07-18 10:17:47 +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
a08af6d0c6 Fix misleading indentation & improve code clarity
Primarily to prevent gcc6 complaining about it, as in practise,
there was no impact on behavior or correctness at all.

At the same time, the code in question was adapted slightly to
clarify the intentions and effects.
2016-06-25 09:41:04 +02:00
Rogier
ecc93602fc gcc6 fix: main must be a function now...
The error was not in minetestmapper itself, but in the build infrastructure.
2016-06-25 09:41:04 +02:00
Rogier
7cfc0f9740 Small update to README.rst 2016-06-18 18:25:52 +02:00
Rogier
66483b2c45 Update Changelog 2016-06-18 18:25:52 +02:00
addi
2c2536acd8 Define WIN32 for x64 too to work around the snappy bug 2016-06-18 11:49:50 +02:00
addi
050c2ce6a3 Define _CRT_SECURE_NO_WARNINGS on release build mode
This disables complaints about fopen, getenv, strerror (etc.) being
considered deprecated (by Microsoft).
2016-06-18 11:46:36 +02:00
addi
445071cad5 Fix various compiler warnings on MSVC
I tried to avoid casts whereever it was possible, but for some cases it wasn't.
2016-06-18 11:45:02 +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
fac2d38589 Make minetestmapper compile on fedora 2016-06-18 00:31:02 +02:00
Rogier
4d07f06362 Remove a bit of unneeded & unused code. 2016-06-17 10:05:11 +02:00
Rogier
6a4c2aeb02 Fix compiler warning (introduced by gcc5) 2016-06-14 18:17:44 +02:00
Rogier
12d0276da7 Fix building without python-docutils installed 2016-06-14 17:24:53 +02:00
addi
67b79f5851 Fix --prescan-world=disabled-force does not work 2016-06-14 04:32:36 +02:00
Rogier
9d7e6b6f58 Create new release (20160531) 2016-05-31 22:02:43 +02:00
Rogier
5eb44bad4b Merge branch 'windows-msvc-compilation' 2016-05-31 22:02:15 +02:00
adrido
8c911257ac Update documentation for MSVC build support 2016-05-31 21:44:34 +02:00
adrido
db3879aeaa Add Batch script to update versioninfo.h file 2016-05-31 21:37:58 +02:00
adrido
a5a6f6353c Assume that libgd.lib is called "libgd.lib" 2016-05-31 21:37:58 +02:00
adrido
95323cde3a Add wingetopt and configure include folder
wingetopt was taken from https://github.com/alex85k/wingetopt
2016-05-31 21:37:58 +02:00
adrido
d61cbdde4f Add dirent.h and configure include folder
dirent.h was taken from https://github.com/tronkko/dirent
2016-05-31 21:37:58 +02:00