mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
Create HAVE_AVFOUNDATION define
This commit is contained in:
parent
cbee4c3c03
commit
4e912dbae8
@ -171,11 +171,6 @@ void apple_display_alert(const char *message, const char *title)
|
||||
|
||||
/* Define compatibility symbols and categories. */
|
||||
|
||||
//#if defined(MAC_OS_X_VERSION_10_7) || defined(__IPHONE_4_0)
|
||||
#if defined(__IPHONE_4_0) && defined(IOS)
|
||||
#define HAVE_AVFOUNDATION
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
#include <AVFoundation/AVCaptureSession.h>
|
||||
#include <AVFoundation/AVCaptureDevice.h>
|
||||
|
@ -818,6 +818,7 @@
|
||||
"-DHAVE_XMB",
|
||||
"-D_LZMA_UINT32_IS_ULONG",
|
||||
"-DHAVE_MFI",
|
||||
"-DHAVE_AVFOUNDATION",
|
||||
);
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
@ -885,6 +886,7 @@
|
||||
"-DHAVE_XMB",
|
||||
"-D_LZMA_UINT32_IS_ULONG",
|
||||
"-DHAVE_MFI",
|
||||
"-DHAVE_AVFOUNDATION",
|
||||
);
|
||||
"OTHER_CFLAGS[arch=*]" = (
|
||||
"-DNS_BLOCK_ASSERTIONS=1",
|
||||
@ -924,6 +926,7 @@
|
||||
"-DHAVE_XMB",
|
||||
"-D_LZMA_UINT32_IS_ULONG",
|
||||
"-DHAVE_MFI",
|
||||
"-DHAVE_AVFOUNDATION",
|
||||
);
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
|
@ -31,7 +31,7 @@ static const camera_driver_t *camera_drivers[] = {
|
||||
#ifdef ANDROID
|
||||
&camera_android,
|
||||
#endif
|
||||
#if defined(__IPHONE_4_0) && defined(IOS)
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
&camera_apple,
|
||||
#endif
|
||||
&camera_null,
|
||||
|
Loading…
Reference in New Issue
Block a user