scummvm/backends/module.mk

493 lines
11 KiB
Makefile
Raw Normal View History

MODULE := backends
MODULE_OBJS := \
base-backend.o \
2010-06-13 20:33:54 +00:00
modular-backend.o \
audiocd/audiocd-stream.o \
2010-06-13 20:33:54 +00:00
audiocd/default/default-audiocd.o \
events/default/default-events.o \
fs/abstract-fs.o \
fs/stdiostream.o \
keymapper/action.o \
keymapper/hardware-input.o \
keymapper/input-watcher.o \
keymapper/keymap.o \
keymapper/keymapper.o \
keymapper/remap-widget.o \
keymapper/standard-actions.o \
keymapper/virtual-mouse.o \
log/log.o \
midi/alsa.o \
midi/dmedia.o \
midi/seq.o \
midi/sndio.o \
midi/stmidi.o \
midi/timidity.o \
saves/savefile.o \
saves/default/default-saves.o \
timer/default/default-timer.o
ifdef USE_CLOUD
ifdef USE_LIBCURL
MODULE_OBJS += \
cloud/basestorage.o \
cloud/cloudicon.o \
cloud/cloudmanager.o \
cloud/iso8601.o \
cloud/storage.o \
cloud/storagefile.o \
cloud/downloadrequest.o \
cloud/folderdownloadrequest.o \
cloud/savessyncrequest.o \
2016-07-12 18:33:35 +00:00
cloud/box/boxstorage.o \
cloud/box/boxlistdirectorybyidrequest.o \
cloud/box/boxtokenrefresher.o \
2016-07-13 14:05:56 +00:00
cloud/box/boxuploadrequest.o \
cloud/dropbox/dropboxstorage.o \
cloud/dropbox/dropboxcreatedirectoryrequest.o \
cloud/dropbox/dropboxinforequest.o \
cloud/dropbox/dropboxlistdirectoryrequest.o \
cloud/dropbox/dropboxtokenrefresher.o \
2016-05-29 20:23:29 +00:00
cloud/dropbox/dropboxuploadrequest.o \
cloud/googledrive/googledrivelistdirectorybyidrequest.o \
cloud/googledrive/googledrivestorage.o \
cloud/googledrive/googledrivetokenrefresher.o \
cloud/googledrive/googledriveuploadrequest.o \
cloud/id/idstorage.o \
cloud/id/idcreatedirectoryrequest.o \
cloud/id/iddownloadrequest.o \
cloud/id/idlistdirectoryrequest.o \
cloud/id/idresolveidrequest.o \
cloud/id/idstreamfilerequest.o \
cloud/onedrive/onedrivestorage.o \
cloud/onedrive/onedrivecreatedirectoryrequest.o \
cloud/onedrive/onedrivetokenrefresher.o \
cloud/onedrive/onedrivelistdirectoryrequest.o \
cloud/onedrive/onedriveuploadrequest.o
endif
endif
ifdef USE_SCUMMVMDLC
ifdef USE_LIBCURL
MODULE_OBJS += \
dlc/scummvmcloud.o
endif
endif
ifdef USE_DLC
MODULE_OBJS += \
dlc/dlcmanager.o
endif
ifdef USE_LIBCURL
MODULE_OBJS += \
networking/curl/connectionmanager.o \
networking/curl/networkreadstream.o \
networking/curl/curlrequest.o \
networking/curl/curljsonrequest.o \
networking/curl/postrequest.o \
networking/curl/request.o \
networking/curl/session.o \
networking/curl/sessionrequest.o \
2023-02-13 11:15:20 +00:00
networking/curl/socket.o \
networking/curl/url.o
endif
ifdef USE_SDL_NET
MODULE_OBJS += \
networking/sdl_net/client.o \
networking/sdl_net/getclienthandler.o \
networking/sdl_net/handlers/createdirectoryhandler.o \
networking/sdl_net/handlers/downloadfilehandler.o \
networking/sdl_net/handlers/filesajaxpagehandler.o \
networking/sdl_net/handlers/filesbasehandler.o \
networking/sdl_net/handlers/filespagehandler.o \
networking/sdl_net/handlers/indexpagehandler.o \
networking/sdl_net/handlers/listajaxhandler.o \
networking/sdl_net/handlers/resourcehandler.o \
2016-07-08 10:00:11 +00:00
networking/sdl_net/handlers/uploadfilehandler.o \
networking/sdl_net/handlerutils.o \
2016-07-08 07:42:48 +00:00
networking/sdl_net/localwebserver.o \
networking/sdl_net/reader.o \
networking/sdl_net/uploadfileclienthandler.o
endif
ifdef USE_CLOUD
ifdef USE_LIBCURL
ifdef USE_SDL_NET
MODULE_OBJS += \
networking/sdl_net/handlers/connectcloudhandler.o
endif
endif
endif
# ENet networking source files.
ifdef USE_ENET
MODULE_OBJS += \
networking/enet/source/callbacks.o \
networking/enet/source/compress.o \
networking/enet/source/host.o \
networking/enet/source/list.o \
networking/enet/source/packet.o \
networking/enet/source/peer.o \
networking/enet/source/protocol.o
ifdef WIN32
MODULE_OBJS += \
networking/enet/source/win32.o
else
MODULE_OBJS += \
networking/enet/source/unix.o
endif
MODULE_OBJS += \
2022-10-22 00:11:21 +00:00
networking/enet/enet.o \
networking/enet/host.o \
networking/enet/socket.o
endif
ifdef USE_ELF_LOADER
MODULE_OBJS += \
plugins/elf/arm-loader.o \
plugins/elf/elf-loader.o \
plugins/elf/elf-provider.o \
plugins/elf/memory-manager.o \
plugins/elf/mips-loader.o \
plugins/elf/ppc-loader.o \
plugins/elf/shorts-segment-manager.o \
plugins/elf/version.o
endif
ifdef ENABLE_VKEYBD
MODULE_OBJS += \
vkeybd/image-map.o \
vkeybd/polygon.o \
vkeybd/virtual-keyboard.o \
vkeybd/virtual-keyboard-gui.o \
vkeybd/virtual-keyboard-parser.o
endif
# OpenGL specific source files.
ifdef USE_OPENGL
MODULE_OBJS += \
graphics/opengl/framebuffer.o \
graphics/opengl/opengl-graphics.o \
2015-12-20 04:42:54 +00:00
graphics/opengl/shader.o \
graphics/opengl/texture.o \
graphics/opengl/pipelines/clut8.o \
graphics/opengl/pipelines/fixed.o \
graphics/opengl/pipelines/pipeline.o \
graphics/opengl/pipelines/libretro.o \
graphics/opengl/pipelines/libretro/parser.o \
graphics/opengl/pipelines/shader.o
endif
# SDL specific source files.
# We cannot just check $BACKEND = sdl, as various other backends
# derive from the SDL backend, and they all need the following files.
ifdef SDL_BACKEND
MODULE_OBJS += \
events/sdl/legacy-sdl-events.o \
events/sdl/sdl-events.o \
graphics/sdl/sdl-graphics.o \
graphics/surfacesdl/surfacesdl-graphics.o \
mixer/sdl/sdl-mixer.o \
mixer/null/null-mixer.o \
mutex/sdl/sdl-mutex.o \
timer/sdl/sdl-timer.o
2013-05-16 21:18:09 +00:00
2023-01-23 21:36:44 +00:00
ifndef RISCOS
ifndef KOLIBRIOS
MODULE_OBJS += plugins/sdl/sdl-provider.o
endif
endif
# SDL 2 removed audio CD support
ifndef USE_SDL2
MODULE_OBJS += \
audiocd/sdl/sdl-audiocd.o
endif
ifdef USE_OPENGL
MODULE_OBJS += \
graphics/openglsdl/openglsdl-graphics.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o \
graphics3d/openglsdl/openglsdl-graphics3d.o
endif
ifdef USE_DISCORD
MODULE_OBJS += \
presence/discord/discord.o
endif
endif
2023-01-23 21:36:44 +00:00
ifdef KOLIBRIOS
MODULE_OBJS += \
fs/kolibrios/kolibrios-fs.o \
fs/kolibrios/kolibrios-fs-factory.o \
fs/posix/posix-iostream.o \
2023-01-23 10:41:43 +00:00
plugins/kolibrios/kolibrios-provider.o \
2023-01-23 21:36:44 +00:00
saves/kolibrios/kolibrios-saves.o
endif
ifdef POSIX
MODULE_OBJS += \
fs/posix/posix-fs.o \
fs/posix/posix-fs-factory.o \
fs/posix/posix-iostream.o \
fs/posix-drives/posix-drives-fs.o \
fs/posix-drives/posix-drives-fs-factory.o \
fs/chroot/chroot-fs-factory.o \
fs/chroot/chroot-fs.o \
plugins/posix/posix-provider.o \
saves/posix/posix-saves.o \
taskbar/unity/unity-taskbar.o \
dialogs/gtk/gtk-dialogs.o
ifdef USE_SPEECH_DISPATCHER
ifdef USE_TTS
MODULE_OBJS += \
text-to-speech/linux/linux-text-to-speech.o
endif
endif
2016-07-19 18:05:03 +00:00
endif
ifdef MACOSX
MODULE_OBJS += \
audiocd/macosx/macosx-audiocd.o \
dialogs/macosx/macosx-dialogs.o \
midi/coreaudio.o \
2011-07-03 21:01:17 +00:00
midi/coremidi.o \
updates/macosx/macosx-updates.o \
2016-07-18 09:42:02 +00:00
taskbar/macosx/macosx-taskbar.o
ifdef USE_TTS
MODULE_OBJS += \
text-to-speech/macosx/macosx-text-to-speech.o
endif
ifdef SDL_BACKEND
MODULE_OBJS += \
plugins/sdl/macosx/macosx-provider.o
endif
endif
ifdef WIN32
MODULE_OBJS += \
2015-09-29 21:47:57 +00:00
audiocd/win32/win32-audiocd.o \
dialogs/win32/win32-dialogs.o \
fs/windows/windows-fs.o \
fs/windows/windows-fs-factory.o \
midi/windows.o \
plugins/win32/win32-provider.o \
saves/windows/windows-saves.o \
2016-05-22 15:52:33 +00:00
updates/win32/win32-updates.o \
2016-07-19 18:05:03 +00:00
taskbar/win32/win32-taskbar.o
ifdef USE_TTS
MODULE_OBJS += \
text-to-speech/windows/windows-text-to-speech.o
endif
endif
ifeq ($(BACKEND),3ds)
MODULE_OBJS += \
mutex/3ds/3ds-mutex.o
endif
ifeq ($(BACKEND),android)
MODULE_OBJS += \
2023-01-08 11:44:33 +00:00
fs/android/android-fs-factory.o \
fs/android/android-posix-fs.o \
fs/android/android-saf-fs.o \
graphics/android/android-graphics.o \
graphics3d/android/android-graphics3d.o \
graphics3d/android/texture.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o \
mutex/pthread/pthread-mutex.o
endif
ifdef AMIGAOS
MODULE_OBJS += \
dialogs/amigaos/amigaos-dialogs.o \
fs/amigaos/amigaos-fs.o \
fs/amigaos/amigaos-fs-factory.o \
midi/camd.o
endif
2019-05-12 08:56:40 +00:00
ifdef MORPHOS
MODULE_OBJS += \
fs/morphos/morphos-fs.o \
fs/morphos/morphos-fs-factory.o \
dialogs/morphos/morphos-dialogs.o \
midi/camd.o
2019-05-12 08:56:40 +00:00
endif
2017-09-14 16:40:22 +00:00
ifdef RISCOS
MODULE_OBJS += \
2019-04-15 18:09:33 +00:00
events/riscossdl/riscossdl-events.o \
graphics/riscossdl/riscossdl-graphics.o \
2017-09-14 16:40:22 +00:00
fs/riscos/riscos-fs.o \
fs/riscos/riscos-fs-factory.o \
2022-01-14 13:08:17 +00:00
midi/riscos.o \
plugins/riscos/riscos-provider.o
ifndef SDL_BACKEND
# This is needed for null backend but already included in SDL backend
MODULE_OBJS += \
platform/sdl/riscos/riscos-utils.o
2017-09-14 16:40:22 +00:00
endif
endif
2017-09-14 16:40:22 +00:00
ifdef PLAYSTATION3
MODULE_OBJS += \
fs/posix/posix-fs.o \
fs/posix/posix-fs-factory.o \
2019-11-22 17:42:40 +00:00
fs/posix/posix-iostream.o \
fs/ps3/ps3-fs-factory.o \
events/ps3sdl/ps3sdl-events.o
endif
ifdef USE_LINUXCD
MODULE_OBJS += \
audiocd/linux/linux-audiocd.o
endif
ifeq ($(BACKEND),3ds)
MODULE_OBJS += \
plugins/3ds/3ds-provider.o
endif
ifeq ($(BACKEND),atari)
MODULE_OBJS += \
events/atari/atari-events.o \
graphics/atari/atari_c2p-asm.o \
graphics/atari/atari-graphics.o \
graphics/atari/atari-graphics-asm.o \
mixer/atari/atari-mixer.o
endif
ifeq ($(BACKEND),ds)
MODULE_OBJS += \
2020-08-06 14:04:24 +00:00
events/ds/ds-events.o \
2020-06-01 21:47:20 +00:00
fs/posix/posix-fs.o \
fs/posix/posix-fs-factory.o \
fs/posix/posix-iostream.o \
fs/posix-drives/posix-drives-fs.o \
fs/posix-drives/posix-drives-fs-factory.o \
fs/devoptab/devoptab-fs-factory.o \
2020-08-23 15:01:19 +00:00
mixer/maxmod/maxmod-mixer.o \
plugins/ds/ds-provider.o
endif
ifeq ($(BACKEND),dingux)
MODULE_OBJS += \
events/dinguxsdl/dinguxsdl-events.o
endif
ifeq ($(BACKEND),gph)
MODULE_OBJS += \
events/gph/gph-events.o \
graphics/gph/gph-graphics.o
endif
2020-11-08 15:57:50 +00:00
ifdef IPHONE
2020-09-04 12:28:52 +00:00
MODULE_OBJS += \
IOS7: Add iOSGraphicsManager class The ios7 backend implements the graphic handling in the backend code. iOS supports OpenGL through the OpenGL Framework since iOS 2.0. It's marked as deprecated but is still shipped with the SDKs for iPhoneOS and tvOS and will hopefully be so for some time. The ios7 backend can therefore utilize the OpenGLGraphicsManager to handle all graphics. Implement an iOSGraphicsManager class that can be used in the ios7 backend. The iOSGraphicsManager will require some callback functions in the ios7 backend. createOpenGLContext() will be called to ask the backend to create an OpenGL context in which the graphic manager can draw. The function returns the ID of the renderbuffer which shall be used when creating the framebuffer object this differ iOS from other platforms). A custom RenderBufferTarget class is added to address this. destroyOpenGLContext() will be called to make sure that the old GLES context is not reused. notifyContextDestroy() does call the function OpenGLContext.reset() but that will not destroy the context. refreshScreen() will be called to ask the backend to present the drawn graphics on the screen. getSystemHiDPIScreenFactor() is called to get the screen scaling factor. getScreenWidth() and getScreenHeight() are called to get the width and height of the surface to draw on. This commit adds the class but the ios7 backend doesn't make use of it quite yet. To use it require the ios7 to be a child class of the ModularGraphicsBackend. That change requires a lot of changes which will be targeted in separate commits. Update docportal and github ci worker to only disable the feature opengl_classic_game since opengl and opengl_shaders are required to compile the OpenGLGraphicsManager.
2023-05-31 06:02:38 +00:00
mutex/pthread/pthread-mutex.o \
graphics/ios/ios-graphics.o \
graphics/ios/renderbuffer.o \
graphics3d/ios/ios-graphics3d.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o
2020-09-04 12:28:52 +00:00
endif
ifeq ($(BACKEND),maemo)
MODULE_OBJS += \
2011-11-29 19:38:17 +00:00
events/maemosdl/maemosdl-events.o \
graphics/maemosdl/maemosdl-graphics.o
endif
ifeq ($(BACKEND),n64)
MODULE_OBJS += \
fs/n64/n64-fs.o \
fs/n64/n64-fs-factory.o \
fs/n64/romfsstream.o
endif
2019-11-30 21:48:17 +00:00
ifeq ($(BACKEND),null)
MODULE_OBJS += \
mixer/null/null-mixer.o
endif
ifdef MIYOO
ifeq ($(MIYOO_TARGET), miyoomini)
MODULE_OBJS += \
graphics/miyoo/miyoomini-graphics.o
endif
endif
ifdef OPENDINGUX
MODULE_OBJS += \
graphics/opendingux/opendingux-graphics.o
endif
ifeq ($(BACKEND),openpandora)
MODULE_OBJS += \
events/openpandora/op-events.o \
graphics/openpandora/op-graphics.o
endif
ifeq ($(BACKEND),psp)
MODULE_OBJS += \
fs/psp/psp-fs.o \
fs/psp/psp-fs-factory.o \
fs/psp/psp-stream.o \
plugins/psp/psp-provider.o \
timer/psp/timer.o
endif
ifeq ($(BACKEND),psp2)
MODULE_OBJS += \
fs/posix/posix-fs.o \
2019-11-22 17:42:40 +00:00
fs/posix/posix-iostream.o \
fs/posix-drives/posix-drives-fs.o \
fs/posix-drives/posix-drives-fs-factory.o \
2022-07-18 17:25:57 +00:00
plugins/psp2/psp2-provider.o \
events/psp2sdl/psp2sdl-events.o
endif
2011-05-24 11:24:37 +00:00
ifeq ($(BACKEND),samsungtv)
MODULE_OBJS += \
events/samsungtvsdl/samsungtvsdl-events.o
endif
ifeq ($(BACKEND),wii)
MODULE_OBJS += \
fs/wii/wii-fs.o \
fs/wii/wii-fs-factory.o \
mutex/wii/wii-mutex.o \
plugins/wii/wii-provider.o
endif
2018-09-20 14:33:08 +00:00
ifeq ($(BACKEND),switch)
MODULE_OBJS += \
events/switchsdl/switchsdl-events.o
endif
2013-05-16 21:18:09 +00:00
ifdef ENABLE_EVENTRECORDER
MODULE_OBJS += \
mixer/null/null-mixer.o \
2013-05-16 21:18:09 +00:00
saves/recorder/recorder-saves.o
endif
# Include common rules
include $(srcdir)/rules.mk