* Remove remainder of VLD
Some components were left behind when I removed the cmake option for
vld.
* Remove USE_PRECOMPILED_DEPS option
Hasn't been maintained in 8 years. The use case has been replaced by
vcpkg.
Removes dependence on undermaintained luasocket and luasec libraries.
As an additional benefit, update checks can now be disabled at build
time for distros that would prefer not to show it.
Adds support for independently versioning different vcpkg
dependendencies, better binary cache support, and external registries
for specific ports which are now used instead of forking for ffmpeg and
sdl2_mixer.
If you previously built using USE_VCPKG_DEPS you need to migrate
to the new build method.
1. Delete your CorsixTH/vcpkg directory.
2. Delete your build directory
3. Download and install vcpkg following the instructions at:
https://learn.microsoft.com/en-us/vcpkg/get_started/get-started
4. Run `cmake --prefix dev`
5. Open the visual studio project for your new build directory at
`./build/dev`
The biggest change is the bump from SDL2_mixer 2.0.4 to 2.6.1
flac, ogg vorbis, and mp3 support are now all built in without
extra libraries.
There is now a fluidsynth option for sdl2_mixer in vcpkg, but
this commit does not enable it.
SDL_mixer now requires dynamic_load unless building statically, and no
longer brings over the dynamic libraries it depends on automatically.
Visual Studio 2019 defaults to x64 instead of x86.
Vcpkg is available on more versions of Visual Studio, as well as Linux
and MacOS these days, though our CMake is still not compatible with
using it on non-windows platforms yet.
New version includes custom ffmpeg flags to reduce the size, and
bumps sdl2_mixer to 2.0.2 and sdl2 to 2.0.7, which fixes a regression
in the movie audio.
This commit adds a new script which can be executed on
a Windows machine to build and package the libraries
for CorsixTH. A new folder called vcpkg will be created
in the same folder as the script. The script is
integrated into CMake and run by default when
targetting MSVC.
This commit adds a new module which clones and automatically sets
the include and library paths for the precompiled dependencies.
Linux users can opt in however they must choose the final arch
(i.e. x86 or x64) they intend to compile against.
This will make it easy to add future versions for all platforms:
* lua5x ??, presumably used by Visual Studio
* lua5.x used by debian-based linux distros
* lua-5.x ??, was there in 5.1
* liblua.5.x.dylib used by homebrew on OS X
The library order should be the same as the include order
This doesn't impact translated strings at all;
mostly code comments/README/& one error message.
But now the next time someone runs "codespell"
he'll find important typos faster.
This update adds additional search directories valid for homebrew installed versions of Lua on OS X platforms.
Also included are two additional failure errors for more specific messaging about what fails to be found.
Generate reference doc for CorsixTH, AnimView, LevelEdit, MapEdit with doxygen.
Allow LDocGen to generate documentation in any working directory.
Upload documentation to web with TravisCI.
Corrections to the original pull request contributed by:
Alberth <alberth289346@gmail.com>
A library that detects memory leaks at run time for Visual Studio.
The library can be enabled in cmake with WITH_VLD.
Get Visual Leak Detector at https://vld.codeplex.com