Commit Graph
8 Commits
Author SHA1 Message Date
Gleb Mazovetskiy b876fa84b0 make_src_dist.py: Vendor simpleini SDL_audiolib
Explicitly set `-DDEVILUTIONX_SYSTEM_SDL_AUDIOLIB=OFF`
and `-DDEVILUTIONX_SYSTEM_SIMPLEINI=OFF` because we now
also support the system versions of these.
2022-07-31 15:54:55 +02:00
Gleb Mazovetskiy d2d9fcb5b5 Update SDL_audiolib
The latest version uses libfmt internally
and removes the need for exceptions.
2022-06-22 09:57:49 +02:00
Gleb Mazovetskiy 20c13b7b07 make_src_dist.py --fully_vendored: Add Discord SDK 2022-04-14 16:53:53 +01:00
Gleb Mazovetskiy 076b0c0c05 Overhaul tests
1. Adds a `libdevilution_so` target when tests are enabled.
2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel).
3. Tests are now defined in a separate `test/CMakeLists.txt` file.
4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest).
5. Tests are now built by default.
6. On CI, test errors are now reported.

Also:

* `.clang-format`: Enable SortIncludes in tests
* `path_test.cpp`: Fix -Wsign-compare
2021-12-16 20:26:51 +00:00
Gleb Mazovetskiy 0d63be4be4 make_src_dist: Add a top-level directory
Addresses a request by @jpalus to place the archive contents into a top-level directory.
(https://github.com/diasurgical/devilutionX/pull/3589#issuecomment-981084124)

The directory looks like this: `devilutionx-src-1.3.0-7154522bf`.
2021-12-12 18:21:08 +00:00
Gleb Mazovetskiy 437d4ed1e5 make_src_dist: Add a --fully_vendored flag
With this flag (off by default), all of the dependencies are packaged
into the source archive (including SDL2 etc).

Useful for building on machines without an internet connection.
2021-12-11 23:07:20 +01:00
Gleb Mazovetskiy 64e29d53e8 make_src_dist.py: Update documentation 2021-11-28 14:29:46 +00:00
Gleb Mazovetskiy 614efb5bd5 A tool to build a self-contained source tarball
The does some pruning of the dependencies' files to avoid a 100 MiB+ tarball.
Even with that, the final tarball size is 17 MiB with xz, 25 MiB with gzip.

See the file documentation at the top of `tools/make_src_dist.py` for
more information.
2021-11-25 01:43:25 +00:00