Commit graph

1153 commits

Author SHA1 Message Date
Cameron Cawley
ad648f8a97 CONFIGURE: Append pkg-config cflags to CXXFLAGS
CPPFLAGS should only contain options that are used by the preprocessor, however pkg-config may return C/C++ specific options which are unrecognised by windres.
2019-02-24 11:29:09 +00:00
Cameron Cawley
a6f82fc246 WIN32: Fix building outside the source directory 2019-02-21 23:22:38 +00:00
Cameron Cawley
309286cfbb BUILD: Improve rules for compiling Windows resource scripts 2019-02-21 20:33:39 +00:00
Matan Bareket
ce90507e85 BUILD: Don't print the pandoc variable if not running a check 2018-12-29 17:11:15 -05:00
Matan Bareket
6ce49ca04d BUILD: Update pandoc options to support different formats/filenames 2018-12-25 11:37:26 -05:00
Matan Bareket
08d48e9f2c BUILD: Copy README.md instead of README 2018-12-25 11:37:26 -05:00
Matan Bareket
366f5c1421 BUILD: Add pandoc check in configure 2018-12-25 11:37:26 -05:00
SupSuper
952b12311c BACKENDS: Add base support for system dialogs 2018-12-16 10:48:13 +00:00
Marcus Comstedt
e0307e9c07 BUILD: Re-introduce hardcoded libz and MAD on Dreacmast
The attempts at making a more accurate auto-detection have been
postponed, so put the hardcoded enablers back for now.
2018-12-06 09:36:45 +01:00
Marcus Comstedt
f6258e229c BUILD: Revert f4fe15fd4d and a85be202de
More work is needed to make this function correctly with SDL on MinGW.
Reverting for now.
2018-12-06 09:30:09 +01:00
Marcus Comstedt
13a3d522ed BUILD: Also add $LIBS in cc_check()
This should hopefully fix the problems caused by -Dmain=SDL_main in
the MinGW build.
2018-12-05 22:50:03 +01:00
Marcus Comstedt
e3da5e043c BUILD: Add $DEFINES and $INCLUDES in cc_check()
When actually compiling things Makefile.common adds these variables to
the command line, so they should be there when testing if something
can be compiled as well, otherwise we could get both false negatives
and positives.

This fixes detection of zlib and MAD on Dreamcast, when installed in
$RONINDIR.
2018-12-04 20:12:31 +01:00
D G Turner
7b4d1ed460 IOS7: Enable Building Scalers By Default
This override prevented the previous IOS7 commit to enable software
scalers on 2018-11-21 having any effect.
2018-11-26 12:51:04 +00:00
Cameron Cawley
c9a8ee0190 3DS: Fix compilation of the test runner 2018-11-21 15:45:01 +00:00
Nitrus
4c6e65e36e 3DS: Disable 'pedantic' and add bzip2 for FreeType2 2018-11-21 07:54:49 +00:00
Bastien Bouclet
8efe46dcee BUILD: Set PKG_CONFIG_LIBDIR only when needed when running configure
Remember if PKG_CONFIG_LIBDIR is set when running configure manually,
when automatically running configure, only set PKG_CONFIG_LIBDIR if it
was set during the manual run.

Fixes #10807.
2018-11-16 18:34:59 +01:00
Bastien Bouclet
4d36606b27 BUILD: Free the a52 state in the configure compilation test
So ASan does not print a leak report in the middle of the configure
output when it is enabled.
2018-11-16 18:34:59 +01:00
Cameron Cawley
e8cc0fbaca WIN32: Move the Windows-specific packaging rules into a separate file 2018-11-15 06:56:53 +00:00
Torbjörn Andersson
8b692f8d89 CONFIGURE: Add detection of liba52
This is for an experiment aiming to decode audio for the hi-res
videos in Zork: Grand Inquisitor. I don't know if we want to add
a dependency on liba52, but the license should allow us to include
the code verbatim, if that's preferrable.
2018-11-04 22:33:22 +01:00
Thomas Sowell
a307d88f43 BUILD: Fix Dreamcast crt0 link order
Correct a regression introduced in 7557f17ed2 which caused the Dreamcast
to hang at the license screen when running SCUMMVM.BIN from a CD.
7557f17ed2 fixed configure's feature detection by moving crt0.o from
LDFLAGS to LIBS, but that changed the linking order resulting in the
start symbol from crt0 being located at an address other than
0x8c010000.  ELF binaries loaded over serial or TCP/IP were unaffected
(presumably because the loaders use the start address from the ELF
header instead of a fixed address) which is probably why this went
unnoticed.

This commit corrects the link order by moving crt0 back into LDFLAGS and
adds "-lronin -lm" to LDFLAGS to ensure that configure checks continue
to work.
2018-10-25 04:20:51 +01:00
Thomas Sowell
016ddd4899 BUILD: Remove flags from translation cc_check
Remove $LDFLAGS and $CXXFLAGS from cc_check call in translation support
check.  Both variables are redundant because they are already expanded
in cc_check, and expanding LDFLAGS twice causes duplicate symbol errors
for targets that include crt0.o in LDFLAGS.
2018-10-25 04:20:51 +01:00
Cameron Cawley
174b0d1864 PS2: Fix compilation with latest PS2SDK 2018-09-14 02:33:16 +01:00
Cameron Cawley
08314ae61f DREAMCAST: Fix compilation 2018-08-18 16:27:34 +02:00
Colin Snover
4fe84887cc BUILD: Update flags for compiling on FreeMiNT 2018-08-18 14:08:40 +02:00
Colin Snover
12cf08fa1c BUILD: Use normal host alias auto-prefixing for riscos and amigaos 2018-08-18 13:50:59 +02:00
Cameron Cawley
06446d36f5 VIDEO: More fixes when building with Theora and Tremor 2018-08-18 13:33:43 +02:00
Colin Snover
f0fe48d2f7 BUILD: List all used environmental variables in configure help 2018-08-18 13:33:03 +02:00
Colin Snover
ffff953685 BUILD: Use split-dwarf debug symbol files by default, when available
This should improve linker time as well as reduce the size of the
built binaries (though this does not affect runtime memory usage
since the debug segments are not loaded into memory except by a
debugger) whilst still giving debug information.
2018-08-18 13:33:03 +02:00
Colin Snover
7557f17ed2 BUILD: Fix broken Dreamcast ronin handling & feature detection
$(ronindir) and the explicit crt0 may have happened to work because
library detection state for libmad was forced, but it was always
breaking the feature detection of the build system. Now we can
compile to Dreamcast using the normal detection system.
2018-08-18 13:32:14 +02:00
Colin Snover
c2f3532440 BUILD: Remove bogus comment 2018-08-18 09:28:56 +02:00
Colin Snover
be6963f9b8 BUILD: Enable Sparkle updates in release mode 2018-08-18 09:28:56 +02:00
Bastien Bouclet
172cdab90f BUILD: Save the PKG_CONFIG_LIBDIR environment variable across rebuilds 2018-08-04 07:55:23 +02:00
Bastien Bouclet
df613af817 BUILD: Check if pkg-config is available 2018-08-04 07:55:23 +02:00
Lars Wendler
2a0a5f4965 BUILD: Prefer pkg-config over freetype-config if possible
As of freetype-2.9.1 the freetype-config script no longer gets installed
by default.
2018-08-04 07:55:23 +02:00
Colin Snover
8cf2b8e31b BUILD: List all used environmental variables in configure help 2018-08-04 07:55:23 +02:00
Colin Snover
72791aaa23 BUILD: Respect all build tool overrides from environment
Previously, only CXX could be overridden by the environment, which
made it impossible to correctly set tools for cross-compiler
toolchains which were not compatible with the default system tools.
2018-08-04 07:55:23 +02:00
Cameron Cawley
5cf3b75deb VIDEO: Fix Theora playback when building with Tremor 2018-08-03 14:52:09 +02:00
Adrian Frühwirth
ff220fffa5 CONFIGURE: Use -Wno-pragma-pack only when available 2018-07-08 11:57:39 +02:00
Adrian Frühwirth
fd612a537d CONFIGURE: Reword compiler flag checks 2018-07-08 11:46:03 +02:00
Eugene Sandulenko
31e8cb168e CONFIGURE: Do not add -Wno-pragma-pack on macOS
macOS' clang does not support this directive (yet), which
leads to tons of useless warnings
2018-07-07 16:41:38 +02:00
Adrian Frühwirth
42c8212713 CONFIGURE: Disable -Wpragma-pack for >=clang-6.0
Clang 6 enables -Wpragma-pack which warns when leaving an included file
which changes the current alignment.
Our common/pack-{start,end}.h trigger this and it cannot easily and portably
be disabled inside pack-{start,end}.h so we disable it globally for now.
2018-07-06 09:54:39 +02:00
Adrian Frühwirth
3ed47e34a9 CONFIGURE: JANITORIAL: Fix indentation 2018-06-29 18:53:31 +02:00
Cameron Cawley
ae8b5dc086 RISCOS: Add a script to open the README file based on the system territory 2018-06-15 01:15:52 +01:00
Cameron Cawley
39ef9beaca CONFIGURE: Make Bink an engine dependency 2018-05-30 08:24:06 +01:00
Eugene Sandulenko
0a902f312e CONFIGURE: Revert unintended changes 2018-05-10 17:02:13 +02:00
Eugene Sandulenko
5b604e42e2 AGOS: Mark 25th Anniversary releases as MT-32 hack, not a fix 2018-05-10 16:59:53 +02:00
Vincent Bernat
9edd8eff01 AUDIO: add support for OPL2LPT
The OPL2LPT is an OPL2 chip plugged on a parallel port. It is
write-only but otherwise acts as a classic AdLib. This commit adds
support for this device.

User is expected to have the right permissions on the parallel
port. By default, the first suitable parallel port is used. It is
possible to override that with the hidden configuration setting
"opl2lpt_parport".

It depends on the presence of the libieee1284 library which abstracts
a bit parallel port handling. An alternative would be to access
directly /dev/parportX on Linux. This would amount of code but it
would be Linux-only.

Tested with Indy 3 and SOMI.
2018-04-08 09:17:19 +02:00
Cameron Cawley
14c1651a11 DS: Use -isystem when adding include directories for portlibs 2018-04-07 22:12:18 +00:00
Cameron Cawley
fc00f80e7d JANITORIAL: Fix typo 2018-04-07 22:09:10 +00:00
Eugene Sandulenko
52fc7e34d8 CONFIGURE: Do not even try to build Nuked OPL when disabled 2018-04-07 12:22:18 +02:00