Commit graph

2053 commits

Author SHA1 Message Date
Le Philousophe
0dfc71322a CONFIGURE: Add a 3D feature
This allows to blacklist 3D engines on platforms not supporting 3D.
These platforms don't have OpenGL nor TinyGL enabled.
2024-12-01 22:39:32 +01:00
Hubert Maier
5c9b16093b AMIGAOS: Clean up configure 2024-11-22 17:35:04 +02:00
Miro Kropacek
10665fb723 BACKENDS: ATARI: Use DISABLE_TEXT_CONSOLE for release builds
This shaves off a good 800 KB from all the engines. However, do keep
local atari debug messages for diagnostic purposes.

Also, use natfeats for debug output when possible else the classic
stdout/stderr (not both as before).
2024-11-21 11:31:25 +01:00
Miro Kropacek
259f3495e7 CONFIGURE: Allow unaligned access also on m68k
Unaligned access throws an exception on the 68000, 68010 and 68010. None
of these CPUs are (at least officially) supported.
2024-11-13 21:41:01 +01:00
Miro Kropacek
90f8152171 BACKENDS: ATARI: Super flag may go to ./configure 2024-11-13 21:41:01 +01:00
Le Philousophe
7bea121cb5 ANDROID: Also accept android-armeabi-v7a as host value
This matches the ABI name in Android.
2024-11-12 22:43:57 +01:00
Le Philousophe
fd3410ddd8 ANDROID: Align sections on 16K
This is needed for the future Android devices making use of 16K pages
2024-11-12 22:39:58 +01:00
Donovan Watteau
0919970560 CONFIGURE: Fix syntax errors with some shells in the SSE2/AVX2/NEON checks
Fixes the script on OpenBSD's /bin/sh and the following shellcheck errors:

SC1035 (error): You are missing a required space after the !.
SC1105 (error): Shells disambiguate (( differently or not at all. For
                subshell, add spaces around ( . For ((, fix parsing errors.

The second error was fixed by removing the pair of parentheses, which were
just cosmetic and not required in this case.
2024-10-30 21:59:49 +01:00
Vladimir Serbinenko
b7f854ce78 SAILFISH: New port for SailfishOS
Still has some issues documented in README.md but is already playable
2024-10-08 00:56:08 +02:00
Thierry Crozat
a00172aa08 MACOS: Only detect Sparkle >= 2.0 in configure 2024-10-04 21:58:34 +02:00
Le Philousophe
fab21fb706 CONFIGURE: Fix missing parentheses 2024-09-30 13:44:30 +02:00
Cameron Cawley
c4d1359f45 BACKENDS: Remove the legacy Dingux backend
# Conflicts:
#	backends/module.mk
2024-09-30 00:24:25 +02:00
Cameron Cawley
197ba8cbd5 BACKENDS: Remove leftover GP2X references 2024-09-29 22:48:29 +01:00
Le Philousophe
2eebb5db02 BACKENDS: SDL: Add SDL2 Renderer support for ImGui
Some adaptations will be needed for the the engines.
2024-09-29 17:04:03 +02:00
Le Philousophe
9500335855 ANDROID: Upgrade the NDK to version 23
This version is the last one to support API level 17 (Jelly Bean).
It also gets rid of all remnants from the old binutils/GCC toolchain.
This also migrates from LLVM 9 to LLVM 12.
2024-09-14 17:10:05 +02:00
Le Philousophe
d599393eb7 MACOS: Remove now useless define guard 2024-09-08 00:47:36 +03:00
Cameron Cawley
8162951761 COMMON: Replace type detection in configure with aliases for stdint.h types 2024-09-08 00:47:36 +03:00
Le Philousophe
9d5a5e092b AUDIO: Add support for libmpcdec 1.2.6
Previously, only the latest release was supported.
2024-09-07 00:15:07 +02:00
Le Philousophe
2d9f3dbb32 CONFIGURE: Add --with-mpcdec-prefix support 2024-09-07 00:15:07 +02:00
Le Philousophe
b5afe7e25f CONFIGURE: Don't use pkg-config for libmpcdec
libmpcdec never provided a pkg-config file.
2024-09-07 00:15:07 +02:00
Le Philousophe
aeb388891e CONFIGURE: Fix missing parentheses 2024-09-06 19:50:17 +02:00
Le Philousophe
30952fbcf7 CONFIGURE: Refactor compiler version checks for SIMD instructions sets 2024-09-05 07:24:29 +03:00
Le Philousophe
0942594524 CONFIGURE: Enable back SIMD for clang compiler depending on its version 2024-09-05 07:24:29 +03:00
Le Philousophe
3da80ddaeb AGS: Use target pragmas instead of compiler flag to prevent ODR problems
This is the same as in PR#5581
2024-09-05 07:24:29 +03:00
Le Philousophe
867cbfcd0d ANDROID: Create a dedicated define for Android backend
This allows other backends (SDL, libretro) to be used on Android without
hacks.
2024-09-02 20:53:57 +03:00
Schrijvers Luc
59b20dcb3b
CONFIGURE: Haiku fix for _GNU_SOURCE
Fixes build for timidity backend
2024-08-29 13:33:16 +03:00
Donovan Watteau
5f6b3bde97 CONFIGURE: Disable -Wno-maybe-uninitialized for GCC 4.8
I had limited it to GCC 4.8 and newer, but I see in the OSX PPC builds
that GCC 4.8 still has way too many false positives there, compared to
the behavior of newer GCC releases.
2024-08-23 13:17:16 +02:00
Donovan Watteau
006801dcdd CONFIGURE: RISCOS: Avoid -Wformat noise about "GNU extensions" on RISC OS
They're not GNU extensions anymore, and should be part of the C++11
standard, but the older RISC OS (with GCC 4.7) probably gets something
wrong, there.
2024-08-14 22:00:15 +02:00
Donovan Watteau
4612fa0160 CONFIGURE: Disable some warnings with GCC < 4.8
It looks like some warnings give a lot of false positives in GCC 4.7, often
when dealing with templates. GCC 4.8+ doesn't have this problem, so just
remove the noise, so that real warnings are easier to see.

This primarily covers RISC OS.
2024-08-14 22:00:15 +02:00
Eugene Sandulenko
96f1415283
CONFIGURE: Remove unused variable
We do not use pkg-config for libopenmpt, thus, path override is a no-op
2024-08-14 16:12:16 +02:00
Eugene Sandulenko
f3029e9a2a
CONFIGURE: Added detection for libmpcdec (musepack)
To be used in the qdEngine
2024-08-14 16:10:14 +02:00
Donovan Watteau
724fedbbe5 BUILD: AUDIO: Drop support for FLAC < 1.1.3
FLAC 1.1.3 (and its newer API) was released in late 2006, so it has probably
"propagated everywhere" now.
2024-08-11 19:51:39 +03:00
Donovan Watteau
46b59213ca CONFIGURE: MACOSX: Don't print any error if xcode-select doesn't exist
Happens e.g. with the toolchains/macosx-x86_64 toolchain.
2024-08-11 17:15:54 +02:00
Donovan Watteau
f496ac611b CONFIGURE: Disable -pedantic on raspberrypi target
Because of very noisy warnings from system headers using #include_next
extension, and such.
2024-08-11 17:15:54 +02:00
Donovan Watteau
38545bbd3c CONFIGURE: Apply --enable-Werror after testing features and libraries
If -Werror is triggered too early in the configure script, some features
and libraries could end up being disabled, because some tests can produce
small warnings on some systems.

An example is the posix_spawn() test triggering a -Wnonnull warning on
modern Glibc systems. We could fix this test in particular, but we never
know what a future compiler upgrade will find in its new `-Wall` settings.

Just be safe and only enable -Werror when all features are done being
detected detected; --enable-Werror is meant for ScummVM's code itself,
not finding warning in system headers/components/libraries.
2024-08-10 19:22:19 +03:00
Donovan Watteau
9a119caced CONFIGURE: Missed pushing the required Sonivox version in previous commit 2024-08-10 00:29:11 +02:00
Donovan Watteau
c7f040e9a9 CONFIGURE: Test EAS_LoadDLSCollection() availability in Sonivox checks
audio/softsynth/eas.cpp uses it, but the configure check didn't test
for it, and not all releases of Sonivox have it (it looks like it
was removed in some releases, and then added back after the API
breakage was noticed).

This would cause a build failure, later on.

We don't realy check for Sonivox >= 3.6.12, we just check for the
function availability (that's what we want, and indeed it may have
existed in some earlier releases), but mentionning 3.6.12 in the
output could help users figure out what they need.

Trac#15312.
2024-08-10 00:24:49 +02:00
Cameron Cawley
d16f08c167 3DS: Improve default build options for plugin builds 2024-06-30 21:41:05 +01:00
Le Philousophe
c1b94c5d4c CONFIGURE: Match FLAC defines with the ones used in source code
Newer FLAC versions also need this define for Mingw.
Adding this define makes FLAC properly detected and builds works.
This doesn't work with a DLL based FLAC but, because of the define in
flac.cpp it couldn't work anyway.

A proper fix would be to switch to pkg-config for FLAC.
2024-06-30 17:57:23 +02:00
Donovan Watteau
49cf84337d CONFIGURE: Link an actual libsonivox function when testing its availability
That's what we do for most other libraries, and this helps triggering the
cases when libsonivox has been built with GCC < 5.0, which currently fails
because of its unchecked usage of GCC builtins.  It's better to fail at
this point, instead of launching a full ScummVM that will fail linking
because of that.
2024-06-21 08:23:26 +02:00
Donovan Watteau
7803535c97 CONFIGURE: Try -lsonivox-static fallback when there's no pkg-config too
Upstream creates a libsonivox-static.a lib by default, and not all ports
have pkg-config set up.
2024-06-21 08:23:26 +02:00
Donovan Watteau
76d27c5a3c CONFIGURE: MACOSX: Use -gdwarf-2 instead of -gstabs+ for OSX PPC
Prefer DWARF over stabs on older OSX; this requires a newer GDB, but we
need it for the updated toolchain anyway. This improves the debugging
experience quite a lot, and it still creates meaningful traces for the
Crash Reporter of OSX 10.4.

An updated GDB can be found in the development blog posts of TenFourFox,
or in MacPorts.  Setting it up may require some work, but it's worth it.
2024-06-20 23:12:29 +02:00
Eugene Sandulenko
f944132e47
CONFIGURE: ImGui now requires freetype2 2024-05-21 21:02:48 +02:00
Hubert Maier
3a70064a84 JANITORIAL: Fix supress typo in configure 2024-05-18 13:52:31 +02:00
Eugene Sandulenko
c59ac26f97
BACKENDS: Remove obsolete gph/caanoo/gp2x/gp2xwiz port 2024-05-10 13:38:20 +02:00
Le Philousophe
8b48dd8b87 IMGUI: Really disable ImGui when there is no OpenGL 2024-04-29 12:16:34 +02:00
Le Philousophe
989acab7b2 IMGUI: Only enable ImGui on SDL2 2024-04-28 21:48:10 +02:00
Le Philousophe
98e0980c93 AMIGAOS: Put back -fstack-protector
This is needed by FLAC
2024-04-13 23:35:06 +02:00
Hubert Maier
53bd9f5f73 AMIGAOS: revert compiler flag 2024-03-18 12:37:36 +01:00
Hubert Maier
8366119da3 AMIGAOS: clean up compiler flags 2024-03-13 20:12:20 +02:00