Commit Graph
542 Commits
Author SHA1 Message Date
Cameron Cawley ed9c052d57 COMMON: Split Lua into a separate module 2022-11-16 22:45:26 +02:00
Orgad Shaneh eef62b8b41 CREATE_PROJECT: Fix condition for warning suppression
It should not include e.g. GCC 11.2.
2022-10-27 10:19:17 +03:00
Orgad Shaneh 246a062950 CONFIGURE/CREATE_PROJECT: Silence address-of-packed-member GCC 12 warning
It appears a lot, and these casts are intentional and look safe.

Example:
../scummvm/engines/glk/alan3/actor.cpp: In function 'Glk::Alan3::ScriptEntry* Glk::Alan3::scriptOf(int)':
../scummvm/engines/glk/alan3/lists.h:35:52: warning: converting a packed 'Glk::Alan3::ScriptEntry' pointer (alignment 1) to a 'Glk::Alan3::Aword' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member]
   35 | #define isEndOfArray(x) implementationOfIsEndOfList((Aword *) (x))
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../scummvm/engines/glk/alan3/actor.cpp:38:84: note: in expansion of macro 'isEndOfArray'
   38 |                 for (scr = (ScriptEntry *) pointerTo(header->scriptTableAddress); !isEndOfArray(scr); scr++)
      |                                                                                    ^~~~~~~~~~~~
In file included from ../scummvm/engines/glk/alan3/actor.h:25,
                 from ../scummvm/engines/glk/alan3/actor.cpp:22:
../scummvm/engines/glk/alan3/acode.h:453:8: note: defined here
  453 | struct ScriptEntry {    /* SCRIPT TABLE */
      |        ^~~~~~~~~~~
2022-10-27 02:26:02 +03:00
Lars Sundström 4133cf4b9f IOS7: Add GameController capability
Add the GameController framework to the project and enable support for
controller user interaction in the Info.plist file. This allows for
Game Controller compatible devices to notify the application when
connected.

Add GameController framework to configure and ports.mk if not using
Xcode to build the target.
2022-08-08 21:08:56 +01:00
sluicebox da8dbea44b CREATE_PROJECT: Restrict /Zc:__cplusplus to newer MSVC
Fixes compiler warnings on older versions that don't support this
2022-06-06 17:32:50 -04:00
sluicebox 924f208a03 CREATE_PROJECT: Text console debugger optional on Xcode
Prior to this, create_project always set USE_TEXT_CONSOLE_FOR_DEBUGGER on Xcode.
This was hard-coded behavior that I should have removed when I added configuring
this feature on the command line in 8c32927f39

Now it's disabled by default and can be enabled by --enable-text-console, just
like the other projects.
2022-05-20 23:43:59 -04:00
elasota 5f0c6fa4d0 CREATE_PROJECT: Add /Zc:__cplusplus so __cplusplus macro matches C++ feature level 2022-05-13 10:22:21 +03:00
elasota 22b72dba52 COMMON: Remove BasePtr base class from SharedPtr and WeakPtr. Fix missing refCount method in SharedPtr. 2022-04-25 18:20:19 -07:00
elasota bd23944fd1 COMMON: Fix SharedPtr natvis 2022-04-25 18:20:19 -07:00
SupSuper 601d9dc7d4 CREATE_PROJECT: Warning flag -Wall already includes -Wimplicit 2022-04-25 06:59:13 +01:00
SupSuper 18ebbdcf99 CREATE_PROJECT: Don't add GCC warnings to MSVC CMake 2022-04-25 06:46:28 +01:00
SupSuper d2ad40a7a1 CREATE_PROJECT: Fix missing prefix in CMake engines 2022-04-25 06:28:40 +01:00
Filippos Karapetis ec16ebbf96 Revert "SCUMM: Refactor the workaround for the broken sample in Indy4"
This reverts commit c59df76164.
2022-04-16 14:25:51 +03:00
Filippos Karapetis c59df76164 SCUMM: Refactor the workaround for the broken sample in Indy4
This makes the workaround code more self-contained
2022-04-16 14:23:02 +03:00
Paweł Kołodziejski 8b6df2de29 DEVTOOLS: XCode: Update iOS deployment version 2022-03-11 17:24:13 +01:00
Orgad Shaneh 34d3841269 CREATE_PROJECT: Fix cmake project with opengl enabled
Compliments 04b1ce5a6e.
2022-03-07 14:42:52 +02:00
Paweł Kołodziejski 2ac26ade3e DEVTOOLS: Xcode project: Add shaders files only for specific enabled engines 2022-03-07 11:08:57 +01:00
Paweł Kołodziejski b21a081f2c DEVTOOLS: Added shader files to Xcode project 2022-03-06 23:30:02 +01:00
Orgad Shaneh c02abd2967 CREATE_PROJECT: Simplify engines part
Create a function add_engine which handles everything for the engine, and
remove redundant conditions all over the project file.
2022-03-05 21:39:08 +02:00
Orgad Shaneh 097b543c6c CREATE_PROJECT: Replace c++0x with c++11 in Xcode generator 2022-03-05 21:34:01 +02:00
Paweł Kołodziejski fbd6b1ceed DEVTOOLS: Skip 'openglsdl' directory for iOS Xcode project 2022-03-04 19:22:17 +01:00
NMIError 221fa4c841 AUDIO: Add support for RetroWave OPL3
This commit adds support for the SudoMaker RetroWave OPL3 sound card. Requires
the retrowave library.

Add the following settings to scummvm.ini:
retrowaveopl3_bus=serial
retrowaveopl3_port=<port> f.e. COM3 or ttyACM0
2022-01-29 17:33:29 +01:00
Le Philousophe 04b1ce5a6e CREATE_PROJECT: Make OpenGL features consistent with configure 2022-01-18 16:49:03 +01:00
Orgad Shaneh 7998025b98 CREATE_PROJECT: Centralize toUpper 2022-01-18 09:24:29 +02:00
Orgad Shaneh aa24872dc6 CREATE_PROJECT: Accept std::ostream in writeFileListToProject 2022-01-14 12:53:21 +02:00
Orgad Shaneh c20f81e430 CREATE_PROJECT: Sparkle override/final 2022-01-14 12:53:21 +02:00
Orgad Shaneh be1e3a011a CREATE_PROJECT: Use range-based for in cmake generator 2022-01-14 08:35:31 +02:00
Orgad Shaneh cf32f6a497 CREATE_PROJECT: Leverage C++11 string literals for cmake generator 2022-01-14 06:02:13 +02:00
Orgad Shaneh 56495448b2 CREATE_PROJECT: Enable C++11 2022-01-14 06:02:13 +02:00
Orgad Shaneh f7d528e1b8 DEVTOOLS: Fix link in cmake project with tts enabled 2022-01-12 23:42:41 +02:00
Orgad Shaneh 1d080331a4 DEVTOOLS: Bump minimum cmake version to 3.13
This mutes the following warning:
CMake Warning (dev) at CMakeLists.txt:1581 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "scummvm" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.
2022-01-12 23:41:38 +02:00
Le Philousophe 52dcac9fc6 CREATE_PROJECT: Fix theoradec feature name
This is needed by sword25
2022-01-09 17:28:17 +01:00
Le Philousophe 0011ad97cb CREATE_PROJECT: Add a warning when the feature is not found 2022-01-09 17:28:17 +01:00
Henrik "Henke37" Andersson 8119ae19c0 CREATE_PROJECT: Fix feature name for freetype
The name was inconsistent with the main build system
2022-01-09 18:27:24 +02:00
Henrik "Henke37" Andersson 61e2c5c928 CREATE_PROJECT: Consistent name for zlib
The feature name didn't match with other code.
2022-01-06 22:43:05 +02:00
Paweł Kołodziejski f1812277d2 DEVTOOLS: Enable mpeg2 by default 2022-01-01 13:38:06 +01:00
Cameron Cawley 21b0d6ded1 BACKENDS: Replace GLEW with GLAD, part of PR #3463 2021-12-30 14:53:48 +01:00
Eugene Sandulenko d79b75dce5 DOCS: Moved all non-main licenses to LICENSES/ directory. Synced all lists
I could potentially break some port packaging as my changes were not tested
2021-12-27 14:58:23 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paweł Kołodziejski 02dd2eb068 DEVTOOLS: Added suppress options in xcode for pragma and deprecated opengl/es 2021-12-05 16:38:56 +01:00
Orgad Shaneh 62797daf3c DEVTOOLS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Eugene Sandulenko c69fadfa65 BUILD: Added gui-icons.dat to the list of redistributable files 2021-11-12 14:46:34 +01:00
sluicebox 5b5cdbeea9 CREATE_PROJECT: Update MSVC jpeg debug lib name
Required for CI; libjpeg-turbo debug builds no longer have a "d"
suffix when building with vcpkg.
2021-11-11 20:17:49 +01:00
SupSuper f4c904d2d2 CREATE_PROJECT: Add Visual Studio 2022 support
Because I know someone's gonna ask me about it :P
2021-11-10 05:49:03 +00:00
sluicebox 76778e100f CREATE_PROJECT: Remove VS2008 project generator
Now that C++11 is mandatory we can retire our old friend
2021-11-07 11:36:49 +02:00
sluicebox 16bf767de3 CREATE_PROJECT: Add --include-dir and --library-dir
Additional include and library directories can now be added.

This is most useful to Xcode Mac projects where a vanilla Homebrew setup
requires manually adding five directories through the Xcode UI and then
repeating that every time the project needs to be regenerated.

Now create_project can be scripted to regenerate a working Mac project
without any extra Xcode steps.
2021-11-06 19:08:06 -05:00
sluicebox 4025901ab1 CREATE_PROJECT: Add DETECTION_FULL feature
Allows disabling full detection with --disable-detection-full,
just like the configure script.
2021-11-01 21:34:55 +01:00
Eugene Sandulenko e5a60d34cc CREATE_PROJECT: Enable C++11 for Xcode by default 2021-10-31 11:52:06 +02:00
Eugene Sandulenko 886a8c43a1 CREATE_PROJECT: Drop cxx11 feature 2021-10-31 11:45:08 +02:00
Orgad Shaneh 0b2ae9fa5e DEVTOOLS: Replace ugly SDL/MinGW hack with a cleaner hack
Instead of having main=SDL_main defined by pkg-config/sdl2-config --cflags
and undefining it everywhere, strip it in its origin.
2021-08-03 07:35:15 +03:00