47 Commits

Author SHA1 Message Date
Charles Dang
f8e58f0625 VS: specify C17 for C code 2021-01-23 18:20:49 +11:00
Charles Dang
c5b1fa9dfd Converted uses of utils::string_view to std::string_view 2021-01-22 11:51:53 +11:00
Charles Dang
51511e582e Boost I do not understand you 2021-01-21 12:03:47 +11:00
Charles Dang
42fa1aa3b5 Cleaned up vcpkg package install list
We no longer need ptr-container or thread.
2021-01-20 21:12:36 +11:00
Charles Dang
6d155ced61 Updated VS projectfiles for recent changes
- Adding the Match History viewer
- Removing utils/optional_fwd.hpp
- Adding the wesnothd game history query handling
2021-01-17 11:48:22 +11:00
Charles Dang
2bc919e1f9 Updated VS projectfiles and readme for 3933eba 2020-12-31 03:26:56 +11:00
Steve Cotton
4205de91e5 Remove the editor's unused set_starting_position dialog
6424d79f489129791fedb23e267565922dba3751 changed to using an editor palette instead.
2020-12-30 15:01:47 +01:00
Charles Dang
ccd006cccd Refactored handling of advanced preferences
Instead of having the preferences dialog make a copy of all advanced preference config objects (and sorting them)
every time you invoke it, this adds a new advanced_manager class instantiated once in game_launcher (not sure if
that's the best place for it, though) that parses and handles the options. Allows me to greatly clean up the
preferences dialog code.
2020-12-14 05:56:52 +11:00
Iris Morelle
8c3918197c gui/addon_manager: Add dedicated license prompt dialog
This allows using full markup for the license text and making it
independently scrollable without messing up the dialog. It also enables
URL parsing in it.
2020-12-10 00:15:17 -03:00
Charles Dang
6e2f3e099e Removed utils/functional.hpp 2020-12-04 15:30:46 +11:00
Charles Dang
ba1dbe56e3 VS: removed 32 bit target from wesnothlib and wesnothd
Was already removed from wesnoth, campaignd, and liblua.
2020-12-04 13:14:33 +11:00
Charles Dang
23d1db043f
Removed patched boost::bind (#5339)
This seemed to be a patch for older compilers (GCC 4.8/4.9, see 3c56630b54)
which we no longer support.
2020-12-04 11:45:16 +11:00
Pentarctagon
c723dc14f0
Fixup vcpkg dependencies for playing audio. 2020-12-02 00:42:52 -06:00
Pentarctagon
11fac5ed2b
We don't use travis anymore. 2020-12-02 00:40:19 -06:00
Pentarctagon
fd29aa8503
Fixup vcpkg dependencies for locales. 2020-12-02 00:37:22 -06:00
Charles Dang
c9d1fda443 Updated VS projectfile 2020-12-02 08:18:49 +11:00
Charles Dang
2ffa21bf04 Made celmin happy
[ci skip]
2020-11-10 17:08:14 +11:00
Charles Dang
bbf22443c5 Updated VS projectfiles
[ci skip]
2020-11-10 12:43:40 +11:00
Charles Dang
db0a522d3d Updated VS projectfile
[ci skip]
2020-11-02 10:57:28 +11:00
Charles Dang
f2e77842fc VS: cleaned up campaignd and wesnothd projects
[ci skip]
2020-10-23 11:12:29 +11:00
Steve Cotton
934cae6093 Refactoring the orb-coloring code, adding new units/orb_status.hpp
Instead of creating lots of image::locators and calling a family of
similarly-named preferences functions, this refactor encapsulates that logic
and uses an enum.

The new orb_status files still need adding to the MacOS build.

An assert has been added to `unit_drawer`'s constructor. There are two callers
- the `display` class guards it with an explicit check before constructing
unit_drawer. The `game_display` class doesn't have an explicit check, but it's
clear that other code in that class assumes the teams are already valid (and
would crash if they weren't).
2020-10-17 14:11:10 +02:00
Charles Dang
5b96bee90d Minor projectfile update 2020-09-21 02:52:46 +11:00
Steve Cotton
a2b98687b7
Update the VC16 project files for Lua Widgets (#5125)
In source_lists/wesnoth, put the new files in alphabetical order.

This (as expected) fails to build on MacOS, just like the previous build.

It also fails to build with Clang on Linux, just like the previous build. That's
caused by src/scripting/push_check.hpp:89's unused parameter 'L', and is
also just like the previous build.
2020-09-04 05:44:15 +02:00
Steve Cotton
711b9388e9
Fix the build, separate fixes for VC16 and GCC-10 (#5037)
I'm relying on Travis to check whether the VC16 fix is correct,
as I don't have a Windows install to test this locally.
2020-08-07 19:06:54 +02:00
DisherProject
18c487e4ff
Add JPG support to VC++2019 build (#5031)
* Add JPG support to VC++2019 build

Co-authored-by: DisherProject <pycchio@tiscali.it>
2020-08-05 23:43:38 -05:00
Pentarctagon
113a4e0913 Use mariadbpp rather than the mysql C connector.
Reasoning being:
* The result_set and other APIs are nicer to use.
* We use mariadb on our server rather than mysql, so this would minimize the chance of any incompatibilities.
* The mysql C++ connector 1.1 isn't compatible with with c++17 (https://stackoverflow.com/q/47284705).
2020-07-30 13:17:22 -05:00
Charles Dang
04dce20deb Updated VC16 projectfile 2020-07-03 07:06:01 +11:00
Charles Dang
c0205969d5 Updated VS projectfile 2020-06-30 05:43:56 +11:00
Pentarctagon
62d0ad4907
Update readme for vcpkg. 2020-05-15 14:06:57 -05:00
Pentarctagon
a04dce619b Add the VS2019 Debug configuration job to travis. 2020-03-22 19:54:02 -05:00
Pentarctagon
111e327e7b Add VS2019 jobs to travis.
The first run of the 2019 jobs will fail, since that run will be used to build and cache the vcpkg dependencies - there's no way to get enough time to build wesnoth and build the dependencies in a single job.
2020-03-20 16:07:18 -05:00
gfgtdf
f9790bcb5d add wesnoth.colors
see #3706

the main usecase to be able to show messages and
dialog labels in the color of a specific team.
2020-03-16 00:29:57 +01:00
Pentarctagon
7b2f4065d1
Typo fix.
I guess I'm not the only one who's modified these by hand.
2020-03-14 01:37:10 -05:00
Iris Morelle
48e6b821b0 i18n: Convert POSIX/Win32 locale table file into a map
This removes the need for the separate file and the giant if chain by
using a std::map instead.
2020-01-19 12:40:03 -03:00
pentarctagon
1b6b0c95ad Make the Debug and Release builds put their executables in the same place. 2020-01-05 01:35:09 -06:00
pentarctagon
0c368e3a1f Remove WindowsTimeout.cpp and related.
This is no longer needed, as the WML unit tests are now handled by the python script.
2019-12-31 18:43:36 -06:00
pentarctagon
0a7f483c72 Add debug and release Windows jobs to travis.
This also removes the separate WML_tests.cmd scripts from VC14 and VC16, now instead using the same run_wml_tests script as the linux jobs.

There is currently no caching of the Windows jobs, since msbuild unfortunately uses timestamps rather than more complete information like scons/ccache in order to determine if things need to be rebuilt. Since git doesn't preserve any sort of last modified timestamp, the cloned repo into the travis job is always "newer" than the cached compiled output, and therefore wesnoth is always fully rebuilt.

Ideally, assuming this sticks around and gets out of early access from travis, we could then use just travis instead of travis and appveyor.
2019-12-31 17:17:34 -06:00
Celtic Minstrel
1323e75ee2 Split out the main core modules of Wesnoth (wml, gui, stringx) into separate C++ source files
And load them with lua_requiref because we can.
2019-12-09 21:54:28 -05:00
Charles Dang
b9fac4313d Updated VC16 projectfile
[ci skip]
2019-11-05 23:13:21 +11:00
Charles Dang
388913162c Updated VS2019 projectfile 2019-10-19 19:17:01 +11:00
Celtic Minstrel
7c07cc71c0 Remove support for legacy menu markup 2019-09-18 22:48:53 -04:00
Martin Hrubý (hrubymar10)
6f468a3757
Migrate links to https if available
Closes #3343
2019-09-08 07:53:28 +02:00
pentarctagon
b4c65f1796
Fix AppVeyor for sample_user_handler removal. 2019-08-23 12:15:35 -05:00
Charles Dang
981ca4ebea VC16: build with C++17 again, enable /utf-8 for all projects
[ci skip]
2019-08-11 19:53:27 +11:00
Charles Dang
33a029633d Got VS 2019 64 bit build working on master
[ci skip]
2019-08-04 22:28:00 +11:00
Charles Dang
889a031f1e Re-sync some config options with the VC12 file
[ci skip]
2019-08-04 18:19:09 +11:00
Charles Dang
55569fca4d Added VC16 projectfiles
[ci skip]

This supports 64 bit builds with vcpkg. Will need to decide what to do with porting these changes to the VC12/14 files...
2019-08-04 06:01:42 +11:00