Commit graph

1784 commits

Author SHA1 Message Date
Jyrki Vesterinen
4dd1437cef Update Visual Studio project file to VS2015 toolset
I also enabled /DEBUG:FASTLINK and /LTCG:incremental to speed up compile
times. VS2015 introduces support for both switches.

(cherry-picked from commit 3555b6278c)
2018-10-07 03:17:54 +00:00
Sofartin
f1865e0ed5 Pre-release version bump 2018-03-18 17:20:13 +11:00
Sofartin
84ce193ef8 Fixed Xcode project after #2647 2018-03-16 12:51:41 -05:00
Charles Dang
2a6ba6924b Updated VS projectfile
[ci skip]
2018-03-17 02:28:59 +11:00
Sofartin
e8da52f4c4 Fixed Xcode Project after dfc42e8 2018-03-15 11:18:30 +02:00
newfrenchy83
e14e3281fc
Update wesnoth.cbp 2018-03-14 14:08:29 -05:00
Charles Dang
dfc42e8a8d Use SDL_Image to handle saving PNG screenshots instead of SDL_SavePNG
When iceiceice (@cbeck88) added "save screenshots as PNGs" support back in 2014
(8dfdc6b185) we had yet to switch to SDL 2. At the
time, SDL_Image didn't provide any method of saving PNG files on its own. However,
it does as of SDL_Image 2.0.0.

A small caveat is that this built-in PNG save functionality is a bit less efficient
at compression than SDL_SavePNG. A test in DiD S1 with SDL_SavePNG_RW vs IMG_SavePNG_RW
yielded a file ~ 1 MB larger in the latter case.

This removed SDL_SavePNG and it's optional build-time dependency of libpng.
2018-03-15 04:31:30 +11:00
Jyrki Vesterinen
dc40b783e1 Suppress Boost's warnings about unrecognized Visual Studio version
Visual Studio auto-updates so often that we can't keep up by updating
Boost every time. It's easier to just suppress the warnings instead.
2018-03-13 19:58:43 -05:00
Jyrki Vesterinen
d577b3a35f Visual Studio: link wesnothd.exe to libeay32.lib
Fixes build of wesnothd with VS.
2018-03-13 19:58:43 -05:00
Sofartin
c861a54369 Fixed Xcode project 2018-03-13 19:58:43 -05:00
lundberg
8d951d9f5d Update VS projectfile for crypt_blowfish changes 2018-03-13 19:58:43 -05:00
Charles Dang
e8da0d67cb GUI2: removed now-unused dialog_callback helper 2018-03-12 12:56:18 +11:00
Charles Dang
26e8c148b1 GUI2: split default return value enum into its own file
This avoid having to include gui/widgets/window.hpp every time you just want to
check a dialog's return value.
2018-03-12 12:03:48 +11:00
Charles Dang
3a90f86674 Addressed more whitespace issues from #2613
[ci skip]
2018-03-12 03:48:59 +11:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
Gregory A Lundberg
b3b3b61c5a
Remove trailing tabs from CodeBlocks projectfile 2018-03-08 07:40:43 -06:00
newfrenchy83
5e272829fa Update wesnoth.cbp 2018-03-08 06:31:29 -06:00
Sofartin
07436dd7bd Add missing scenario-story.cfg in data 2018-03-07 13:59:52 -06:00
Sofartin
ff6e78a60f Fix of Fix Xcode Project after 078f61c 2018-03-07 01:01:45 -06:00
Sofartin
25d459c480 Fix Xcode Project after 078f61c 2018-03-07 01:01:45 -06:00
Charles Dang
078f61c412 Removed unused GUI1 label widget 2018-03-07 06:17:20 +11:00
Celtic Minstrel
b02e73535e Fix wesnothd and campaignd link errors 2018-03-04 21:21:33 -05:00
Sofartin
30f78cc2db Update Fix_Xcode_Dependencies
Update SDL2 to 2.0.8 and SDL2_image to 2.0.3
2018-03-03 18:36:50 -06:00
pentarctagon
b71f7cdc3c Moves the ccache clang wrapper scripts to utils/travis/.
Also clears the ccache statistics after printing them. This means the hit/miss count will be shown per run, rather than cumulatively.
2018-02-24 10:56:05 -06:00
pentarctagon
2151ed6be1 Enable use of ccache for xcode build.
Also sets it to use clang rather than gcc.
2018-02-23 17:51:08 -06:00
newfrenchy83
6a2631a5b2 Update wesnoth.cbp (#2543) 2018-02-23 14:32:29 +02:00
newfrenchy83
5207a7b1c1 Update wesnoth.cbp 2018-02-23 21:33:47 +11:00
Sofartin
21806443ec Updated README.md for Xcode project 2018-02-22 11:10:00 -06:00
Sofartin
51478f2545 Fixed Xcode project 2018-02-22 08:46:43 -06:00
Charles Dang
5291d41377 Updated VS projectfile for bcrypt changes
[ci skip]
2018-02-22 13:13:05 +11:00
Jyrki Vesterinen
eb900c980c Restore ai/registry.hpp
Because obviously calling an empty function is essential for AI to work
correctly in GCC/Clang builds. #logic
2018-02-21 21:03:07 +02:00
Jyrki Vesterinen
f96b9d2bba Promote ai_info_ from pointer to a member object
We used to create a new ai_info object in the constructor of
playsingle_controller in order to reset it on scenario changes.
Now when the AI manager is a part of game state, resetting the game state
implicitly creates a new ai_info object, and setting the AI info manually
is no longer necessary.

This also ensures that ai_info can't ever be null, fixing #2522.

In the process, I also discovered that ai::registry::init() doesn't do
anything, so I removed it, its declaration, and ai/registry.hpp which
contained nothing except said function declaration.
2018-02-21 19:41:52 +02:00
Charles Dang
db0f23701b VC Projfile: minor entry cleanup
[ci skip]
2018-02-22 01:57:37 +11:00
Charles Dang
99a8427d41 Define _WINSOCK_DEPRECATED_NO_WARNINGS in VC projectfile
[ci skip]

Seems the definition in wesnothd_connection.hpp is insufficient if warning C4996
is enabled.
2018-02-22 01:53:12 +11:00
Charles Dang
8707a13a2f Cleaned up MSVC error suppression
The following have been enabled. They no longer cause any errors or warnings.
* C4819
* C4355
* C4351
* C4345

The following has been disabled globally and will be handled in individual cases:
* C4996

The following have been moved to the project files (meaning they become global in
their respective projects):
* C4250 (in wesnoth)
* C4244 (in wesnoth, wesnoth-lib, wesnothd, and campaignd)

The following has been left alone since I don't build the unit tests:
* C4702
2018-02-22 01:30:57 +11:00
Jyrki Vesterinen
77edec6048 Visual Studio: disable C4351 in wesnothlib
Follow-up to commit 1703029bc3.
2018-02-19 19:25:57 +02:00
Sofartin
dcd2123026 Add missing pango dependence 2018-02-19 10:25:14 -05:00
Sofartin
24d113d473 Add missing files to Xcode project and include systeml libraries as absolute path. Don't include system libraries into .app bundle, it is bad idea. 2018-02-14 17:22:49 +01:00
newfrenchy83
33f9bb9b56 Update wesnoth.cbp 2018-02-14 12:25:11 +02:00
Jyrki Vesterinen
1703029bc3 Visual Studio: disable warning C4351 (#2492)
See the warning's documentation:
https://msdn.microsoft.com/en-us/library/1ywe7hcy.aspx

Microsoft advises any project that wants the new standard-compliant
behavior to disable the warning. That includes us.

Fixes #2492.
2018-02-12 07:29:14 +02:00
Celtic Minstrel
3440546f2d Some fixes to the Lua deprecation API, and extend it to C++
* Some improvements to the messages
* Don't clobber existing metatables on deprecated subtables
* Fix Lua deprecation messages not even being logged
* Fix deprecation of Lua subtables
* Don't clobber the metatable when deprecating a subtable
2018-02-12 00:09:48 -05:00
Sofartin
940cd3a781 Remove duplicated headers search path
`$(PROJECT_DIR)/Headers` is included in `System Header Search Path` so this is just redundant duplicate.
2018-02-11 21:06:20 +11:00
Sofartin
90e693fdce Fixed Xcode project (#2450)
* Removed bad openssl include and tuned header search paths
* Xcode project now requires libreadline 7.0 .
Added Fix_Xcode_Dependencies script. Just run it and script take care about all dependencies. No longer need to download Mac Compile Stuff.
Xcode now outputs .app which searches for .dylibs and .frameworks inside Frameworks directory in .app bundle.
* Some fixes and improvements

This commit made with help from @singalen
2018-02-10 22:37:43 -05:00
newfrenchy83
7f55296c7d Update wesnoth.cbp 2018-02-05 18:55:28 +02:00
Sofartin
d9d67f0b95 Update Xcode project 2018-02-05 13:55:01 +02:00
Charles Dang
9f0df10e29 Updated VS projectfile
[ci skip]
2018-02-05 17:12:47 +11:00
kallaballa
024b2e7e9b Implement a surrender dialog
This records a surrender command in replays and quits the game.
2018-02-05 00:35:35 +01:00
Sofartin
4f798e8121 Downgrade Xcode project back to C++11 (#2439)
Downgrading Xcode project to C++11 until 1.14 release
2018-02-04 15:30:31 -05:00
Sofartin
09bc22bac8 Upgrade Info.plist 2018-02-04 19:05:16 +02:00
Sofartin
2935b6a186 Fix and Upgrade Xcode project 2018-02-04 19:05:16 +02:00