Commit Graph

1753 Commits

Author SHA1 Message Date
Thierry Crozat
902412241e CONFIGURE: Fix fluidsynth detection on some macOS systems 2021-10-04 19:28:47 +01:00
Cameron Cawley
7e134dc926 RISCOS: Only use -mno-poke-function-name in non-debug builds 2021-10-02 15:15:42 +01:00
Cameron Cawley
6c5a2bf1d8 RISCOS: Fix detecting packages using pkg-config 2021-09-30 23:01:43 +01:00
Marcus Comstedt
a43b6cb67a DC: Enable options to save more memory 2021-09-20 23:28:58 +02:00
Cameron Cawley
987c0eb76a COMMON: Add a signed version of uintptr 2021-09-19 11:21:41 +03:00
antoniou79
cfab954743 CONFIGURE: Use -fsigned-char as extra building flag for Android
Needed for Android ARM architectures, where compilers assumes char is unsigned

Addresses issues like outlining fonts in AGS (https://forums.scummvm.org/viewtopic.php?f=17&p=95919#p95919)
See: https://stackoverflow.com/questions/7414355/is-it-safe-to-build-with-fsigned-char-with-android-ndk
2021-09-06 15:21:38 +03:00
Orgad Shaneh
0b90777721 CONFIGURE: Drop u flag for ar
On replace mode (r), u tells ar to replace object files only if the source
file is newer than the one in the archive.

When binutils is configured with --enable-deterministic-archives, the
default mode for ar is D (deterministic), which means that all the files
are stored with zero for UID, GID and timestamp. This means that ar has no
way to tell if the archived file is older than the source file, so it just
archives all the input files and issues the following warning:
`u' modifier ignored since `D' is the default (see `U')

Fix by dropping this flag. The performance gain is negligible anyway.
2021-09-02 18:52:41 +02:00
Cameron Cawley
2e440e5d96 RISCOS: Replace the StrongHelp manual with the PDF manual 2021-08-29 16:09:32 +01:00
Matan Bareket
fed702c059
BUILD: Fix typo in configure 2021-08-27 10:31:47 -04:00
Mataniko
140c0e4090 BUILD: Simplify pandoc and curl checks 2021-08-27 15:54:10 +02:00
mataniko
f21fdee404 BUILD: Add build flags to download the manual from RTD 2021-08-27 15:54:10 +02:00
Cameron Cawley
bc3c50ae4a DS: Build with -fno-threadsafe-statics 2021-08-26 18:33:05 +01:00
Christian Kündig
2b19203104 DISTS EMSCRIPTEN: Fixing various minor bugs and typos
- too verbose logging slows down everything
- datadir / causes the whole FS to be scanned at launch, including files which are loaded lazily via XHR
- corrupt default data in local storage
- double-slash in path of VORBIS_LIBS
2021-08-20 21:13:49 +02:00
Christian Kündig
8af8ac2e08 OPENGL EMSCRIPTEN: clean up ifdefs, fix opengl in main menu, remove 10ms delay in GRIM main loop 2021-08-20 21:13:49 +02:00
Christian Kündig
501c7ba7aa DISTS EMSCRIPTEN: set correct datadir (fixed issue with shader loading) 2021-08-20 21:13:49 +02:00
Christian Kündig
b7a2e22b0a DISTS: New Emscripten/WebAssembly dists target
This is an initial version of the emscripten build/dist target.
Many things are still missing, see dists/emscripten/README.md for
a detailed summary of what this provides and still misses
2021-08-20 21:13:49 +02:00
Cameron Cawley
5c40b54694 DS: Always build without full detection features 2021-08-20 17:42:28 +01:00
sluicebox
4c260f1cd3 CONFIGURE: Run all readline tests with same parameters
Prevents a different include order being applied to the readline
function signature test than was applied to the detection test.
On Mac, this can cause the signature test to use Apple's libedit
instead of the path provided to --with-readline-prefix.
2021-08-07 10:49:01 +02:00
sluicebox
3516f0587e CONFIGURE: Don't detect Apple's libedit as readline 2021-08-07 10:49:01 +02:00
Orgad Shaneh
c0c5330986 CONFIGURE: Suppress output of a52 test app
a52_init() unconditionally calls a52_imdct_init(), which prints "No
accelerated IMDCT transform found". This interferes with the normals
configure output, which looks like this:

Checking for liba52... No accelerated IMDCT transform found
yes
2021-08-06 19:25:31 +03:00
Max Horn
34523aba7e JANITORIAL: Fix some typos 2021-08-04 15:43:15 +02:00
Orgad Shaneh
0b2ae9fa5e DEVTOOLS: Replace ugly SDL/MinGW hack with a cleaner hack
Instead of having main=SDL_main defined by pkg-config/sdl2-config --cflags
and undefining it everywhere, strip it in its origin.
2021-08-03 07:35:15 +03:00
Orgad Shaneh
15d282a34b CONFIGURE: Do not pass --prefix to sdl2-config
Reapply a6ded89075.

This already works with all the platforms on buildbot. The mingw release
environment had a misconfigured sdl2-config, but this should now be
fixed.
2021-08-01 18:06:24 +03:00
Orgad Shaneh
9e66fa2899 CONFIGURE: Partially revert recent mingw change
See the commit message of a6ded89075 for the
gory details. Until we come up with a proper fix, revert that part to make
it compile again.
2021-08-01 11:55:19 +03:00
Eugene Sandulenko
149681cfad
Revert "CONFIGURE: Do not pass --prefix to sdl2-config"
This reverts commit 936121a070e4408f9b41b4234861fe2c1fab7949.

The change broke the existing Win32 ports.
2021-08-01 09:40:58 +02:00
Orgad Shaneh
4ccb0084be CONFIGURE: Update pkgconfig-related comments for mingw 2021-08-01 10:10:37 +03:00
Orgad Shaneh
f01a1dc6fa CONFIGURE: Use cross-pkg-config on MXE
Works without setting PKG_CONFIG_LIBDIR.
2021-08-01 07:27:16 +03:00
Orgad Shaneh
a6ded89075 CONFIGURE: Do not pass --prefix to sdl2-config
sdl2-config should return the correct paths without it. Trying to determine
the path by name lookup is error-prone.

For example, if both the host and a cross-toolchain have sdl2 installed,
the host executable is typically /usr/bin/sdl2-config, and the
cross-toolchain is <triplet>-sdl2-config and
/path/to/toolchain/triplet/bin/sdl2-config.

The toolchain bin path should not be part of PATH, because this can cause
clashes when building for the host (depends on the PATH order, and if the
tool exists on both).

And even if we do add the toolchain bin path, like we currently do at least
on MXE container, if the host path comes before the toolchain then the
<triplet>-sdl2-config will be detected, but this executable *is not* in the
directory that relates to this toolchain, but in the host bin (for example,
/opt/mxe/bin), so we pass the wrong path to --prefix and sdl2 breaks.

This only worked on buildbot because the lookup for mingw was sdl-config
instead of sdl2-config, and sdl-config just doesn't exist on the system.
2021-08-01 07:21:13 +03:00
Orgad Shaneh
a0006fb92e CONFIGURE: Avoid fancy quotes in help text 2021-07-30 16:17:59 +03:00
Orgad Shaneh
85c4f53f7f BUILD: Support peldd on mingw cross-compiler 2021-07-30 05:47:22 +03:00
Orgad Shaneh
de77d9b71e CONFIGURE: Fix cross-compilation with mxe mingw 2021-07-30 05:47:22 +03:00
sluicebox
2bca5da803 WIN32: Make UNICODE the default build configuration 2021-07-14 18:41:02 -05:00
trembyle
63b8d47df5 CONFIGURE: Enable building with Windows text console output
Create a new flag --enable-windows-console to build with console
output on MinGW. The default behavior will be to enable the console.
The current plan is to continue to offer the users both options for
release builds - ScummVM and ScummVM (noconsole).

Whenever the text console is enabled, Windows console will be added
by default. This is to prevent a situation where ScummVM will not load
any visible debug console on hotkey or error.
2021-07-13 11:57:22 -05:00
sluicebox
4cf7f1fc80 CONFIGURE: Add --enable-windows-unicode 2021-06-29 12:38:01 -05:00
Orgad Shaneh
d31b843f9f
MAKEFILE: Add win32dist-mingw target (#2999)
Installs, and bundles all required dlls in WIN32PATH or DESTDIR.
2021-06-20 12:01:09 +03:00
Le Philousophe
034ce1678e AMIGAOS: Fix miniGL link when building with plugins
On AmigaOS miniGL is a static library and linking against it in plugins
prevents to have a shared context. By linking only in main executable,
this forces plugins to use the only context available in scummvm binary.
2021-05-15 12:52:22 +02:00
Eugene Sandulenko
19512b261a
CONFIGURE: Improve endianness check. Courtesy of Fedora 2021-05-09 12:58:11 +02:00
Filippos Karapetis
99e5de932e AUDIO: Remove the broken ARM audio rate converter
This code has been broken and unmaintained for at least 7 years now,
and had been disabled. This also removes the associated define
USE_ARM_SOUND_ASM
2021-05-04 01:16:14 +03:00
Le Philousophe
7c9a1fa9f3 AMIGAOS4: Add support for dynamic linking (and plugins) 2021-05-01 18:03:13 +02:00
Hubert Maier
3c498b4a35 AMIGAOS: Revert install assign to install subdirectory 2021-05-01 18:03:13 +02:00
Hubert Maier
81124a5214 AMIGAOS: Small changes
- Change install path to use an assign instead of an absolute path
- Change system dialogs output to print "asl" instead of "amigaos (asl)", incorporated with morphos (since both targets use the same dialog system) to save some lines
2021-05-01 18:03:13 +02:00
Eugene Sandulenko
3e2ad9ee0f
CONFIGURE: Redirect all compilation runs to config.log 2021-05-01 14:56:08 +02:00
Cameron Cawley
c38e3bdc2a AUDIO: Support building with FluidLite 2021-04-25 20:39:55 +03:00
Orgad Shaneh
ea66b91939
CONFIGURE: Force full rebuild on configuration change (#2974)
When a subengine is added, its parent engine needs to be rebuilt.

A real solution will be to create a make-dependency file for each engine,
and touch it when its subengines change, but for now we'll just rebuild
everything.
2021-04-23 12:34:02 +03:00
Cameron Cawley
2caff83e37 CONFIGURE: Allow linking with GOLD to be disabled 2021-04-21 23:34:37 +01:00
rsn8887
b124c20aa9 VITA: Remove unused vitashaders lib dependency 2021-04-11 20:35:00 -05:00
rsn8887
044ea0b60e VITA: Use regular SDL2 graphics code, fixes crash with latest SDK 2021-04-11 19:56:34 -05:00
Martin Gerhardy
a8280b299e CONFIGURE: added missing --with-gif-prefix support 2021-04-10 18:51:58 +02:00
Martin Gerhardy
ea49b39d66 CONFIGURE: fixed copy and paste error for gif support 2021-04-10 18:51:58 +02:00
Martin Gerhardy
bb34721dd4 IMAGE: added GIFDecoder using libgif 2021-04-10 10:59:09 +02:00