(Metal) Fix some build problems
This commit is contained in:
parent
7b3f042fc6
commit
a83c328631
|
@ -51,7 +51,7 @@ void rcheevos_get_achievement_state(unsigned index, char* buffer, size_t buffer_
|
||||||
|
|
||||||
bool rcheevos_get_description(rcheevos_ctx_desc_t *desc);
|
bool rcheevos_get_description(rcheevos_ctx_desc_t *desc);
|
||||||
|
|
||||||
void rcheevos_pause_hardcore();
|
void rcheevos_pause_hardcore(void);
|
||||||
|
|
||||||
bool rcheevos_unload(void);
|
bool rcheevos_unload(void);
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ extern "C" {
|
||||||
rc_hash_cdreader_close_track_handler close_track;
|
rc_hash_cdreader_close_track_handler close_track;
|
||||||
};
|
};
|
||||||
|
|
||||||
void rc_hash_init_default_cdreader();
|
void rc_hash_init_default_cdreader(void);
|
||||||
void rc_hash_init_custom_cdreader(struct rc_hash_cdreader* reader);
|
void rc_hash_init_custom_cdreader(struct rc_hash_cdreader* reader);
|
||||||
|
|
||||||
/* ===================================================== */
|
/* ===================================================== */
|
||||||
|
|
|
@ -214,7 +214,7 @@ void frontend_driver_detach_console(void);
|
||||||
|
|
||||||
void frontend_driver_set_screen_brightness(int value);
|
void frontend_driver_set_screen_brightness(int value);
|
||||||
|
|
||||||
bool frontend_driver_can_set_screen_brightness();
|
bool frontend_driver_can_set_screen_brightness(void);
|
||||||
|
|
||||||
bool frontend_driver_can_watch_for_changes(void);
|
bool frontend_driver_can_watch_for_changes(void);
|
||||||
|
|
||||||
|
|
|
@ -60,11 +60,10 @@ static uint32_t metal_get_flags(void *data);
|
||||||
|
|
||||||
// The graphics context for the Metal driver is just a stubbed out version
|
// The graphics context for the Metal driver is just a stubbed out version
|
||||||
// It supports getting metrics such as dpi which is needed for iOS/tvOS
|
// It supports getting metrics such as dpi which is needed for iOS/tvOS
|
||||||
|
#if defined(HAVE_COCOATOUCH)
|
||||||
static bool metal_gfx_ctx_get_metrics(void *data, enum display_metric_types type,
|
static bool metal_gfx_ctx_get_metrics(void *data, enum display_metric_types type,
|
||||||
float *value)
|
float *value)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_COCOATOUCH
|
|
||||||
CGRect screenRect = [[UIScreen mainScreen] bounds];
|
CGRect screenRect = [[UIScreen mainScreen] bounds];
|
||||||
CGFloat scale = [[UIScreen mainScreen] scale];
|
CGFloat scale = [[UIScreen mainScreen] scale];
|
||||||
float displayHeight = screenRect.size.height;
|
float displayHeight = screenRect.size.height;
|
||||||
|
@ -112,10 +111,8 @@ static bool metal_gfx_ctx_get_metrics(void *data, enum display_metric_types type
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Temporary workaround for metal not being able to poll flags during init */
|
/* Temporary workaround for metal not being able to poll flags during init */
|
||||||
static gfx_ctx_driver_t metal_fake_context = {
|
static gfx_ctx_driver_t metal_fake_context = {
|
||||||
|
|
|
@ -186,7 +186,7 @@ typedef struct rjsonwriter rjsonwriter_t;
|
||||||
/* Create a new writer instance to various targets */
|
/* Create a new writer instance to various targets */
|
||||||
rjsonwriter_t *rjsonwriter_open_stream(struct intfstream_internal *stream);
|
rjsonwriter_t *rjsonwriter_open_stream(struct intfstream_internal *stream);
|
||||||
rjsonwriter_t *rjsonwriter_open_rfile(struct RFILE *rfile);
|
rjsonwriter_t *rjsonwriter_open_rfile(struct RFILE *rfile);
|
||||||
rjsonwriter_t *rjsonwriter_open_memory();
|
rjsonwriter_t *rjsonwriter_open_memory(void);
|
||||||
rjsonwriter_t *rjsonwriter_open_user(rjsonwriter_io_t io, void *user_data);
|
rjsonwriter_t *rjsonwriter_open_user(rjsonwriter_io_t io, void *user_data);
|
||||||
|
|
||||||
/* When opened with rjsonwriter_open_memory, will return the generated JSON.
|
/* When opened with rjsonwriter_open_memory, will return the generated JSON.
|
||||||
|
|
|
@ -1734,11 +1734,11 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements;
|
CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
DEVELOPMENT_TEAM = ZE9XE938Z2;
|
DEVELOPMENT_TEAM = NAY8P7HNSD;
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_MODEL_TUNING = G5;
|
GCC_MODEL_TUNING = G5;
|
||||||
|
@ -1772,11 +1772,11 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements;
|
CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
DEVELOPMENT_TEAM = ZE9XE938Z2;
|
DEVELOPMENT_TEAM = NAY8P7HNSD;
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
GCC_MODEL_TUNING = G5;
|
GCC_MODEL_TUNING = G5;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
|
|
|
@ -1994,6 +1994,15 @@ void *input_driver_init_wrap(input_driver_t *input, const char *name);
|
||||||
/* creates folder and core options stub file for subsequent runs */
|
/* creates folder and core options stub file for subsequent runs */
|
||||||
bool create_folder_and_core_options(void);
|
bool create_folder_and_core_options(void);
|
||||||
|
|
||||||
|
typedef enum apple_view_type
|
||||||
|
{
|
||||||
|
APPLE_VIEW_TYPE_NONE = 0,
|
||||||
|
APPLE_VIEW_TYPE_OPENGL_ES,
|
||||||
|
APPLE_VIEW_TYPE_OPENGL,
|
||||||
|
APPLE_VIEW_TYPE_VULKAN,
|
||||||
|
APPLE_VIEW_TYPE_METAL
|
||||||
|
} apple_view_type_t;
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -46,15 +46,6 @@
|
||||||
|
|
||||||
#include "../../../retroarch.h"
|
#include "../../../retroarch.h"
|
||||||
|
|
||||||
typedef enum apple_view_type
|
|
||||||
{
|
|
||||||
APPLE_VIEW_TYPE_NONE = 0,
|
|
||||||
APPLE_VIEW_TYPE_OPENGL_ES,
|
|
||||||
APPLE_VIEW_TYPE_OPENGL,
|
|
||||||
APPLE_VIEW_TYPE_VULKAN,
|
|
||||||
APPLE_VIEW_TYPE_METAL
|
|
||||||
} apple_view_type_t;
|
|
||||||
|
|
||||||
#if defined(HAVE_COCOATOUCH)
|
#if defined(HAVE_COCOATOUCH)
|
||||||
|
|
||||||
#if TARGET_OS_IOS
|
#if TARGET_OS_IOS
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#import <AvailabilityMacros.h>
|
#import <AvailabilityMacros.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "cocoa_common.h"
|
#include "cocoa_common.h"
|
||||||
|
#include "apple_platform.h"
|
||||||
#include "../ui_cocoa.h"
|
#include "../ui_cocoa.h"
|
||||||
|
|
||||||
#include <retro_assert.h>
|
#include <retro_assert.h>
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
#include "cocoa/cocoa_defines.h"
|
#include "cocoa/cocoa_defines.h"
|
||||||
#include "cocoa/cocoa_common.h"
|
#include "cocoa/cocoa_common.h"
|
||||||
#include "cocoa/apple_platform.h"
|
#include "cocoa/apple_platform.h"
|
||||||
|
|
||||||
|
#if defined(HAVE_COCOA_METAL)
|
||||||
|
#include "../../gfx/common/metal_common.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../ui_companion_driver.h"
|
#include "../ui_companion_driver.h"
|
||||||
#include "../../input/drivers/cocoa_input.h"
|
#include "../../input/drivers/cocoa_input.h"
|
||||||
#include "../../input/drivers_keyboard/keyboard_event_apple.h"
|
#include "../../input/drivers_keyboard/keyboard_event_apple.h"
|
||||||
|
@ -191,10 +196,7 @@ static char **waiting_argv;
|
||||||
|
|
||||||
@synthesize window = _window;
|
@synthesize window = _window;
|
||||||
|
|
||||||
#ifdef HAVE_COCOA_METAL
|
#ifndef HAVE_COCOA_METAL
|
||||||
#else
|
|
||||||
#define NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY (1 << 17)
|
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
[_window release];
|
[_window release];
|
||||||
|
@ -202,6 +204,8 @@ static char **waiting_argv;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY (1 << 17)
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
|
@ -100,7 +100,7 @@ bool driver_wifi_connection_info(wifi_network_info_t *network);
|
||||||
|
|
||||||
void driver_wifi_scan(void);
|
void driver_wifi_scan(void);
|
||||||
|
|
||||||
wifi_network_scan_t* driver_wifi_get_ssids();
|
wifi_network_scan_t* driver_wifi_get_ssids(void);
|
||||||
|
|
||||||
bool driver_wifi_ssid_is_online(unsigned i);
|
bool driver_wifi_ssid_is_online(unsigned i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue