Commit Graph

1977 Commits

Author SHA1 Message Date
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
scemino
b840146b6c TWP: Move imgui into graphics/ 2024-03-07 20:08:26 +01:00
scemino
85aa952517 TWP: Make it clearer ImGui flag 2024-03-07 20:08:26 +01:00
scemino
305fe167f4 TWP: Fix Windows compilations 2024-03-07 20:08:26 +01:00
scemino
b8e0a37037 TWP: Fix several code review comments 2024-03-07 20:08:26 +01:00
scemino
f2b016d538 TWP: Add USE_IMGUI flag 2024-03-07 20:08:26 +01:00
Le Philousophe
ad2be30497 PSP: Update CXXFLAGS to match what toolchain does 2024-03-03 16:49:49 +01:00
Le Philousophe
df2f1a9117 CONFIGURE: Disable irrelevant MIDI drivers
These drivers get enabled because the platforms are POSIX but neither
OSS sequencer nor TiMidity make sense on these embedded devices.
2024-03-03 16:09:53 +01:00
Christian Kündig
7aa72a1633 EMSCRIPTEN: OPENGL: Disable GLAD 2024-02-27 17:07:13 +01:00
Christian Kündig
45c5f4673a EMSCRIPTEN: Cleanup file paths 2024-02-27 17:07:13 +01:00
Christian Kündig
4ea65b1a96 EMSCRIPTEN: Update Emscripten and cleanup build scripts 2024-02-27 17:07:13 +01:00
Eugene Sandulenko
8a7c30a73d
CONFIGURE: Better logic aroung OpenMPT/MikMod exclusivity 2024-02-21 19:04:37 +01:00
polyesterswing
15a9c63565 AUDIO: Add libopenmpt support 2024-02-21 18:45:25 +01:00
Christophe Branchereau
5469d13219 OPENDINGUX: remove -ffast-math
While this flag did not exhibit known issues on the initial opendingux port,
it is rather unsafe and hard to guarantee it won't in future builds.

Remove it for better stability.

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
2024-02-12 01:45:37 +02:00
Miro Kropacek
3e85aa3f4b BACKENDS: ATARI: Provide dlmalloc locally
It's much cleaner and easier to use than to depend on an unofficial mintlib fork...

Plus we are going to use its MSPACES feature anyway.
2024-01-28 21:59:13 +01:00
Vladimir Serbinenko
15cae58aa4
CONFIGURE: Handle kolibrios that merges vorbisfile and vorbis
Kolibri doesn't have a separate -lvorbisfile
2024-01-20 23:52:50 +01:00
Eugene Sandulenko
7016605fe8
Revert "CONFIGURE: Switch vorbis and flac detection to pkg-config"
This reverts commit 7134f5e2c2.

At least on the buildbot vorbis is not in pkg-config
2024-01-17 23:28:25 +01:00
Eugene Sandulenko
7134f5e2c2
CONFIGURE: Switch vorbis and flac detection to pkg-config
Downstream patch from OpenBSD:
https://github.com/openbsd/ports/blob/master/games/scummvm/patches/patch-configure
2024-01-17 22:41:59 +01:00
Eugene Sandulenko
36f387e3d7
CONFIGURE: Take downstream patch from Redox
https://gitlab.redox-os.org/redox-os/cookbook/-/blob/master/recipes/emulators/scummvm/01_redox.patch
2024-01-17 22:38:31 +01:00
Jelle Raaijmakers
36d160a49a
CONFIGURE: Teach configure about serenity
https://github.com/SerenityOS/serenity/blob/master/Ports/scummvm/patches/0001-Teach-configure-about-serenity.patch
2024-01-17 22:38:13 +01:00
Miro Kropacek
48675ed9cf CONFIGURE: Don't use -ffast-math in for m68k-atari-mint*
This breaks calculation of sceneObject->walkCount in
engines/bbvs/walk.cpp (and possibly at other places, too).

Added "-fno-unsafe-math-optimizations" to prevent reciprocal
approximations which break fixed point delta calculations.
2024-01-16 22:59:35 +01:00
elasota
0fb047fcc8 GRAPHICS: Disable SIMD extensions on GCC <4.9 (no #pragma GCC target support) 2024-01-08 23:37:39 +01:00
Cameron Cawley
4fdd1f7cc0 CONFIGURE: Check if fopen64 is available before using it 2024-01-08 16:23:00 +02:00
Alexander Reim
98b7231047 WII: Disable unsupported features by default
Various crashes can be attributed to these 3 features. The main problem is the lack of RAM and the slow performance of the Wii in connection with these 3 features.
2023-12-19 14:24:47 +01:00
Miro Kropacek
59748b028f BACKENDS: ATARI: Prepare for release 2023-12-16 10:10:31 +01:00
Eugene Sandulenko
b88dba59c3
CONFIGURE: Implement sanity check of dynamic detection vs static plugins mismatch. Bug #13746
This patches the problem instead of enforcing dynamic plugins. However, we explicitely
disable dynamic plugins on many platform (mainly when those are not implemented),
thus, by this sanity check, we enforce the developer to test explicit configuration.
2023-12-03 12:59:52 +01:00
Eugene Sandulenko
8d8875159f
BUILD: Cleanup plugin files on RiscOS and PSP2. Bug #13902 2023-12-03 12:59:49 +01:00