Commit graph

1731 commits

Author SHA1 Message Date
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
Martin Gerhardy
a581b1e4e0 CONFIGURE: fixed whitespace issue 2021-04-06 19:46:47 +02:00
Orgad Shaneh
3d13ad1768 CONFIGURE: Speed up and get rid of little gnomes
Translated most of the engine work from shell to awk.

Tested that the output is the same (except the order of created files).

Time comparison
---------------
Windows:
* Little gnomes - 99s -> 0.3s
* Creating - 68s -> 1s
* Total - 205s -> 35s

Linux:
* Little gnomes - 3s -> 0.03s
* Creating - 2s -> 0.11s
* Total - 8s -> 3.8s
2021-04-02 21:54:39 +02:00
Orgad Shaneh
b813d1ca0d CONFIGURE: Avoid needless overwrite of header and mk files
They trigger extensive rebuild of source files without a reason every time
the configure script changes, even if the result is exactly the same.
2021-03-28 21:42:31 +02:00
Le Philousophe
4959457968 IOS7: Add 64-bit target 2021-03-21 17:48:30 +01:00
Eric Culp
39608f391c SDL,GRAPHICS: Add option for AR correction without scalers 2021-03-15 16:48:40 +02:00
Eric Culp
f172718b79 CONFIGURE: Added configure option for Edge2x-3x scaler plugin 2021-03-15 16:48:40 +02:00
Cameron Cawley
26e2a9711f GPH/DINGUX: Remove downscaling support 2021-03-15 16:48:40 +02:00
Orgad Shaneh
e094bef73b BUILD: Support LLD linker in configure (opt-in)
Reduces link time significantly.

Times comparison:

Linux+SSD
=========
ld: 14.2s
gold: 4.5s
lld: 1.7s

Windows+HDD
===========
ld: 110s
lld: 7s
2021-03-14 18:42:55 +01:00
Orgad Shaneh
21403f79f8 BUILD: Avoid passing -lfribidi twice to the linker 2021-03-08 09:01:08 +02:00
Thierry Crozat
50932ffb38 BUILD: Fix building with c++11 on systems without std::nullptr_t 2021-03-07 19:30:34 +00:00
Le Philousophe
3b26e0c4f2 RISCOS: Fix internal compiler error in VFP build 2021-03-05 23:20:09 +01:00
Le Philousophe
befedb887b VITA: Add SceAppUtil_stub library
New SDL 2.0.14 uses it for launching web browser
2021-03-03 09:05:39 +01:00
Donovan Watteau
3650aa6ce9 MACOSX: Stop using the -platform_version linker workaround for Retina displays
Commit a1d930209a is actually enough to
stop the blurry display issue on Retina screens (Bug #11430).

This reverts most of 70f79d3df8.
2021-02-09 01:35:40 +00:00
Cameron Cawley
ac4748a6d3 DS: Supress format warnings 2021-02-04 22:22:01 +00:00
Cameron Cawley
72703a8d0a DS: Disable the ARM assembler code for now 2021-02-04 01:59:14 +01:00
Cameron Cawley
ebb1306630 DS: Update configure 2021-02-04 01:59:14 +01:00
Cameron Cawley
0c776013f7 DS: Add RGB colour support 2021-02-04 01:59:14 +01:00
Cameron Cawley
2ca80f8c86 DS: Add -mthumb to the linker flags 2021-02-04 01:59:14 +01:00
Cameron Cawley
6fa77b3429 DS: Remove optimization of individual files for speed
Mixing ARM and THUMB code in dynamic plugins causes relocation issues.
2021-02-04 01:59:14 +01:00
Cameron Cawley
a900337952 DS: Fix default search paths 2021-02-04 01:59:14 +01:00
Cameron Cawley
8b55134547 DS: Re-add audio support using MaxMod 2021-02-04 01:59:14 +01:00
Cameron Cawley
3c306f33ed DS: Simplify the directory structure 2021-02-04 01:59:14 +01:00