Commit graph

1460 commits

Author SHA1 Message Date
Gregory A Lundberg
f7bea59fe9 Finish switch to MT19937 for randomness
Coverity has been complaining about using rand() as an insecure function. As we're using it, this function is not insecure; but is also not a very good RNG. We're using MT19937 in a system-independant manner. But some uses of rand() were never converted. This converts them.

This closes the following Coverity issues:

CID 1356297
CID 1356299
CID 1356303
CID 1356304
CID 1356306
CID 1356312
CID 1356314
CID 1380163
CID 1380173
CID 1380179
CID 1380191
CID 1380198
CID 1380201
CID 1380210
CID 1380214
CID 1380215
CID 1380219
CID 1380230
CID 1380241
2017-10-26 09:28:24 +11:00
Wedge009
73fa6bc508 Minor VC project updates
* Remove dependencies on SDL2_net.lib (hasn't been required since at least 8b341411)
* Remove unnecessary backslashes introduced in dccd73d1
* Sort associated filter.

[ci skip]
2017-10-25 16:33:32 +11:00
mattsc
5d7f00b3c0 Update Xcode project 2017-10-24 20:25:11 -07:00
Charles Dang
dccd73d11f Fixup f2593034a8 (output dir not set)
[ci skip]
2017-10-20 16:52:49 +11:00
Charles Dang
f2593034a8 GUI2: moved MP Lobby and Player Info files into the multiplayer dialog subdir 2017-10-20 16:36:18 +11:00
Wedge009
3be5346051 Updating VC project files for 010237fb and c4d55647.
[ci skip]
2017-10-10 22:14:04 +11:00
galegosimpatico
8b0d7e6799 On Boost: update build scripts and documentation.
At branch 'doc-from-discord-boost-discussion-20170926'.

The build documentation and scripts were slightly out of date about
Boost. This commit makes a (probably interim) update to them.

(CMakeLists.txt|SConstruct): `wesnoth` won't build using Boost earlier
than '1.50.0'. Boost 1.50.0 changed the location of version 3 of Boost
filesystem, from 'boost/filesystem/v3/' (e.g. for
'using boost::filesystem::v3::path;') to 'boost/filesystem/' (e.g. for
'using boost::filesystem::path;', enforced since the very introduction
of 'src/filesystem_boost.cpp'), making it incompatible unless using
precompiler directives for supporting backwards versions of Boost
filesystem prior than '1.50.0'. Using Boost 1.50.0 (and 51, 52 etc.)
`wesnoth` is able build and run. I checked using `ldd` that I am right
about the run time environment.

INSTALL.md: Requirement of Boost libraries version up to date.

projectfiles/VC12/README.md: Requirement of Boost libraries up to
date, only the statement of which one is the minimum version, not the
rest of the build guide for Boost as requirement.

.gitignore: Add KDevelop backup documents.
2017-10-06 20:38:50 +03:00
Charles Dang
bc86ce762d Pre-release version bump
[ci skip]

A serious issue was discovered in the 1.13.9 release, so we're releasing 1.13.10 now.
2017-09-22 14:22:20 -04:00
Charles Dang
e47ea7fded Pre-release version bump
[ci skip]
2017-09-21 23:05:30 -04:00
Sofartin
a672f3c8a6 Fix for error: unused typedef in Xcode builds
This PR fixes this:
```
10:43:06 In file included from /Users/user/.jenkins/workspace/Wesnoth/src/color_range.cpp:24:
10:43:06 In file included from ../../src/map/map.hpp:22:
10:43:06 In file included from ../../src/terrain/translation.hpp:29:
10:43:06 In file included from Headers/boost/multi_array.hpp:21:
10:43:06 In file included from Headers/boost/multi_array/base.hpp:28:
10:43:06 Headers/boost/multi_array/concept_checks.hpp:42:43: error: unused typedef 'index_range' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index_range index_range;
10:43:06                                           ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:43:37: error: unused typedef 'index' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index index;
10:43:06                                     ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:53:43: error: unused typedef 'index_range' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index_range index_range;
10:43:06                                           ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:54:37: error: unused typedef 'index' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index index;
10:43:06                                     ^
10:43:06 4 errors generated.
```
2017-09-21 14:26:21 -04:00
Jyrki Vesterinen
c4d556475e Add sdl/userevent.hpp to the Visual Studio project
Follow-up for c6f523f8cd.

[ci skip]
2017-09-17 16:04:32 +03:00
Wedge009
98c0443d9a Properly update MSVC project files for new fs_commit files (cb99d90d and 28c51796)
[ci skip]
2017-09-15 17:29:38 +10:00
Charles Dang
cb99d90dc0 Updated MSVC campaignd projectfile for 28c5179636
[ci skip]
2017-09-15 10:29:12 +11:00
Sofartin
b441b375b4 Fixed Xcode project build (#1907)
I added new source files and removed old ones.
Xcode project now works
2017-08-19 22:38:12 -04:00
Wedge009
50818594ea Add missing configuration for VC Release build.
[ci skip]
2017-08-16 18:49:53 +10:00
Charles Dang
78002951dd Update CB projectfile for 25a0d09 2017-08-15 11:23:52 +11:00
Celtic Minstrel
25a0d099a9 Enable sorting campaign list in chronological or lexicographical order 2017-08-14 12:36:07 -04:00
Charles Dang
bc3f72b45b Update CB projectfile for 4e4d7b527
This is the same fix as applied to Scons in a3d884ef.
2017-07-26 22:29:22 +11:00
Sofartin
fd77dd8115 Add revision info inside macOS releases. (#1858)
I added 'autorevision.sh' script inside Xcode project. Now DEBUG targets will contain revision number.
This script is used in CMAKE 'project' and I just added it also to Xcode project.
2017-07-25 19:56:22 -04:00
Sofartin
dd5983b176 Updated Xcode project. (#1859)
I added missing function_gamestate.*pp files inside Xcode project.
2017-07-23 13:02:05 -04:00
Sofartin
4d41c8aa08 Removed duplicates inside project file. (#1854) 2017-07-23 10:56:03 -04:00
DisherProject
b790184ece Add new file to CB projectfile 2017-07-09 17:26:49 +11:00
Wedge009
1fe589cf99 Add missing Release build from 4bd1fa71.
[ci skip]
2017-07-01 11:53:30 +10:00
Celtic Minstrel
4bd1fa7157 Allow filter formulas to use a number of previously FormulaAI-exclusive functions 2017-06-24 19:07:53 -04:00
Martin Proud
5dce3a3a53 Fixed issue where libcrypto was not copied over to Frameworks during build
Removed unused libcrypto compiler flag (not needed)
2017-06-04 11:23:53 -05:00
Celtic Minstrel
933ff02800 Fix for notifications in macOS showing as not built when looking at build info in the game.
Updated the macOS project file to include a new dependency on libcrypto.
2017-06-04 10:36:01 -05:00
Charles Dang
84929f69a6 Update CB projectfile again (forgot to remove a file)
[ci skip]
2017-06-02 23:47:12 +11:00
Charles Dang
648ca5cd04 Updated CB projectfile 2017-06-02 22:52:54 +11:00
Jyrki Vesterinen
7507f3cc65 Copy string_view implementation from Boost
@gfgtdf asked me for this in IRC.
2017-06-02 14:24:29 +03:00
Jyrki Vesterinen
9c1b9af525 Use std::unique_ptr to manage the layout and context in pango_text
This makes it easier for one canvas to manage multiple layouts.
2017-06-02 13:54:37 +03:00
Charles Dang
1e28a54cf2 Update CodeBlocks projectfiles for Boost 1.64
Also added a missing include to the wesnothd projfile.
2017-06-01 10:53:04 +11:00
Wedge009
82f7568bb2 Properly update VC project files for 56433d12.
[ci skip]
2017-05-24 15:54:08 +10:00
Charles Dang
922cc201bc Updated CB projectfile
[ci skip]
2017-05-23 10:02:37 +11:00
Celtic Minstrel
80a87d0b49 Update MSVC project 2017-05-22 14:39:20 -04:00
Jyrki Vesterinen
56433d12a3 Merge branch 'login_save_crypt' 2017-05-22 20:10:09 +03:00
mattsc
451e22ddda Update Xcode project 2017-05-22 07:24:01 -07:00
Charles Dang
246ea98dd9 GUI2: moved common swap_grid util function into new widget_helpers file 2017-05-22 14:50:16 +11:00
Celtic Minstrel
96ca0b026e Replace config_of with new variadic config constructor 2017-05-21 16:27:46 -04:00
mattsc
a774ebad09 Update Xcode project 2017-05-19 08:34:29 -07:00
Jyrki Vesterinen
5bd52c2063 Update Visual Studio project 2017-05-19 06:29:40 +03:00
Charles Dang
db582c09ea Removed iterator_extend util class
The WMI container was the last use of it, and there are similar equivalents in boost if we ever need
such a thing in the future.
2017-05-19 06:58:34 +11:00
Charles Dang
1ea8e0f05c Renamed wmi_container to wmi_manager
Since it's not a container anymore, it shouldn't be called such.
2017-05-19 06:50:57 +11:00
Jyrki Vesterinen
fb8506dbac Fix build with Visual Studio
First, VS2015 doesn't appear to support importing alias templates directly,
so let's make an alias template ourselves and import every alias we need.

That approach doesn't work with VS2013, apparently due to lack of support
for expression SFINAE. Thus, we now use our custom alias templates on
VS2013.

Also, I moved type_trait_aliases.hpp to the wesnothlib project where it
belongs.

Note that because of requiring expression SFINAE on VS2015, building
Wesnoth on VS2015 now requires that Update 1 or above is installed.
2017-05-16 21:08:26 +03:00
Wedge009
4d84f08354 Update VC projects for 13b00f73, cdaa588e, and 3fce91a8.
[ci skip]
2017-05-15 19:37:43 +10:00
Charles Dang
07791257bc Updated CB projectfile
[ci skip]
2017-05-15 18:12:44 +11:00
Charles Dang
f497b02ad9 Updated CB projectfile
[ci skip]
2017-05-15 17:35:59 +11:00
Charles Dang
bfa5ec1619 Pre-release version bump 2017-05-14 10:12:20 +11:00
Jyrki Vesterinen
692013272b Visual Studio: always treat warning C4239 as an error
See https://msdn.microsoft.com/en-us/library/186yxbac.aspx

Suggested by @CelticMinstrel.

[ci skip]
2017-05-13 12:58:43 +03:00
Celtic Minstrel
c9191c9812 Add OpenSSL's libcrypto as a dependency
This also removes the included SHA1 and MD5 implementations
in favour of those from OpenSSL.

Thanks to @jyrkive for helping to get the CMake build working and
ensuring the game still compiles with OpenSSL 1.1.0.
(The SHA_xxx() aliases were removed in OpenSSL 1.1.0.)
2017-05-12 15:57:13 -04:00
Celtic Minstrel
9365538b3b Don't store the user's password in plaintext in the prefs file
The game now supports @ or = in usernames for the purpose of saving them to a file.

Though I don't think these are allowed currently, it's probably better to
support it from the start rather than having things break if they later
become allowed.
2017-05-12 15:56:41 -04:00