43 Commits

Author SHA1 Message Date
Jyrki Vesterinen
f3cdd5b2f0 Update Visual Studio project 2016-10-04 20:53:56 +03:00
Ignacio R. Morelle
ca5ef32636 Also drop mentions of SDL_net from documentation 2016-10-03 07:08:43 -03:00
Jyrki Vesterinen
f7ee888456 Update Visual Studio project 2016-09-30 22:38:32 +03:00
Jyrki Vesterinen
76d407e733 Expose preferences to Lua 2016-09-24 18:16:41 +03:00
Wedge009
6ba16e9bc6 Removing lingering references to scoped_resource.hpp. 2016-09-24 17:00:46 +10:00
Wedge009
b98f8aab7c Updating VC project files. 2016-09-24 16:41:43 +10:00
Celtic Minstrel
fc8537f2f1 Fixup (MP compilation incompatible with minimal rebuild) 2016-09-23 21:01:48 -04:00
Celtic Minstrel
99d638c5c2 MSVC: Enable multi-processor compilation for ALL projects
It was already enabled for some, but not all.
2016-09-23 20:58:27 -04:00
Jyrki Vesterinen
740acecfa5 Update Visual Studio project 2016-09-20 20:41:41 +03:00
Celtic Minstrel
457bec3ff8 MSVC: Exclude lua.cpp (the standalone interpreter) 2016-09-18 20:17:26 -04:00
Celtic Minstrel
1816e1147f Remove asserts.hpp
This file seemed to be some sort of reimplementation of <cassert> except
with some "feature" of trying to force the debugger to hit a breakpoint.
However, any decent debugger already hits a breakpoint with a standard
assert(), and this file really only served to make it harder to see the
actual error when using a Windows console.

Some instances of these macros were replaced with assert(), others with
VALIDATE() which instead throws an exception (and possibly puts up a
dialog, if the exception is caught before main()).

A few other related changes that got mixed in:
- Several error conditions now have a better error message (or indeed
  any error message at all)
- Removed an unnecessary use of std::distance on a Boost iterator range.
- Removed a large chunk of code which did nothing but construct a widget
  builder and then crash; the code was unreachable since an earlier loop
  did the same thing (without crashing), and the comment seems to suggest
  that it was a (seemingly no longer necessary) workaround for some buggy
  compilers / linkers.
- noreturn added to the list of compatibilty C++11 features in global.hpp
  (Of supported compilers, only VC12 lacks the new [[attribute]] syntax.)
- Fix detection of GCC in global.hpp

# Conflicts:
#	src/gui/widgets/settings.cpp
2016-09-18 15:57:47 -04:00
Jyrki Vesterinen
42c3435c0c Update Visual Studio project 2016-09-15 20:52:29 +03:00
Celtic Minstrel
3dba60bcd7 Update Visual Studio project 2016-09-12 09:45:02 -04:00
Celtic Minstrel
ab6369098f Remove *.vcxproj.user files
While they did contain settings that are required for Wesnoth to run
correctly in the Visual Studio debugger, these settings can also be
specified in the main project file (even if only by manually editing
the XML).

Including the *.user files is problematic since it also includes things
that a developer may wish to frequently change, such as command-line
arguments.

Thus, the settings have been moved into the main project file.
2016-09-09 17:17:53 -04:00
Celtic Minstrel
0d47ea2522 Update Visual Studio project 2016-09-08 17:29:53 -04:00
Celtic Minstrel
0180a72573 Fix lots of warnings in MSVC12
Some explanations:
- savepng uses setjmp, so I changed it to C; this guarantees that someone does not accidentally introduce a C++ object in it (unlikely though that is)
- The loop in multiplayer.cpp seemed intended to allow the command-line to request repeated plays, so the break was removed rather than refactoring it to an if statement
- Some uninitialized structs were changed to be zero-initialized
- Use luaW_toboolean instead of lua_toboolean
- Needed explicit constructor for vconfig iterators, since their only member is const
2016-09-06 17:55:00 -04:00
Celtic Minstrel
84e1f4ba4d MSVC: Ignore truncated type name warnings 2016-09-06 16:30:01 -04:00
Jyrki Vesterinen
357cbfe35a Update Visual Studio project 2016-09-03 18:08:00 +03:00
Jyrki Vesterinen
fa89aed9e7 Update Visual Studio project 2016-09-02 21:08:47 +03:00
Wedge009
6ae79eaed6 Updating VC project files. 2016-08-29 17:20:00 +10:00
Jyrki Vesterinen
8838486591 Update Visual Studio project 2016-08-25 19:23:00 +03:00
Wedge009
9b98734400 Updating VC project files for merge of PR #744. 2016-08-24 17:43:45 +10:00
Wedge009
872e2e45ad Tidying VC project files. 2016-08-23 16:22:07 +10:00
Celtic Minstrel
396f5dfc4c Rename combobox -> menu_button 2016-08-22 19:37:14 -04:00
Jyrki Vesterinen
f79b707dc4 Merge pull request #751 from jyrkive/wesnothd-msvc
Make wesnothd build with Visual Studio
2016-08-22 21:57:36 +03:00
Jyrki Vesterinen
0dfb365287 Update Visual Studio project 2016-08-20 11:51:27 +03:00
Jyrki Vesterinen
8716d3f784 Make wesnothd build with Visual Studio 2016-08-20 10:48:48 +03:00
Jyrki Vesterinen
8259e160d0 Update Visual Studio project 2016-08-10 19:25:46 +03:00
Jyrki Vesterinen
486293403e Update Visual Studio project 2016-08-09 19:32:12 +03:00
Jyrki Vesterinen
d76a799523 Update Visual Studio project 2016-08-02 10:02:27 +03:00
Charles Dang
24577e117d Merge pull request #716 from wesnoth/boost_trimming
Boost-related cleanups
2016-07-30 15:51:30 +11:00
Jyrki Vesterinen
c2abe3a622 Kill floating_point_emulation.hpp with fire (#713)
Ability to emulate floating point calculations makes sense only if we
intend to support platforms without native floating point support. Such
platforms haven't been relevant since mid-1990s or so. Besides, supporting
such platforms would require converting the entire codebase to use the
tfloat class instead of native float and double types, which would be
outright Herculean effort.

As a bonus, killing floating_point_emulation.cpp also eliminates two uses
of boost::enable_if_c.

I also removed the nonexistent file SDL_SavePNG/savepng.hpp from the
Visual Studio project, and added #include <string> to
formula/debugger_fwd.hpp because the build failed otherwise
(maybe compilation order changed when I removed
floating_point_emulation.hpp?).
2016-07-26 11:45:15 -04:00
Wedge009
76d8111c82 Add missing reference_counted_object.hpp to VC project. 2016-07-25 13:30:32 +10:00
Jyrki Vesterinen
f56cb7f9bb Visual Studio: enable multi-processor compilation 2016-07-20 18:40:05 +03:00
Jyrki Vesterinen
a8c3bac31f Update Visual Studio project files (#706) 2016-07-19 14:08:55 -04:00
Wedge009
fedbd829a5 Add palette files to VC project. 2016-06-18 11:20:24 +10:00
Wedge009
47ad8d3833 VC project files: Removing network code from libwesnoth as requested by gfgtdf. 2016-06-08 04:36:22 +10:00
Wedge009
f62a52ebfe Update VC project files for recent file additions and deletions. 2016-06-07 19:07:40 +10:00
Wedge009
c8c1e750de Update VC project files to correspond with PR #645 being merged. 2016-06-01 17:09:24 +10:00
aquileia
8b5ab74cd6 vcproj: Workaround for argument parsing regression
Apparently, '-u x' now interprets the whitespace as part of the file name.
2016-05-14 19:19:22 +02:00
aquileia
d1718ae135 vcproj: Revert e2549c1, update .gitignore
*.vcproj.*.user files contain user specific settings.

*.vcproj.user files contain general settings, e.g. for the debugger, which
are required for our unit tests.
2016-05-14 16:25:14 +02:00
Wedge009
3c960aed06 Corrections to MSVC project files. 2016-04-30 23:12:09 +10:00
Celtic Minstrel
6c9cd2998e Update MSVC project files to VC12 (2013) 2016-04-30 02:31:34 -04:00