2015-04-12 18:56:23 +02:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-04-12 18:56:23 +02:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-03-31 03:11:23 +02:00
|
|
|
#ifdef IOS
|
|
|
|
#include <Availability.h>
|
|
|
|
#else
|
2015-03-30 17:10:31 +02:00
|
|
|
#include <AvailabilityMacros.h>
|
2015-03-31 03:11:23 +02:00
|
|
|
#endif
|
2015-02-28 19:52:26 +01:00
|
|
|
|
2015-02-28 20:16:52 +01:00
|
|
|
#ifndef __IPHONE_OS_VERSION_MAX_ALLOWED
|
|
|
|
#define __IPHONE_OS_VERSION_MAX_ALLOWED 00000
|
|
|
|
#endif
|
|
|
|
|
2024-04-29 21:30:15 -04:00
|
|
|
#if defined(HAVE_ZLIB) || defined(HAVE_7ZIP)
|
|
|
|
#define HAVE_COMPRESSION 1
|
|
|
|
#endif
|
|
|
|
|
2018-11-04 09:29:40 -07:00
|
|
|
#if defined(HAVE_COCOATOUCH) || defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL)
|
2021-01-24 03:56:05 +01:00
|
|
|
|
2019-02-09 21:10:28 +01:00
|
|
|
#include "../ui/drivers/cocoa/cocoa_common.m"
|
2023-11-30 06:30:17 -05:00
|
|
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
2018-11-04 09:29:40 -07:00
|
|
|
#include "../gfx/drivers_context/cocoa_gl_ctx.m"
|
2021-01-18 20:02:31 +01:00
|
|
|
#endif
|
|
|
|
#if defined(HAVE_VULKAN)
|
|
|
|
#include "../gfx/drivers_context/cocoa_vk_ctx.m"
|
|
|
|
#endif
|
2015-02-28 19:12:27 +01:00
|
|
|
|
2021-01-24 03:56:05 +01:00
|
|
|
#if defined(OSX)
|
2015-04-20 12:43:07 +02:00
|
|
|
#include "../ui/drivers/ui_cocoa.m"
|
2021-01-24 03:56:05 +01:00
|
|
|
#else
|
|
|
|
#include "../ui/drivers/ui_cocoatouch.m"
|
|
|
|
#endif
|
|
|
|
|
2023-05-21 03:21:34 -04:00
|
|
|
#include "../input/drivers/cocoa_input.m"
|
|
|
|
|
2019-02-07 04:47:24 +01:00
|
|
|
#endif
|
|
|
|
|
2015-02-28 19:52:26 +01:00
|
|
|
#ifdef HAVE_MFI
|
2015-11-16 02:39:38 +01:00
|
|
|
#include "../input/drivers_joypad/mfi_joypad.m"
|
2015-04-05 05:36:53 +02:00
|
|
|
#endif
|
2018-05-29 10:30:56 +02:00
|
|
|
|
2024-05-22 13:40:51 -04:00
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
#include "../frontend/drivers/platform_darwin.m"
|
|
|
|
#endif
|
|
|
|
|
2019-01-31 23:14:20 +01:00
|
|
|
#ifdef HAVE_COREAUDIO3
|
|
|
|
#include "../audio/drivers/coreaudio3.m"
|
|
|
|
#endif
|
|
|
|
|
2018-05-29 10:30:56 +02:00
|
|
|
#if defined(HAVE_DISCORD)
|
|
|
|
#include "../deps/discord-rpc/src/discord_register_osx.m"
|
|
|
|
#endif
|
2018-06-20 21:29:53 -07:00
|
|
|
|
|
|
|
#ifdef HAVE_METAL
|
2021-03-21 18:06:00 +01:00
|
|
|
#import "../gfx/common/metal/metal_renderer.m"
|
2018-06-20 21:29:53 -07:00
|
|
|
#import "../gfx/drivers/metal.m"
|
|
|
|
#endif
|
2023-07-12 01:50:28 -04:00
|
|
|
|
|
|
|
#if defined(HAVE_NETWORKING) && defined(HAVE_NETPLAYDISCOVERY) && defined(HAVE_NETPLAYDISCOVERY_NSNET)
|
|
|
|
#import "../network/netplay/netplay_nsnetservice.m"
|
|
|
|
#endif
|