mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-23 07:45:38 +00:00
Simplified the Xcode project to a single Framework target
Static and shared libraries can be built using CMake support in SDL 3.0 Built tests for macOS, iOS, and tvOS
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if defined(__IOS__) || defined(__TVOS__)
|
||||
|
||||
#ifndef SDL_HIDAPI_DISABLED
|
||||
|
||||
#include "../SDL_hidapi_c.h"
|
||||
@@ -1031,3 +1033,5 @@ HID_API_EXPORT const wchar_t* HID_API_CALL hid_error(hid_device *dev)
|
||||
}
|
||||
|
||||
#endif /* !SDL_HIDAPI_DISABLED */
|
||||
|
||||
#endif /* __IOS__ || __TVOS__ */
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if defined(__IOS__) || defined(__TVOS__)
|
||||
|
||||
#include "../SDL_sysurl.h"
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@@ -33,3 +35,5 @@ int SDL_SYS_OpenURL(const char *url)
|
||||
return [[UIApplication sharedApplication] openURL:nsurl] ? 0 : -1;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __IOS__ || __TVOS__ */
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if defined(__MACOS__)
|
||||
|
||||
#include "../SDL_sysurl.h"
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
@@ -33,3 +35,5 @@ int SDL_SYS_OpenURL(const char *url)
|
||||
return status == noErr ? 0 : -1;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __MACOS__ */
|
||||
|
||||
Reference in New Issue
Block a user