Commit Graph

58 Commits

Author SHA1 Message Date
5131f852f2 xcode add cppcodec to search paths 2024-07-28 17:07:33 -04:00
0527494f60 add cppcodec to visual studio include paths 2024-07-28 17:07:33 -04:00
189ffe89dc try adding replay.cpp to xcode projects 2024-07-28 17:07:33 -04:00
77ff65b14e visual studio projects add new files 2024-07-28 17:07:33 -04:00
1bb0927ecb Update and fix Windows CI builds
- boost-spirit dependency needed to be installed
- Visual Studio wanted boost/filesystem.hpp included in more places
- a deprecated enum was removed from new versions of boost, so we use
  its replacement enum now
- vcpkg repository is now pinned to a commit where boost 1.84 libraries
  work smoothly, there should be no more surprises
- vcpkg dependencies now cache, so successive CI runs are dramatically
  faster
- for win-scons, we need to use 'call' in our batch script to source
  vcvarsall.bat
- I updated the includepath and libpath we pass to win-scons to match
  reality, but it still can't find any vcpkg libraries. This will need
  further sleuthing
2024-05-29 19:39:03 -04:00
8ec20f977d vcxproj Copy scenarios and data to the right output dir 2023-02-02 20:18:39 -05:00
8ccde54c6d Fix Common.vcxproj tagfile.hpp reference 2023-01-28 22:05:14 -05:00
5bce71d59f Make implicit switch fallthrough an error in the Xcode project and fix all places that do it
Since we can't directly use C++11 attributes, I've chosen BOOST_FALLTHROUGH to annotate intentional fallthroughs.

Thanks to @fosnola for spotting a missing break, which triggered this.
2023-01-21 22:39:33 -05:00
b929852e22 Maybe the MSVC build failure is because they have the same object name? 2023-01-21 17:01:25 -05:00
8b3f09db79 Add missing unit tests to the Xcode 4 project 2023-01-21 16:52:28 -05:00
effc355fe1 Enable the dialogs test in Xcode and fix one dialog that failed
This also makes the test itself better
2023-01-21 16:36:31 -05:00
733d6ce116 Fix scenario editor build in Xcode 2023-01-21 16:34:54 -05:00
76ee270c6e Add some new features to our quoted string parser, and a unit test
- Now supports \n \t \f escape sequences
- Now supports strings with literal tabs
2023-01-21 15:55:58 -05:00
17dfbded57 This should finally fix the MSVC build... 2023-01-21 11:36:33 -05:00
d696fa7edb Another try at fixing the MSVC project file 2023-01-18 21:41:22 -05:00
819b9ef48d Fix missing source file in VS2017 project 2023-01-18 21:09:07 -05:00
1ee72df836 Add the new files to the Xcode 4 project 2023-01-18 00:54:39 -05:00
3bdcf02be0 Handle modifier keys differently to avoid Apple flagging us as wishing to monitor input from other applications
Fixes #291
2023-01-12 21:43:45 -05:00
35a890a577 Add a partial unit test for vector2d and fix several issues with the resize function 2023-01-12 21:26:08 -05:00
6319d46d67 Fix compilation on Xcode 4
- Add new files to project
- Xcode 4 doesn't support inheriting constructors
2023-01-07 14:27:02 -05:00
e3d6a4748e Dialog XML definitions are now loaded thru the resource manager 2023-01-07 11:59:42 -05:00
9a4056019b Xcode 12: Silence warning by updating deployment target 2023-01-06 21:00:44 -05:00
cc2e3403f8 Xcode: Try adding the app package as a fallback in the rpath
Also, that extraneous quote is probably bad?
2023-01-05 19:29:16 -05:00
047a3190c2 Xcode: Add Homebrew and MacPorts paths to the project search paths 2023-01-05 19:29:16 -05:00
f70f63eead Update and clean up the Visual Studio 2017 project files
These were very shoddily put together!
It seems the person who made them never really tried building
the editors or the tests.

Also included here are a couple of minor source changes that are needed
to make the project files build.
2023-01-05 19:29:16 -05:00
b469b3aeea Add a new class to encapsulate the file format used by save files
The class is not yet used in the wild, but does have a unit test
2023-01-04 19:57:12 -05:00
43ad1be6ca Make sure use of C++14 and C++17 extensions are an error instead of a warning 2023-01-04 19:57:12 -05:00
e34409f3d6 Add separate Copy Frameworks phase just for the unit tests to avoid dyld not loaded errors 2023-01-04 19:57:12 -05:00
00bff78239 Fix unit tests in Xcode 4 2022-07-12 20:45:00 -04:00
f6f7cd59dc Make catch a submodule so it can be updated more easily 2022-07-12 20:35:45 -04:00
5b2561d034 Disable header maps in Xcode 12 2022-07-12 20:35:41 -04:00
f5620f34b4 Disable comma operator warnings
I've checked and found that none of the existing warnings are incorrect (other than those fixed a couple commits ago), but the main reason for disabling it is that one of the warnings is in Boost.Array which I can't do a lot about.
2022-07-05 09:36:39 -04:00
864aa95fea Fix various compiler warnings 2022-07-05 09:29:15 -04:00
ee5e7fd48c Various fixes to make the project build in Xcode 12 on Catalina
This now requires Boost to be installed by MacPorts. However, we could add the standard Homebrew path to the include path as well to support both.

This also requires SFML and its dependencies to be installed in /Library/Frameworks; it's unclear whether this is reasonable.

Code signing is completely disabled, and Zlib is now loaded as a tbd instead of a dylib. This will probably break for some older computers, but hopefully they can just use the Xcode 4 project instead.

Boost is forcing -mt suffixes on all its libraries. Whatever. We'll just roll with that.
This makes the script work both with and without the suffixes.

Using parentheses instead of braces silences the stupid narrowing warning, so yay.
2022-07-05 00:17:52 -04:00
e77a0743a7 Apply most of the recommended Xcode update procedures
Some of these warnings are probably not correct but I can fix them later

The code signing recommendations and the suggested plist updates were skipped.
The plist changes in particular appear to be unsupported in Xcode 4.
2022-07-05 00:17:07 -04:00
457965870e Duplicate the XC4 project for XC12 2022-06-29 23:17:06 -04:00
286e9f99ae Fix misclassified file in the MSVC project files 2020-12-21 17:16:32 -05:00
f14c99f14b Split out cContainer, cLed, and cLedGroup into their own files 2020-12-21 17:16:15 -05:00
a8e120d672 Update VS2013 project 2020-02-09 19:56:28 -05:00
0cebb61ace Update Xcode project 2020-02-09 18:24:20 -05:00
ee624b17c5 Add all the schemas to the Xcode project for easy access 2020-02-06 00:06:00 -05:00
f9f4d5671c Factor out the framerate limiter into a class
Patch from @x-qq
2020-02-01 21:03:56 -05:00
4859fa70bc Factor out the game toolbars into a class.
This includes the following related or incidental changes:
* Remove the win_from_rects global variable. With one minor exception, they were all equal to the relevant render texture's size anyway.
* Split out time advancement from the handle_action function into a separate function
* Split out each individual button action into its own function
* Thanks to the above two, button actions triggered from the keyboard (and menu spells) no longer pass thru handle_action
* Side-effect: keyboard shortcuts and menu spells no longer trigger the button press animation
* Button presses now behave like proper buttons
* Button clicks are now grouped by effect in the handling code, rather than by index
* Removed a variable that mysteriously caused dialogue to become blank
2020-01-30 00:00:40 -05:00
b0fddcd8a6 Update Xcode project and fix Mac build 2020-01-26 13:06:22 -05:00
542c037342 Integrate a new resource manager which should have better performance 2020-01-26 11:53:19 -05:00
fb28a4da2e Fix Mac build 2020-01-12 13:19:32 -05:00
4f785e2650 Use enums for most of the rest of the game constants.
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
514a5dccc9 Xcode: Fix tests working directory 2018-04-07 10:01:08 -04:00
4e6d690de6 Xcode: Fix a couple more incorrect file paths 2018-04-07 09:52:43 -04:00
b54ab46d7e XCode: Fix an incorrect path 2018-04-06 21:06:23 -04:00