Commit Graph
342 Commits
Author SHA1 Message Date
SupSuper bcb7d1f30c BACKENDS: Discord rich presence support
Adds support for showing the currently running game
in a Discord user's game activity.
2020-08-25 10:47:41 +02:00
SupSuper 74db2b3860 CREATE_PROJECT: Fix typos in MSVC properties 2020-08-21 05:38:26 +01:00
SupSuper 59d9975912 CREATE_PROJECT: Remove obsolete BuildSetup libraries property
Every generator manages their libraries, so this is no longer used
2020-08-20 23:54:32 +02:00
SupSuper bd34337370 CREATE_PROJECT: Update CodeBlocks library names
MinGW and MSVC libraries follow different conventions
2020-08-20 23:54:32 +02:00
SupSuper dfb0123d56 CREATE_PROJECT: Add a name table for MSVC library dependencies
Adds support for Debug/Release lib names and moves
Windows-specific code to the MSVC generator
2020-08-20 23:54:32 +02:00
Daniel 57cd0741ae CREATE_PROJECT: Disable MSVC virtual inheritance warnings
Noisy and doesn't look like it's getting a "proper" fix anytime soon
2020-08-15 08:45:35 +01:00
Michał Janiszewski bb9dddcd04 CREATE_PROJECT: JANITORIAL: Apply code formatting 2020-07-15 15:30:55 +02:00
SupSuper 95d191e19a CREATE_PROJECT: Fix VS2008 property names 2020-07-15 15:30:55 +02:00
Michał Janiszewski 680da50b81 CREATE_PROJECT: Remove C++11 2020-07-15 15:30:55 +02:00
Michał Janiszewski 26591c1341 CREATE_PROJECT: Add missing is_open check
This is to satisfy DeepCode warning on PR
2020-07-15 15:30:55 +02:00
SupSuper ef803ee080 CREATE_PROJECT: Old Visual Studio doesn't support ARM64 2020-07-15 15:30:55 +02:00
SupSuper 7a5c4e6121 CREATE_PROJECT: Remove C++11 2020-07-15 15:30:55 +02:00
Michał Janiszewski c763e56d57 CREATE_PROJECT: Address review comments 2020-07-15 15:30:55 +02:00
Michał Janiszewski 6b1fb8fc8f CREATE_PROJECT: Sort libraries to be returned 2020-07-15 15:30:55 +02:00
Michał Janiszewski 3d3b0124ad CREATE_PROJECT: Make MSVC project understand more architectures 2020-07-15 15:30:55 +02:00
Michał Janiszewski a23b1789db CREATE_PROJECT: Add ability to remove feature from setup 2020-07-15 15:30:55 +02:00
Michał Janiszewski 0de86d6fbf CREATE_PROJECT: Add option to use canonical library names
This allows for easier plugging in of alternative providers of libraries
2020-07-15 15:30:55 +02:00
Einar Johan Trøan Sømåen ff602877e6 DEVTOOLS: Unhardcode scummvm-name in create_project for XCode.
The existing code broke create_project in ResidualVM, as
the loop that creates the actual build configurations
generated the hash from the actual object name, which
for ResidualVM would be XCConfigurationList_residualvm.

The same logic was not applied when generating the reference,
as that would use the hardcoded name XCConfigurationList_scummvm.

This patch makes a minimal fix for that, by using the
PROJECT_NAME define instead of the hardcoded name.
2020-06-29 02:09:23 +02:00
Matthew Duggan 352eeb5795 CREATE_PROJECT: Add c++11 warnings to xcode project 2020-05-01 00:01:02 +01:00
Zvika Haramaty 7e168256c2 DEVTOOLS: add fribidi library support to create_project 2020-04-30 23:59:10 +01:00
Eugene Sandulenko 8a3fc359b2 DEVTOOLS: Modified macros, so they are less error-prone.
Code generation for libsdl_net was always performed. The condition
did not work as expected. Macros are dangerous.
2020-04-28 08:56:51 +02:00
Thierry Crozat 70f79d3df8 MACOSX: Unset SDK version in executable
This is a workaround for the blurry display we get on retina screen
when building with SDK 10.14 or above. Unsetting the SDK version
in the executable is sufficient to avoid the issue. See bug
similar change in LibreOffice.

The workaround can only be used with Xcode 11 or above. When using
configure it automatically detects if the workaround can be used.
The workaround is disabled by default in create_project and needs
to be enabled manually (uncomment the MACOSX_NO_SDKVERSION define
at the top of the xcode.cpp file).
2020-04-26 00:33:42 +01:00
Thierry Crozat 5b617c1eef CREATE_PROJECT: Use relative paths for static libraries for Xcode
With the project including both iOS and macOS targets, using an
absolute path ensures it is incorrect for one of those. Since it was
using /usr/local/lib/ all the paths had to be changed in Xcode to
build the iOS target.

Also as the paths where we expect the libraries to be (/usr/local/lib
on macOS and lib under the build directory for iOS) are added to the
search path in the Xcode project, we do not actually need to use
absolute path). Also this make it easier to use a different path for
libraries (e.g. if using MacPort or brew) as we only need to change
the search path setting in the Xcode project and not the
path for each library).
2020-04-24 10:53:23 +02:00
Matthew Duggan a241f33dec CREATE_PROJECT: Add libSDL_net to OSX config when needed 2020-04-11 16:06:32 +09:00
SupSuper aa9aa503fd MSVC: Fix compilation on non-ASCII systems 2020-03-26 07:21:15 +00:00
SupSuper 260bcdd648 MSVC: Fix compilation on Windows SDK 8.1 2020-03-26 07:18:40 +00:00
Lothar Serra Mari b25841e4ae BUILD: Add ultima.dat to the list of engine data files 2020-02-02 22:35:20 +01:00
Bastien Bouclet 14663c4790 KEYMAPPER: Make the keymapper mandatory 2020-01-29 08:51:29 +01:00
SupSuper 316bb297b3 CREATE_PROJECT: Only link to sapi on Windows 2019-12-16 01:03:06 +00:00
SupSuper 4c89d6dca3 MSVC: Enable C++ Conformance mode
Disables non-portable behaviors in modern Visual Studio.
This reduces the chance of code compiling correctly in MSVC but failing in other compilers.
2019-11-24 04:56:53 +00:00
Michał Janiszewski c7a5b15218 DEVTOOLS: Add missing libraries to cmake-based create_project 2019-11-14 22:13:30 +00:00
Jaromir Wysoglad d68baf4008 CREATE_PROJECT: Enable TTS on msvc by default 2019-10-14 01:34:54 +02:00
SupSuper d0a7029131 MSVC: Fix missing internal_revision.h on clean builds
Can't compare with a file that doesn't exist
2019-10-12 22:57:46 +01:00
Le Philousophe c893c5a60b MSVC: Fix MoveFile error when destination exists
Use CopyFile with overwrite flag instead
2019-09-25 18:23:34 +02:00
Le Philousophe d16e6a7d49 MSVC: Don't overwrite version.h if it hasn't changed
That avoids superfluous recompilation and linkage of project when nothing
has changed.
2019-09-20 11:18:18 +02:00
Jaromir Wysoglad b97333d4b7 TTS: Remove USE_PLATFORM_TTS defines
Use defined(USE_TTS) && defined(PLATFORM) instead
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad e965df1e88 TTS: Add TTS support when compiling with msvc. 2019-09-01 22:47:55 +03:00
Thierry Crozat 406cc80458 CREATE_PROJECT: Handle compilation with libcurl and SDL_net in Xcode projects 2019-08-19 23:02:59 +01:00
Nipun Garg c1f029c6dc COMMON: Move Lua into Common and make it into...
an engine feature
2019-08-13 10:18:02 +02:00
Thierry Crozat 53501a4756 JANITORIAL: Fix indentation 2019-08-07 21:04:43 +01:00
Thierry Crozat 468c0f0743 IOS7: Implement isConnectionLimited 2019-08-04 19:03:34 +01:00
Antoniou Athanasios e9623740f0 WIN32: Add a default application manifest
This fixes an OpenGL renderer issue for builds with MSYS2/Mingw64 or MSYS2/Mingw32

The issue pertains to MSYS2 adding a default manifest file (default-manifest.o) to the executable

The bug is for PC systems with GPU drivers that were not properly supported for Windows 10 
systems, like Intel HD Graphics series 1st and 2nd generations. In those systems, launching a 
game in ScummVM (built with MSYS2/Mingw) with the OpenGL renderer would cause the game 
screen to be a white blank image, and various warnings would be output to the console, eg.
"WARNING: GL ERROR: GL_INVALID_ENUM on glTexSubImage2D(0x0DE1, 0, 0, area.top, src.w, area.height(), _glFormat, _glType, src.gere.cpp:167)!"
This was due to MSYS2/Mingw builds trying to load the (poorly supported) GPU driver while advertising support for Windows 10 in their
embedded default Manifest file. Hence, the GPU driver DLL (eg ig4icd64.dll) would be unloaded, causing the bug.

More information is available in the following links:
https://github.com/pal1000/save-legacy-intel-graphics
https://github.com/LWJGL/lwjgl/issues/119
https://github.com/msys2/MSYS2-packages/issues/454
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69880

Credits to sluicebox for the VS GenerateManifest flag
2019-08-04 14:18:50 +03:00
Le Philousophe 418cec512f CRYOMNI3D: Add internationalization through external DAT file 2019-07-05 07:51:19 +02:00
Cameron Cawley eb1f9fb02d JANITORIAL: Remove outdated references to SourceForge.net 2019-07-02 21:07:54 +02:00
SupSuper 69cb2ef728 CREATE_PROJECT: Use stricter checks for Win32 dependencies
Instead of checking the project type, check the define.
winmm and winsparkle are only required on Windows.
2019-07-02 01:02:27 +03:00
SupSuper 7e6143a641 CREATE_PROJECT: Add new libcurl dependencies 2019-07-02 01:02:27 +03:00
SupSuper 12198cee35 CREATE_PROJECT: Fix defines for x64 MSVC project
Rewriting the define list from scratch to disable nasm lost
a lot of important defines set up in the setup phase.
Instead, let's just remove the nasm define and preserve the rest.
2019-07-02 01:02:27 +03:00
SupSuper 8aa74967e9 CREATE_PROJECT: Add missing source files to CodeBlocks project 2019-07-01 01:59:00 +01:00
SupSuper 74f9e0dfc0 CREATE_PROJECT: Remove obsolete "browser.cpp" hack
browser.cpp no longer depends on the target platform since pull request #1414
2019-07-01 01:57:26 +01:00
SupSuper 558b07584e CREATE_PROJECT: Use name-based UUIDs for MSVC projects
This keeps the project UUIDs consistent between regenerations,
avoiding excessive workspace reloads.
2019-06-19 00:15:48 +03:00