summaryrefslogtreecommitdiff
path: root/config.lib
AgeCommit message (Collapse)Author
2020-05-13Fix: sdl2-config would always be detected as presentMatthijs Kooijman
The presence of sdl2-config is used go determine whether to look for sdl2 first, or just sdl1. However, when sdl2-config is *not* present, `which` returns an empty string. Due to lack of quoting, this produces `[ -x ]`, rather than `[ -x "" ]` and it turns out the former actually has a succesful exit status for some reason. This was not a problem when just running configure, because it would then just fail to detect sdl2 and fall back to sdl1. However, when passing `--with-sdl` (without specifying a version), this would only attempt to detect sdl2, even when sdl2-config was not present, but sdl1 is. Adding quotes makes the check work as intended.
2020-04-12Remove: [OSX] Old QuickTime music driver.Michael Lutz
2020-04-12Remove: [OSX] Old fullscreen subdriver for pre 10.7 systems.Michael Lutz
Since the move to C++11, building for pre 10.7 is not possible with the native Apple tools. Also, due to bitrot, the file doesn't even compile anymore. While this could be fixed, it shows that this subdriver is basically never used anymore.
2020-04-12Remove: [OSX] QuickDraw video subdriver used for OSX versions up to 10.4.Michael Lutz
Since the C++11 move, getting OpenTTD to compile and run for anything below 10.7 basically requires building a custom compiler and libc++. Also, the QuickDraw subdriver crashes on more modern OSX version. While this is fixable, keeping the driver around is probably pointless.
2020-04-12Fix: [OSX] Prepend OSX SDK path to the framework search path if building ↵Michael Lutz
with a custom SDK sysroot.
2020-02-10Codechange: Don't fail configure if SDL2 is not detectedJonathan G Rennison
2019-12-21Fix: [MinGW] undefined references when _FORTIFY_SOURCE > 0glx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-07Fix: [MINGW32] Fix launch on Windows 7 x64Joe Stringer
Prior to this commit, the following is observed when running openttd.exe that was compiled using mingw32 on x86_64: > The procedure entry point ScriptBreak could not be located in the dynamic link library GDI32.dll The MSDN docs at the below link state that modules using Uniscribe must first link against usp10 before gdi32 to avoid this issue: https://msdn.microsoft.com/en-us/library/windows/desktop/dd319118(v=vs.85).aspx Signed-off-by: Joe Stringer <joe@wand.net.nz>
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-09-19Add #6173: New SDL 2 based video and sound drivers (#7086)nikolas
2019-08-31Fix: Allow git worktree in version detection; drop svn, hg.George Koehler
If $ROOT_DIR is a linked working tree from git-worktree(1), then $ROOT_DIR/.git is a regular file instead of a directory. Allow this when deciding whether to use git to detect OpenTTD's version. Drop checks for svn and hg in config.lib, because findversion.sh hasn't used svn nor hg since 192770e6da.
2019-05-14Add: [Win32] GDI engine for font glyph rendering as a replacement for ↵Michael Lutz
including FreeType. Building with FreeType is still possible and will take precedence over the GDI renderer, but the project files don't include FreeType anymore by default. Combining GDI rendering with ICU text layout is untested.
2019-03-24Cleanup: Stop OSX compilation complaining about C++11 extensionsHenry Wilson
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2019-03-19Remove: DOS supportPatric Stout
In 10 years there was no active development on DOS. Although it turned out to still work, the FPS was very bad. There is little interest in the current community to look into this. Further more, we like to switch to c++11 functions for threads, which are not implemented by DJGPP, the only current compiler for DOS. Additionally, DOS is the only platform which does not support networking. It is the reason we have tons of #ifdefs to support disabling networking. By removing DOS support, we can both use c++11 functions for threads, and remove all the code related to disabling network. Sadly, this means we have to see DOS go. Of course, if you feel up for the task, simply revert this commit, and implement stub c++11 functions for threads and stub functions for networking. We are more than happy to accept such Pull Request.
2019-03-11Codechange: ICU_SORT is in reality ICU_I18N (according to their CMake files)Patric Stout
By naming it in a different way, things get a bit confusing. Especially if we are switching to CMake, which autodetects these things, we need to use the name the authors of ICU gave it; not our interpertation of that name.
2019-03-11Codechange: ICU_LAYOUT is in reality ICU_LX (according to their CMake files)Patric Stout
By naming it in a different way, things get a bit confusing. Especially if we are switching to CMake, which autodetects these things, we need to use the name the authors of ICU gave it; not our interpertation of that name.
2019-03-11Codechange: liblzma is called liblzma, how ever strange that might bePatric Stout
It is the only library we use that calls itself with 'lib' in the name. This might be confusing, but with the arrival of cmake a lot of these things are automated. And detection will find 'liblzma', not 'lzma', like with 'lzo', 'zlib', ..
2019-03-05Remove: libtimidity support (NOT timidity support)Patric Stout
libtimidity was introduced with the support for PSP. PSP has been dropped almost a year ago, but this music driver was not. This corrects that oversight. timidity (via extmidi) still works fine. This purely removes the libtimidity support, which was only really available for PSP.
2019-03-05Remove: BeOS support (deprecated by Haiku)Patric Stout
In 10 years there is no commit to change how BeOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), BeOS is no longer support. SDL2 suggests to use Haiku instead of BeOS.
2019-03-05Remove: MorphOS / AmigaOS supportPatric Stout
In 10 years there is no commit to change how MorphOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), MorphOS is no longer support. There is an SDL2 port for MorphOS, but it is not maintained by upstream SDL2, and nobody can currently test it out. If anyone wants to re-add MorphOS, please do (revert this patch, fix the problems, and create a Pull Request). If you need any help doing so, let us know! It is not that we don't like MorphOS, it is that we don't have anyone fixing the problems :(
2019-03-03Fix #7308: SDL linker flags were not added on MinGWCharles Pigott
2019-03-03Fix 95ccddd6: SDL static library flags was not updated to use pkg-config formatCharles Pigott
2019-03-03Fix: Wrong variable was used in zlib detectionCharles Pigott
2019-01-17Codechange: Don't explicitly link with -lstdc++, causes linking issues with ↵Charles Pigott
freetype on MinGW
2019-01-16Fix: deps calculation call could fail due to command line lengthglx
2019-01-16Fix: make reconfigure warningglx
2019-01-05Codechange: Always compile with C++11Charles Pigott
2019-01-05Fix #6880: [OSX] Clang version detectionCharles Pigott
2019-01-05Fix: [OSX] Check all search paths for iconv.hCharles Pigott
2018-12-08Add: [OSX] Text layout using the native CoreText API.Michael Lutz
By default, the native API will be used instead of ICU, but if ICU is forced in using configure, it will take precedence.
2018-11-01Add: Fluidsynth music driver support (jmak)Charles Pigott
2018-07-24Fix: dmusic detectionglx
2018-07-22Codechange: detect native Apple clang correctly in config.lib #6773Jonathan G Rennison
Fixes: 00c16032569d943e4fac5c5b6218dfce47479716
2018-07-19Codechange: Ensure that -lfreetype is always last when linking staticallyCharles Pigott
Fixes weird bug with MinGW
2018-06-17Fix: library detection on MSYS2 file systemglx
2018-06-06Add: [Win32] Uniscribe configure options for MinGW targets.Michael Lutz
2018-05-17Feature: Add XAudio2 driverOwen Rudge
2018-04-29Codechange: remove endian_check in favour of __BYTE_ORDER macro (Rubidium) ↵Patric Stout
(#6762)
2018-04-29Remove: WinCE supportPatric Stout
2018-04-29Remove: PSP supportPatric Stout
2018-04-15Fix e614357: Ask the compiler who it is, instead of using symlinks (#6727)Charles Pigott
This fixes #6723
2018-04-14Fix 6ac0790: don't show the location to / failure of 'realpath' every time ↵Patric Stout
(#6719)
2018-04-14Change: [Build] prioritize cc-build over build (based on patch by ↵Patric Stout
woutershep2) (#6716) This closes #6414
2018-04-14Change: [Build] use flags set by env at the end, not at the start (based on ↵Patric Stout
patch by adf88) (#6715) This closes #6433
2018-04-12Fix e614357: MingW/MacOS/MacPorts don't have realpath, use reallink in those ↵Victor Sergienko
cases (#6710)
2018-04-11Fix e61435774b: Some systems don't have realpath (#6705)Charles Pigott
2018-04-11Fix: Resolve symlinks when working out which compiler is being usedCharles Pigott
2018-04-11Codechange: Remove outdated assumption about FreeBSD's C compilerCharles Pigott